Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 109.7 kB / 16.63 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 189.9 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 241.2 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1717/0.1717, allocations: 38.03 MB / 329.4 MB, free: 8.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 62.55 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1148, allocations: 58.05 MB / 456.4 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.009776/0.1246, allocations: 8.401 MB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004746/0.1294, allocations: 2.454 MB / 467.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.1304, allocations: 55.62 kB / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.132, allocations: 477.4 kB / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001566/0.1335, allocations: 0.5058 MB / 468.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009657/0.1345, allocations: 359.5 kB / 468.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001614/0.1361, allocations: 1.403 MB / 470.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001148/0.1373, allocations: 0.842 MB / 470.9 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001093/0.1384, allocations: 0.6306 MB / 471.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.1397, allocations: 0.7243 MB / 472.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002518/0.14, allocations: 96 kB / 472.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001036/0.141, allocations: 0.5421 MB / 472.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005998/0.1416, allocations: 0.5067 MB / 473.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009191/0.1425, allocations: 0.5677 MB / 474 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001801/0.1444, allocations: 1.511 MB / 475.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1444, allocations: 0 / 475.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1444, allocations: 3.938 kB / 475.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.418e-05/0.1444, allocations: 0 / 475.5 MB, free: 5.16 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.00354/0.148, allocations: 1.563 MB / 477.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.148, allocations: 11.89 kB / 477.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002701/0.1483, allocations: 156.3 kB / 477.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009032/0.1492, allocations: 159.5 kB / 477.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.1505, allocations: 0.7018 MB / 478.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.1507, allocations: 175.4 kB / 478.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002353/0.151, allocations: 99.98 kB / 478.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002825/0.1538, allocations: 1.532 MB / 479.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.1538, allocations: 11.88 kB / 479.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.1539, allocations: 43.97 kB / 479.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001703/0.1541, allocations: 69.97 kB / 480 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002322/0.1565, allocations: 1.163 MB / 481.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006494/0.163, allocations: 4.797 MB / 486 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.1658, allocations: 1.123 MB / 487.1 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.167, allocations: 0.5645 MB / 487.6 MB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.328e-05/0.1671, allocations: 16.55 kB / 487.7 MB, free: 8.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001405/0.1685, allocations: 0.7182 MB / 488.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 2.876e-06/0.1685, allocations: 0 / 488.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=81): time 0.00693/0.1755, allocations: 3.189 MB / 491.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.1756, allocations: 127.4 kB / 491.7 MB, free: 4.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007374/0.1763, allocations: 0.5888 MB / 492.3 MB, free: 3.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.577e-05/0.1764, allocations: 49.69 kB / 492.3 MB, free: 3.746 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004068/0.1768, allocations: 463 kB / 492.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.1771, allocations: 276.3 kB / 493.1 MB, free: 3.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/0.1774, allocations: 198.5 kB / 493.2 MB, free: 2.812 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.1776, allocations: 390.8 kB / 493.6 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007527/0.1784, allocations: 486 kB / 494.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009185/0.1793, allocations: 0.746 MB / 494.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.181, allocations: 1.25 MB / 496.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.181, allocations: 8 kB / 496.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002578/0.1836, allocations: 1.573 MB / 497.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.224e-05/0.1837, allocations: 69.61 kB / 497.8 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001936/0.1857, allocations: 1.329 MB / 499.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004183/0.1861, allocations: 113.7 kB / 499.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007519/0.1869, allocations: 203.6 kB / 499.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/0.1899, allocations: 3.361 MB / 0.491 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007288/0.1906, allocations: 75.83 kB / 0.491 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.1908, allocations: 79.88 kB / 0.4911 GB, free: 8.555 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006257/0.1914, allocations: 385.5 kB / 0.4915 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1916, allocations: 79.05 kB / 0.4916 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/0.1943, allocations: 1.263 MB / 0.4928 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/0.1944, allocations: 16 kB / 0.4928 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1944, allocations: 0 / 0.4928 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.1944, allocations: 7.922 kB / 0.4928 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/0.1987, allocations: 2.444 MB / 0.4952 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1987, allocations: 0 / 0.4952 GB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000734/0.1995, allocations: 143.8 kB / 0.4953 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.1996, allocations: 32.84 kB / 0.4954 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.891e-05/0.1997, allocations: 31.91 kB / 0.4954 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.2009, allocations: 1.638 MB / 0.497 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2009, allocations: 0 / 0.497 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003828/0.2047, allocations: 1.923 MB / 0.4989 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.2051, allocations: 240 kB / 0.4991 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/0.2054, allocations: 80.02 kB / 0.4992 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007784/0.2062, allocations: 91.8 kB / 0.4993 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.2064, allocations: 64.52 kB / 0.4993 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.737e-05/0.2064, allocations: 35.97 kB / 0.4994 GB, free: 15.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004939/0.2069, allocations: 398.8 kB / 0.4997 GB, free: 15.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2069, allocations: 0 / 0.4997 GB, free: 15.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009609/0.2079, allocations: 240.2 kB / 0.5 GB, free: 15.14 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.004349/0.2123, allocations: 2.537 MB / 0.5025 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003612/0.2159, allocations: 1.979 MB / 0.5044 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.2159, allocations: 0 / 0.5044 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.2173, allocations: 0.6629 MB / 0.505 GB, free: 9.855 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.2184, allocations: 163.1 kB / 0.5052 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1956/0.414, allocations: 9.755 MB / 0.5147 GB, free: 70.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009623/0.415, allocations: 1.112 MB / 0.5158 GB, free: 70.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001035/0.416, allocations: 242.8 kB / 0.516 GB, free: 70.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004701/0.4165, allocations: 331.2 kB / 0.5163 GB, free: 70.14 MB / 398.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4165, allocations: 0 / 0.5163 GB, free: 70.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04911/0.4657, allocations: 18.36 MB / 0.5343 GB, free: 64.83 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/0.4658, allocations: 222.7 kB / 0.5345 GB, free: 64.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.349/2.815, allocations: 1.875 kB / 0.5345 GB, free: 64.57 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)