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.001363/0.001363, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001673/0.001673, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.498/1.498, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.2692/0.2692, allocations: 38.54 MB / 352.5 MB, free: 12.31 MB / 286.1 MB " [Timeout remaining time 179] 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.00227/0.00227, allocations: 67.89 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4166, allocations: 62.46 MB / 0.5419 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.009171/0.4258, allocations: 5.834 MB / 0.5476 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003229/0.429, allocations: 1.362 MB / 0.549 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005345/0.4296, allocations: 35.28 kB / 0.549 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006342/0.4302, allocations: 136.8 kB / 0.5491 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.4316, allocations: 395.1 kB / 0.5495 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007828/0.4324, allocations: 199.5 kB / 0.5497 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001534/0.4339, allocations: 0.9169 MB / 0.5506 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003595/0.4342, allocations: 161.5 kB / 0.5507 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.4353, allocations: 428.8 kB / 0.5512 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.4364, allocations: 480 kB / 0.5516 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.4366, allocations: 48.41 kB / 0.5517 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.4368, allocations: 47.06 kB / 0.5517 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003719/0.4372, allocations: 267.3 kB / 0.552 GB, free: 8.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007161/0.4379, allocations: 268.9 kB / 0.5522 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.4392, allocations: 0.6802 MB / 0.5529 GB, free: 8.238 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4392, allocations: 3.938 kB / 0.5529 GB, free: 8.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4392, allocations: 0 / 0.5529 GB, free: 8.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.607e-05/0.4393, allocations: 1.094 kB / 0.5529 GB, free: 8.234 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.00282/0.4421, allocations: 0.8888 MB / 0.5538 GB, free: 7.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.4422, allocations: 13.52 kB / 0.5538 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002245/0.4424, allocations: 97.05 kB / 0.5539 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.4426, allocations: 72.5 kB / 0.5539 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.4439, allocations: 497.8 kB / 0.5544 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.444, allocations: 45.22 kB / 0.5544 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.4441, allocations: 60.44 kB / 0.5545 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.4453, allocations: 0.6203 MB / 0.5551 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.4453, allocations: 1.156 kB / 0.5551 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.694e-05/0.4454, allocations: 17.25 kB / 0.5551 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001352/0.4455, allocations: 41.03 kB / 0.5552 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009914/0.4465, allocations: 0.5045 MB / 0.5557 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003768/0.4502, allocations: 2.073 MB / 0.5577 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009238/0.4512, allocations: 467.1 kB / 0.5581 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007143/0.4519, allocations: 326.8 kB / 0.5584 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.4519, allocations: 11.95 kB / 0.5585 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/0.452, allocations: 42.5 kB / 0.5585 GB, free: 3.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 3.497e-06/0.452, allocations: 3.938 kB / 0.5585 GB, free: 3.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.00385/0.4558, allocations: 1.592 MB / 0.5601 GB, free: 1.422 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.076e-05/0.4559, allocations: 81.11 kB / 0.5601 GB, free: 1.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000566/0.4565, allocations: 425.8 kB / 0.5605 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/0.4565, allocations: 41.83 kB / 0.5606 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/0.4568, allocations: 305 kB / 0.5609 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.457, allocations: 166.5 kB / 0.561 GB, free: 392 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.4571, allocations: 98.3 kB / 0.5611 GB, free: 288 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.4574, allocations: 366.8 kB / 0.5615 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.4577, allocations: 185.2 kB / 0.5616 GB, free: 15.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.4581, allocations: 308.5 kB / 0.5619 GB, free: 15.38 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.002778/0.4609, allocations: 1.16 MB / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4609, allocations: 0 / 0.5631 GB, free: 14.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001363/0.4622, allocations: 0.7071 MB / 0.5638 GB, free: 13.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4623, allocations: 4 kB / 0.5638 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.4623, allocations: 4 kB / 0.5638 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004188/0.4627, allocations: 136.8 kB / 0.5639 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.4632, allocations: 112 kB / 0.564 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003323/0.4665, allocations: 2.492 MB / 0.5664 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003807/0.4669, allocations: 28.02 kB / 0.5665 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.4669, allocations: 20 kB / 0.5665 GB, free: 10.55 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.00036/0.4673, allocations: 225.7 kB / 0.5667 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.4674, allocations: 55.61 kB / 0.5668 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.4686, allocations: 0.6503 MB / 0.5674 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.4686, allocations: 8 kB / 0.5674 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4686, allocations: 4 kB / 0.5674 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.4687, allocations: 12.02 kB / 0.5674 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.471, allocations: 1.24 MB / 0.5686 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.4711, allocations: 4.078 kB / 0.5686 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003581/0.4714, allocations: 71.91 kB / 0.5687 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004113/0.4718, allocations: 152.8 kB / 0.5688 GB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.4719, allocations: 12 kB / 0.5689 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003247/0.4751, allocations: 2.493 MB / 0.5713 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.4751, allocations: 4 kB / 0.5713 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.4767, allocations: 0.9886 MB / 0.5723 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.4768, allocations: 51.66 kB / 0.5723 GB, free: 4.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.779e-05/0.4769, allocations: 12 kB / 0.5723 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.4772, allocations: 23.92 kB / 0.5723 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.883e-05/0.4773, allocations: 43.86 kB / 0.5724 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.4773, allocations: 12 kB / 0.5724 GB, free: 4.258 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003349/0.4776, allocations: 291.1 kB / 0.5727 GB, free: 3.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4776, allocations: 0 / 0.5727 GB, free: 3.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006642/0.4783, allocations: 148 kB / 0.5728 GB, free: 3.832 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.001847/0.4801, allocations: 1.527 MB / 0.5743 GB, free: 2.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.4814, allocations: 0.6364 MB / 0.5749 GB, free: 1.605 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4814, allocations: 0 / 0.5749 GB, free: 1.605 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/0.4821, allocations: 434.9 kB / 0.5753 GB, free: 1.168 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007935/0.4829, allocations: 136.4 kB / 0.5755 GB, free: 1.035 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007922/0.4909, allocations: 5.129 MB / 0.5805 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.4913, allocations: 333.3 kB / 0.5808 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003791/0.4917, allocations: 100.7 kB / 0.5809 GB, free: 11.23 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003358/0.492, allocations: 191.4 kB / 0.5811 GB, free: 11.04 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.492, allocations: 0 / 0.5811 GB, free: 11.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05433/0.5464, allocations: 13 MB / 0.5938 GB, free: 14.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.46, allocations: 4 kB / 0.5938 GB, free: 14.27 MB / 446.1 MB " [Timeout remaining time 647] (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.573789178859442] Failed to read output from testmodel.py, exit status != 0: 12.585814884863794 12.615381377 12.170548278 Calling exit ...