Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 210.5 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1843/0.1843, allocations: 38.55 MB / 352.5 MB, free: 12.28 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00214/0.00214, allocations: 63.91 kB / 492.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2838, allocations: 62.46 MB / 0.5419 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009119/0.2929, allocations: 6.221 MB / 0.548 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003522/0.2964, allocations: 1.8 MB / 0.5498 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003323/0.2968, allocations: 37.81 kB / 0.5498 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.2981, allocations: 440.4 kB / 0.5502 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008908/0.2989, allocations: 427.4 kB / 0.5506 GB, free: 9.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009136/0.2999, allocations: 357.3 kB / 0.551 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001165/0.301, allocations: 1.034 MB / 0.552 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006129/0.3016, allocations: 417.4 kB / 0.5524 GB, free: 8.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007151/0.3023, allocations: 479 kB / 0.5528 GB, free: 8.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008119/0.3032, allocations: 0.5888 MB / 0.5534 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.3033, allocations: 65.75 kB / 0.5535 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005545/0.3038, allocations: 261 kB / 0.5537 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003827/0.3042, allocations: 384.5 kB / 0.5541 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004107/0.3046, allocations: 351 kB / 0.5544 GB, free: 7.125 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001315/0.3059, allocations: 1.068 MB / 0.5555 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3059, allocations: 0 / 0.5555 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3059, allocations: 0 / 0.5555 GB, free: 6.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.306, allocations: 0 / 0.5555 GB, free: 6.367 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002392/0.3084, allocations: 1.068 MB / 0.5565 GB, free: 5.262 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3084, allocations: 15.92 kB / 0.5565 GB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.3086, allocations: 118.8 kB / 0.5566 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009446/0.3095, allocations: 168.2 kB / 0.5568 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.3108, allocations: 0.5439 MB / 0.5573 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.768e-05/0.3109, allocations: 53.67 kB / 0.5574 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/0.3111, allocations: 67.94 kB / 0.5575 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.3127, allocations: 1.014 MB / 0.5584 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.3128, allocations: 4 kB / 0.5584 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.513e-05/0.3129, allocations: 23.98 kB / 0.5585 GB, free: 3.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002229/0.3131, allocations: 77.95 kB / 0.5585 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.3147, allocations: 0.9641 MB / 0.5595 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005372/0.3201, allocations: 3.032 MB / 0.5624 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.3212, allocations: 0.6287 MB / 0.5631 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000654/0.3219, allocations: 389.3 kB / 0.5634 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-05/0.3219, allocations: 12.5 kB / 0.5634 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.322, allocations: 43 kB / 0.5635 GB, free: 13.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 2.725e-06/0.322, allocations: 0 / 0.5635 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004118/0.3261, allocations: 2.22 MB / 0.5657 GB, free: 11.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.1e-05/0.3262, allocations: 85.77 kB / 0.5657 GB, free: 11.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005408/0.3267, allocations: 457.7 kB / 0.5662 GB, free: 11.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.65e-05/0.3268, allocations: 37.7 kB / 0.5662 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003187/0.3271, allocations: 368.4 kB / 0.5666 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.3273, allocations: 269.7 kB / 0.5668 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.3276, allocations: 154.5 kB / 0.567 GB, free: 10.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.3278, allocations: 382.8 kB / 0.5673 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/0.3283, allocations: 337.8 kB / 0.5676 GB, free: 9.551 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007239/0.3291, allocations: 0.5185 MB / 0.5682 GB, free: 8.961 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.0053/0.3344, allocations: 2.168 MB / 0.5703 GB, free: 6.727 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3344, allocations: 0 / 0.5703 GB, free: 6.727 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001807/0.3362, allocations: 1.027 MB / 0.5713 GB, free: 5.688 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3362, allocations: 10.66 kB / 0.5713 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.3362, allocations: 4 kB / 0.5713 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001567/0.3364, allocations: 48.77 kB / 0.5713 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007749/0.3371, allocations: 184 kB / 0.5715 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.3385, allocations: 1.393 MB / 0.5729 GB, free: 3.934 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004938/0.339, allocations: 39.97 kB / 0.5729 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.796e-05/0.3391, allocations: 28 kB / 0.5729 GB, free: 3.867 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004685/0.3396, allocations: 282.1 kB / 0.5732 GB, free: 3.582 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.3397, allocations: 63.58 kB / 0.5733 GB, free: 3.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/0.3413, allocations: 0.9031 MB / 0.5741 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.979e-05/0.3413, allocations: 16 kB / 0.5742 GB, free: 2.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3413, allocations: 3.938 kB / 0.5742 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3413, allocations: 3.984 kB / 0.5742 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003657/0.345, allocations: 1.844 MB / 0.576 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/0.345, allocations: 4 kB / 0.576 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/0.3457, allocations: 147.8 kB / 0.5761 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001122/0.3458, allocations: 40.77 kB / 0.5762 GB, free: 448 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.315e-05/0.3459, allocations: 24 kB / 0.5762 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.3472, allocations: 1.385 MB / 0.5775 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.3472, allocations: 8.141 kB / 0.5775 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.3495, allocations: 1.458 MB / 0.579 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.3496, allocations: 67.58 kB / 0.579 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.681e-05/0.3497, allocations: 20 kB / 0.579 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003682/0.3501, allocations: 35.97 kB / 0.5791 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3502, allocations: 64.27 kB / 0.5791 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-05/0.3503, allocations: 28 kB / 0.5792 GB, free: 13.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003782/0.3506, allocations: 299.1 kB / 0.5795 GB, free: 12.87 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3506, allocations: 4 kB / 0.5795 GB, free: 12.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007513/0.3514, allocations: 183.9 kB / 0.5796 GB, free: 12.68 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002573/0.354, allocations: 2.046 MB / 0.5816 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.3555, allocations: 0.9192 MB / 0.5825 GB, free: 9.621 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3555, allocations: 0 / 0.5825 GB, free: 9.621 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007074/0.3563, allocations: 494.9 kB / 0.583 GB, free: 9.125 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008447/0.3571, allocations: 156.8 kB / 0.5831 GB, free: 8.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009623/0.3667, allocations: 6.927 MB / 0.5899 GB, free: 1.703 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005012/0.3672, allocations: 412.3 kB / 0.5903 GB, free: 1.277 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005776/0.3678, allocations: 209.4 kB / 0.5905 GB, free: 1.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000427/0.3682, allocations: 279.3 kB / 0.5908 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3682, allocations: 4 kB / 0.5908 GB, free: 0.793 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05349/0.4217, allocations: 15.61 MB / 0.606 GB, free: 1.406 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.51, allocations: 9.781 kB / 0.606 GB, free: 1.402 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.30937483580783] Failed to read output from testmodel.py, exit status != 0: 12.636084840167314 12.654230087 12.345154516 Calling exit ...