Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.00177/0.00177, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001456/0.001456, allocations: 208.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.646/1.646, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.1899/0.1899, allocations: 38.56 MB / 352.5 MB, free: 12.3 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.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.002034/0.002034, allocations: 70.41 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3432, allocations: 62.47 MB / 0.5419 GB, free: 124 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008544/0.3518, allocations: 5.836 MB / 0.5476 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.3547, allocations: 1.365 MB / 0.549 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003833/0.3551, allocations: 35.56 kB / 0.549 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005501/0.3557, allocations: 137 kB / 0.5491 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009224/0.3566, allocations: 394.4 kB / 0.5495 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000513/0.3571, allocations: 196.1 kB / 0.5497 GB, free: 10 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.3581, allocations: 0.9172 MB / 0.5506 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.3584, allocations: 169.5 kB / 0.5508 GB, free: 9.391 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006513/0.3591, allocations: 429.3 kB / 0.5512 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007087/0.3598, allocations: 0.4926 MB / 0.5516 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.021e-05/0.3599, allocations: 47.12 kB / 0.5517 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.36, allocations: 46.69 kB / 0.5517 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003149/0.3603, allocations: 272.4 kB / 0.552 GB, free: 8.684 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003261/0.3606, allocations: 260.1 kB / 0.5522 GB, free: 8.535 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000844/0.3615, allocations: 0.6844 MB / 0.5529 GB, free: 8.078 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3615, allocations: 0 / 0.5529 GB, free: 8.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3615, allocations: 1.125 kB / 0.5529 GB, free: 8.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.3615, allocations: 0 / 0.5529 GB, free: 8.078 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00185/0.3634, allocations: 0.8891 MB / 0.5538 GB, free: 7.402 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3634, allocations: 13.08 kB / 0.5538 GB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.3635, allocations: 93.14 kB / 0.5539 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.3637, allocations: 77.25 kB / 0.554 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.3647, allocations: 493.7 kB / 0.5544 GB, free: 6.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.795e-05/0.3648, allocations: 48.44 kB / 0.5545 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.58e-05/0.3649, allocations: 52.11 kB / 0.5545 GB, free: 6.863 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000992/0.3659, allocations: 0.6285 MB / 0.5551 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3659, allocations: 1.094 kB / 0.5551 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.3659, allocations: 21.25 kB / 0.5552 GB, free: 6.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.3661, allocations: 34.22 kB / 0.5552 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008473/0.3669, allocations: 0.5006 MB / 0.5557 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.3702, allocations: 2.07 MB / 0.5577 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008846/0.3711, allocations: 471.1 kB / 0.5582 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000685/0.3718, allocations: 326.8 kB / 0.5585 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.632e-05/0.3718, allocations: 7.953 kB / 0.5585 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.3719, allocations: 46.48 kB / 0.5585 GB, free: 2.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.214e-06/0.3719, allocations: 4 kB / 0.5585 GB, free: 2.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003487/0.3753, allocations: 1.592 MB / 0.5601 GB, free: 1.293 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.3754, allocations: 81.11 kB / 0.5602 GB, free: 1.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004803/0.3759, allocations: 429.8 kB / 0.5606 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.3759, allocations: 33.7 kB / 0.5606 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.3761, allocations: 301.1 kB / 0.5609 GB, free: 440 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.3763, allocations: 174.5 kB / 0.561 GB, free: 264 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.3765, allocations: 106.2 kB / 0.5612 GB, free: 152 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.3767, allocations: 362.8 kB / 0.5615 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003079/0.377, allocations: 181.2 kB / 0.5617 GB, free: 15.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004057/0.3774, allocations: 316.5 kB / 0.562 GB, free: 15.25 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002708/0.3801, allocations: 1.154 MB / 0.5631 GB, free: 14.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3802, allocations: 0 / 0.5631 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001228/0.3814, allocations: 0.7071 MB / 0.5638 GB, free: 13.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.3814, allocations: 10.81 kB / 0.5638 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3814, allocations: 4 kB / 0.5638 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004178/0.3818, allocations: 136.8 kB / 0.5639 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.3823, allocations: 107.8 kB / 0.564 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003158/0.3855, allocations: 2.492 MB / 0.5665 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003797/0.3858, allocations: 23.98 kB / 0.5665 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.464e-05/0.3859, allocations: 24 kB / 0.5665 GB, free: 10.42 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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003747/0.3863, allocations: 229.6 kB / 0.5667 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.3864, allocations: 55.61 kB / 0.5668 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.3875, allocations: 0.6464 MB / 0.5674 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3875, allocations: 4 kB / 0.5674 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3876, allocations: 4 kB / 0.5674 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.3876, allocations: 11.92 kB / 0.5674 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.3898, allocations: 1.24 MB / 0.5686 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3898, allocations: 4.156 kB / 0.5687 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.3902, allocations: 79.89 kB / 0.5687 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004236/0.3906, allocations: 140.8 kB / 0.5689 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.3906, allocations: 19.92 kB / 0.5689 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003116/0.3938, allocations: 2.492 MB / 0.5713 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3938, allocations: 4 kB / 0.5713 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.3954, allocations: 0.9885 MB / 0.5723 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.3955, allocations: 51.62 kB / 0.5723 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.476e-05/0.3956, allocations: 8 kB / 0.5723 GB, free: 4.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.3958, allocations: 27.97 kB / 0.5724 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.445e-05/0.3959, allocations: 39.86 kB / 0.5724 GB, free: 4.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.396, allocations: 20.08 kB / 0.5724 GB, free: 4.125 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003509/0.3963, allocations: 295.1 kB / 0.5727 GB, free: 3.836 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3963, allocations: 0 / 0.5727 GB, free: 3.836 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006703/0.397, allocations: 144 kB / 0.5728 GB, free: 3.695 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001817/0.3988, allocations: 1.527 MB / 0.5743 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.4001, allocations: 0.6403 MB / 0.575 GB, free: 1.465 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.4001, allocations: 0 / 0.575 GB, free: 1.465 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006997/0.4008, allocations: 426.9 kB / 0.5754 GB, free: 1.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007731/0.4015, allocations: 134.1 kB / 0.5755 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007383/0.4089, allocations: 5.129 MB / 0.5805 GB, free: 11.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.4093, allocations: 325.3 kB / 0.5808 GB, free: 11.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003333/0.4096, allocations: 108.7 kB / 0.5809 GB, free: 11.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002733/0.4099, allocations: 199.4 kB / 0.5811 GB, free: 10.9 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4099, allocations: 0 / 0.5811 GB, free: 10.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04836/0.4583, allocations: 13.17 MB / 0.594 GB, free: 13.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.21, allocations: 0 / 0.594 GB, free: 13.96 MB / 446.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.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_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.331680693954695] Failed to read output from testmodel.py, exit status != 0: 12.3355396570405 12.363745239 11.996538459 Calling exit ...