Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.001228/0.001228, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.00138/0.00138, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.471/1.471, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.1854/0.1854, allocations: 38.51 MB / 348.7 MB, free: 2.602 MB / 270.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.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.001946/0.001946, allocations: 67.91 kB / 487.1 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1072, allocations: 62.42 MB / 0.5367 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009038/0.1162, allocations: 6.58 MB / 0.5431 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002845/0.1191, allocations: 1.348 MB / 0.5444 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004529/0.1195, allocations: 35.69 kB / 0.5445 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000429/0.12, allocations: 126.8 kB / 0.5446 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001397/0.1214, allocations: 433.9 kB / 0.545 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.1219, allocations: 235.6 kB / 0.5452 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001365/0.1233, allocations: 1.114 MB / 0.5463 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004692/0.1238, allocations: 325.8 kB / 0.5466 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008598/0.1246, allocations: 0.5098 MB / 0.5471 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007839/0.1254, allocations: 0.5645 MB / 0.5477 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.1255, allocations: 64 kB / 0.5477 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.1256, allocations: 64 kB / 0.5478 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003582/0.126, allocations: 339 kB / 0.5481 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004238/0.1264, allocations: 394.1 kB / 0.5485 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.1275, allocations: 0.926 MB / 0.5494 GB, free: 10.49 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1275, allocations: 4 kB / 0.5494 GB, free: 10.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1275, allocations: 4 kB / 0.5494 GB, free: 10.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.1275, allocations: 0 / 0.5494 GB, free: 10.48 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002199/0.1297, allocations: 1.167 MB / 0.5505 GB, free: 9.246 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1298, allocations: 12.03 kB / 0.5505 GB, free: 9.234 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.1299, allocations: 110.7 kB / 0.5506 GB, free: 9.117 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.1301, allocations: 88.42 kB / 0.5507 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.1312, allocations: 0.6161 MB / 0.5513 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.1313, allocations: 120.6 kB / 0.5515 GB, free: 8.246 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1314, allocations: 64 kB / 0.5515 GB, free: 8.184 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.1331, allocations: 0.8652 MB / 0.5524 GB, free: 7.277 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1331, allocations: 0 / 0.5524 GB, free: 7.277 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-05/0.1332, allocations: 28 kB / 0.5524 GB, free: 7.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.1333, allocations: 37.28 kB / 0.5524 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.1346, allocations: 0.6218 MB / 0.553 GB, free: 6.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003974/0.1386, allocations: 2.74 MB / 0.5557 GB, free: 3.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.1405, allocations: 0.877 MB / 0.5566 GB, free: 2.781 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007896/0.1413, allocations: 296.8 kB / 0.5568 GB, free: 2.488 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.1413, allocations: 4.328 kB / 0.5568 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007885/0.1421, allocations: 350.7 kB / 0.5572 GB, free: 2.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 2.054e-06/0.1421, allocations: 7.938 kB / 0.5572 GB, free: 2.113 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.004992/0.1471, allocations: 1.989 MB / 0.5591 GB, free: 8 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.1472, allocations: 114.7 kB / 0.5592 GB, free: 15.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007474/0.148, allocations: 0.5144 MB / 0.5597 GB, free: 15.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/0.148, allocations: 41.7 kB / 0.5598 GB, free: 15.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.1484, allocations: 364.6 kB / 0.5601 GB, free: 14.94 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.1485, allocations: 150.8 kB / 0.5603 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.1487, allocations: 114.2 kB / 0.5604 GB, free: 14.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.1489, allocations: 370.7 kB / 0.5607 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.1493, allocations: 229.1 kB / 0.561 GB, free: 14.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004774/0.1497, allocations: 386.2 kB / 0.5613 GB, free: 13.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008712/0.1506, allocations: 0.625 MB / 0.5619 GB, free: 12.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1506, allocations: 0 / 0.5619 GB, free: 12.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001504/0.1521, allocations: 0.9021 MB / 0.5628 GB, free: 11.99 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.018e-05/0.1522, allocations: 49.69 kB / 0.5629 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.1522, allocations: 8 kB / 0.5629 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003369/0.1526, allocations: 93.98 kB / 0.563 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/0.153, allocations: 111.8 kB / 0.5631 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/0.156, allocations: 3.259 MB / 0.5662 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/0.1564, allocations: 31.94 kB / 0.5663 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.668e-05/0.1565, allocations: 43.97 kB / 0.5663 GB, free: 8.102 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004027/0.1569, allocations: 270.4 kB / 0.5666 GB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.96e-05/0.157, allocations: 63.61 kB / 0.5666 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001645/0.1586, allocations: 0.7003 MB / 0.5673 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1586, allocations: 4 kB / 0.5673 GB, free: 7.031 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1586, allocations: 4 kB / 0.5673 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.1586, allocations: 7.984 kB / 0.5673 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002642/0.1613, allocations: 1.528 MB / 0.5688 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1613, allocations: 0 / 0.5688 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.1615, allocations: 63.89 kB / 0.5689 GB, free: 5.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002938/0.1618, allocations: 97.69 kB / 0.569 GB, free: 5.238 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.1619, allocations: 23.92 kB / 0.569 GB, free: 5.215 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002748/0.1646, allocations: 3.251 MB / 0.5722 GB, free: 1.684 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.1646, allocations: 4.031 kB / 0.5722 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.1669, allocations: 1.065 MB / 0.5732 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.1671, allocations: 176.6 kB / 0.5734 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.1672, allocations: 31.98 kB / 0.5734 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.1676, allocations: 43.94 kB / 0.5735 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/0.1677, allocations: 35.83 kB / 0.5735 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.1677, allocations: 16 kB / 0.5735 GB, free: 256 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004481/0.1682, allocations: 354.8 kB / 0.5739 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1682, allocations: 0 / 0.5739 GB, free: 15.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007096/0.1689, allocations: 156 kB / 0.574 GB, free: 15.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.002585/0.1715, allocations: 1.624 MB / 0.5756 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.1732, allocations: 0.8543 MB / 0.5764 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.1732, allocations: 4 kB / 0.5764 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009824/0.1742, allocations: 494.5 kB / 0.5769 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008614/0.175, allocations: 152.9 kB / 0.577 GB, free: 12.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009273/0.1843, allocations: 6.087 MB / 0.583 GB, free: 6.125 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007427/0.185, allocations: 0.9759 MB / 0.5839 GB, free: 5.121 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004026/0.1854, allocations: 112.9 kB / 0.584 GB, free: 5.012 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.1858, allocations: 223.4 kB / 0.5843 GB, free: 4.793 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.1858, allocations: 0 / 0.5843 GB, free: 4.793 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.347/0.5328, allocations: 13.31 MB / 0.5973 GB, free: 50.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.46, allocations: 9.266 kB / 0.5973 GB, free: 50.12 MB / 446.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_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_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.480407283001114] Failed to read output from testmodel.py, exit status != 0: 11.556343077987549 11.578312176 11.446491367 Calling exit ...