Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001049/0.001049, allocations: 105.8 kB / 17.06 MB, free: 6.023 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.001158/0.001158, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1798/0.1798, allocations: 37.99 MB / 309.2 MB, free: 5.969 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 67.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1269, allocations: 55.23 MB / 486.6 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.01167/0.1387, allocations: 5.974 MB / 492.6 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004171/0.1429, allocations: 1.598 MB / 494.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005349/0.1434, allocations: 23.88 kB / 494.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006733/0.1442, allocations: 138.9 kB / 494.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00135/0.1456, allocations: 366.1 kB / 494.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.1466, allocations: 311.5 kB / 495 MB, free: 432 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002074/0.1487, allocations: 1.34 MB / 496.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007529/0.1495, allocations: 372.6 kB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.1507, allocations: 0.5412 MB / 497.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.1521, allocations: 0.5453 MB / 497.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002538/0.1524, allocations: 92 kB / 497.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.1526, allocations: 92 kB / 498 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005887/0.1532, allocations: 355.2 kB / 498.3 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000745/0.154, allocations: 406.3 kB / 498.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.1556, allocations: 1.063 MB / 499.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1556, allocations: 0 / 499.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1556, allocations: 0 / 499.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.1557, allocations: 0 / 499.8 MB, free: 11.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.004094/0.1598, allocations: 1.196 MB / 0.4892 GB, free: 10.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.1598, allocations: 15.89 kB / 0.4892 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002265/0.1601, allocations: 110.7 kB / 0.4893 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002583/0.1604, allocations: 84.09 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.1623, allocations: 0.6589 MB / 0.4901 GB, free: 9.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006457/0.163, allocations: 343.2 kB / 0.4904 GB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.1632, allocations: 67.83 kB / 0.4905 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00358/0.1668, allocations: 1.039 MB / 0.4915 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.1668, allocations: 0 / 0.4915 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.167, allocations: 28 kB / 0.4915 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.167, allocations: 12 kB / 0.4915 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00458/0.1716, allocations: 1.089 MB / 0.4926 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00816/0.1798, allocations: 3.193 MB / 0.4957 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003514/0.1833, allocations: 0.749 MB / 0.4964 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002369/0.1857, allocations: 0.5376 MB / 0.4969 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.415e-05/0.1858, allocations: 8.375 kB / 0.497 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002315/0.1882, allocations: 0.6226 MB / 0.4976 GB, free: 1.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 4.428e-06/0.1882, allocations: 0 / 0.4976 GB, free: 1.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.0061/0.1943, allocations: 1.366 MB / 0.4989 GB, free: 176 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.1945, allocations: 148.5 kB / 0.499 GB, free: 15.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006969/0.1952, allocations: 393.7 kB / 0.4994 GB, free: 15.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.1953, allocations: 41.73 kB / 0.4995 GB, free: 15.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.1956, allocations: 288.4 kB / 0.4997 GB, free: 15.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002575/0.1959, allocations: 169.6 kB / 0.4999 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003477/0.1962, allocations: 118.1 kB / 0.5 GB, free: 14.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002163/0.1965, allocations: 358.8 kB / 0.5003 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/0.1982, allocations: 452.9 kB / 0.5008 GB, free: 14.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001848/0.2001, allocations: 0.56 MB / 0.5013 GB, free: 13.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003182/0.2033, allocations: 0.8857 MB / 0.5022 GB, free: 12.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/0.2033, allocations: 8 kB / 0.5022 GB, free: 12.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00406/0.2074, allocations: 1.082 MB / 0.5033 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.461e-05/0.2075, allocations: 53.69 kB / 0.5033 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.2076, allocations: 4 kB / 0.5033 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.716e-05/0.2076, allocations: 4 kB / 0.5033 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008926/0.2166, allocations: 1.112 MB / 0.5044 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/0.2292, allocations: 4.697 MB / 0.509 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.2305, allocations: 111.5 kB / 0.5091 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002016/0.2307, allocations: 31.98 kB / 0.5091 GB, free: 5.246 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006616/0.2314, allocations: 251.4 kB / 0.5094 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.2316, allocations: 63.22 kB / 0.5094 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/0.2361, allocations: 0.981 MB / 0.5104 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.047e-05/0.2361, allocations: 12 kB / 0.5104 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.2362, allocations: 0 / 0.5104 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.2362, allocations: 3.984 kB / 0.5104 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00599/0.2422, allocations: 2.137 MB / 0.5125 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.2422, allocations: 0 / 0.5125 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006155/0.2484, allocations: 1.284 MB / 0.5137 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.479e-05/0.2484, allocations: 4 kB / 0.5137 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.2486, allocations: 19.98 kB / 0.5138 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.2486, allocations: 4 kB / 0.5138 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.2486, allocations: 3.938 kB / 0.5138 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003865/0.2524, allocations: 1.689 MB / 0.5154 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/0.2528, allocations: 208.3 kB / 0.5156 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.253, allocations: 31.98 kB / 0.5156 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000665/0.2536, allocations: 87.88 kB / 0.5157 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.2539, allocations: 103.7 kB / 0.5158 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.2539, allocations: 19.98 kB / 0.5158 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002965/0.2542, allocations: 271.2 kB / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2542, allocations: 0 / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006288/0.2549, allocations: 171.7 kB / 0.5163 GB, free: 13.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003972/0.2588, allocations: 2.275 MB / 0.5185 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006838/0.2657, allocations: 2.078 MB / 0.5205 GB, free: 9.344 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.2657, allocations: 0 / 0.5205 GB, free: 9.344 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003324/0.2691, allocations: 0.9604 MB / 0.5215 GB, free: 8.383 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008738/0.27, allocations: 137.3 kB / 0.5216 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.2811, allocations: 6.557 MB / 0.528 GB, free: 1.488 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.2816, allocations: 0.9329 MB / 0.5289 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005003/0.2821, allocations: 156.6 kB / 0.5291 GB, free: 384 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.2825, allocations: 195.4 kB / 0.5292 GB, free: 188 kB / 414.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2825, allocations: 0 / 0.5292 GB, free: 188 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2209/0.5034, allocations: 13.94 MB / 0.5429 GB, free: 49.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.55, allocations: 14.25 kB / 0.5429 GB, free: 49.78 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)