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.001412/0.001412, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001545/0.001545, allocations: 218.9 kB / 21.46 MB, free: 1.586 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 / 254.8 MB, free: 15.22 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.1874/0.1874, allocations: 38.5 MB / 349.4 MB, free: 2.562 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="cs",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.002041/0.002041, allocations: 69.75 kB / 487.8 MB, free: 32.3 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1348, allocations: 62.41 MB / 0.5374 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009031/0.1439, allocations: 6.581 MB / 0.5438 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002648/0.1465, allocations: 1.34 MB / 0.5451 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003018/0.1468, allocations: 35.69 kB / 0.5451 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004408/0.1473, allocations: 134.8 kB / 0.5453 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001181/0.1484, allocations: 433.9 kB / 0.5457 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.1489, allocations: 231.6 kB / 0.5459 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.1502, allocations: 1.118 MB / 0.547 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004776/0.1507, allocations: 325.8 kB / 0.5473 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008985/0.1516, allocations: 0.5059 MB / 0.5478 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009104/0.1525, allocations: 0.5684 MB / 0.5483 GB, free: 14.19 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.1526, allocations: 67.94 kB / 0.5484 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.1528, allocations: 64 kB / 0.5485 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004147/0.1532, allocations: 339.1 kB / 0.5488 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004689/0.1537, allocations: 398.1 kB / 0.5492 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.1549, allocations: 0.9182 MB / 0.5501 GB, free: 12.42 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.155, allocations: 4 kB / 0.5501 GB, free: 12.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.155, allocations: 0 / 0.5501 GB, free: 12.41 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.155, allocations: 0 / 0.5501 GB, free: 12.41 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.002563/0.1575, allocations: 1.175 MB / 0.5512 GB, free: 11.17 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.1576, allocations: 12.03 kB / 0.5512 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.892e-05/0.1576, allocations: 17.5 kB / 0.5512 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001528/0.1578, allocations: 110.7 kB / 0.5514 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.158, allocations: 88.42 kB / 0.5514 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.1591, allocations: 0.6198 MB / 0.552 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.1592, allocations: 112.7 kB / 0.5522 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.1594, allocations: 67.98 kB / 0.5522 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1611, allocations: 0.8652 MB / 0.5531 GB, free: 9.184 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.1611, allocations: 0 / 0.5531 GB, free: 9.184 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.1612, allocations: 28 kB / 0.5531 GB, free: 9.156 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001369/0.1613, allocations: 37.28 kB / 0.5531 GB, free: 9.121 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.1627, allocations: 0.6256 MB / 0.5537 GB, free: 8.496 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004317/0.167, allocations: 2.74 MB / 0.5564 GB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001901/0.1689, allocations: 0.8721 MB / 0.5573 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007843/0.1697, allocations: 296.8 kB / 0.5575 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.1697, allocations: 8.312 kB / 0.5576 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008115/0.1705, allocations: 350.7 kB / 0.5579 GB, free: 4.027 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 2.284e-06/0.1705, allocations: 3.938 kB / 0.5579 GB, free: 4.023 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.005088/0.1756, allocations: 2.001 MB / 0.5598 GB, free: 1.906 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.226e-05/0.1757, allocations: 110.8 kB / 0.56 GB, free: 1.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007574/0.1765, allocations: 0.5066 MB / 0.5604 GB, free: 1.262 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.578e-05/0.1765, allocations: 41.7 kB / 0.5605 GB, free: 1.215 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003753/0.1769, allocations: 368.6 kB / 0.5608 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.1771, allocations: 150.8 kB / 0.561 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/0.1773, allocations: 118.2 kB / 0.5611 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.1775, allocations: 370.8 kB / 0.5614 GB, free: 212 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.1779, allocations: 221.1 kB / 0.5617 GB, free: 15.99 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005584/0.1785, allocations: 398.1 kB / 0.562 GB, free: 15.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009068/0.1794, allocations: 0.6288 MB / 0.5627 GB, free: 14.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1794, allocations: 0 / 0.5627 GB, free: 14.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001461/0.1809, allocations: 0.8944 MB / 0.5635 GB, free: 13.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.048e-05/0.1809, allocations: 53.69 kB / 0.5636 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.1809, allocations: 4 kB / 0.5636 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003159/0.1813, allocations: 85.66 kB / 0.5637 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.1817, allocations: 107.8 kB / 0.5638 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003047/0.1847, allocations: 3.267 MB / 0.567 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/0.1852, allocations: 31.94 kB / 0.567 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.409e-05/0.1853, allocations: 39.97 kB / 0.567 GB, free: 10.01 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.0004859/0.1858, allocations: 273.8 kB / 0.5673 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.553e-05/0.1859, allocations: 59.62 kB / 0.5673 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.1876, allocations: 0.7003 MB / 0.568 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1876, allocations: 4 kB / 0.568 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1876, allocations: 4 kB / 0.568 GB, free: 8.938 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.1877, allocations: 4 kB / 0.568 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.1904, allocations: 1.54 MB / 0.5695 GB, free: 7.305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.1904, allocations: 4 kB / 0.5695 GB, free: 7.301 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/0.1907, allocations: 63.89 kB / 0.5696 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003114/0.191, allocations: 93.69 kB / 0.5697 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.1911, allocations: 23.92 kB / 0.5697 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003214/0.1943, allocations: 3.247 MB / 0.5729 GB, free: 3.594 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1943, allocations: 0 / 0.5729 GB, free: 3.594 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.1966, allocations: 1.069 MB / 0.5739 GB, free: 2.477 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002988/0.1969, allocations: 176.7 kB / 0.5741 GB, free: 2.285 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.89e-05/0.197, allocations: 27.98 kB / 0.5741 GB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.1974, allocations: 43.94 kB / 0.5742 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.1975, allocations: 35.84 kB / 0.5742 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.684e-05/0.1976, allocations: 15.98 kB / 0.5742 GB, free: 2.164 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005329/0.1981, allocations: 358.8 kB / 0.5746 GB, free: 1.816 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1981, allocations: 0 / 0.5746 GB, free: 1.816 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007813/0.1989, allocations: 144 kB / 0.5747 GB, free: 1.676 MB / 430.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.002705/0.2016, allocations: 1.64 MB / 0.5763 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.2033, allocations: 0.8547 MB / 0.5771 GB, free: 15.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2033, allocations: 0 / 0.5771 GB, free: 15.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.2043, allocations: 490.1 kB / 0.5776 GB, free: 14.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009548/0.2053, allocations: 159.6 kB / 0.5778 GB, free: 14.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009785/0.2151, allocations: 6.087 MB / 0.5837 GB, free: 8.035 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009043/0.216, allocations: 0.976 MB / 0.5847 GB, free: 7.031 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003975/0.2164, allocations: 108.9 kB / 0.5848 GB, free: 6.926 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/0.2167, allocations: 223.4 kB / 0.585 GB, free: 6.707 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2167, allocations: 0 / 0.585 GB, free: 6.707 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05974/0.2765, allocations: 13.37 MB / 0.598 GB, free: 9.527 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.51, allocations: 8 kB / 0.598 GB, free: 9.52 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 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.786704128957354] Failed to read output from testmodel.py, exit status != 0: 11.652066062029917 11.899039783 11.74084468 Calling exit ...