Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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 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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001429/0.001429, allocations: 109.4 kB / 16.92 MB, free: 5.781 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.001176/0.001177, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.384/1.384, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1798/0.1798, allocations: 38.02 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002292, allocations: 65 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1266, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.009145/0.1358, allocations: 6.495 MB / 463.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004154/0.14, allocations: 2.442 MB / 465.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004811/0.1405, allocations: 31.81 kB / 465.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.1418, allocations: 429.2 kB / 466.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00134/0.1431, allocations: 0.5912 MB / 466.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009906/0.1441, allocations: 499 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001818/0.146, allocations: 1.953 MB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.147, allocations: 0.8532 MB / 470.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009575/0.148, allocations: 0.7673 MB / 471 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.1493, allocations: 0.9624 MB / 472 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003851/0.1497, allocations: 163.9 kB / 472.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.1509, allocations: 0.6943 MB / 472.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007184/0.1516, allocations: 0.6393 MB / 473.5 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009259/0.1526, allocations: 0.6769 MB / 474.1 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001901/0.1545, allocations: 2.01 MB / 476.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1545, allocations: 0 / 476.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1545, allocations: 4 kB / 476.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.1545, allocations: 0 / 476.1 MB, free: 4.703 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004392/0.1589, allocations: 1.908 MB / 478.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.159, allocations: 11.89 kB / 478.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002056/0.1592, allocations: 172.4 kB / 478.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006624/0.1599, allocations: 159.6 kB / 478.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001943/0.1618, allocations: 0.9283 MB / 479.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005844/0.1624, allocations: 0.5025 MB / 479.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002367/0.1627, allocations: 103.9 kB / 479.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003737/0.1664, allocations: 2.011 MB / 481.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.1665, allocations: 4 kB / 481.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.1666, allocations: 35.98 kB / 482 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002075/0.1668, allocations: 93.94 kB / 482.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004649/0.1715, allocations: 2.244 MB / 484.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008861/0.1803, allocations: 5.691 MB / 490 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004494/0.1849, allocations: 1.789 MB / 491.8 MB, free: 4.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002458/0.1874, allocations: 1.144 MB / 492.9 MB, free: 3.508 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.85e-05/0.1875, allocations: 20.97 kB / 492.9 MB, free: 3.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002845/0.1903, allocations: 1.395 MB / 494.3 MB, free: 2.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 3.527e-06/0.1903, allocations: 0 / 494.3 MB, free: 2.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01381/0.2041, allocations: 5.614 MB / 500 MB, free: 12.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.193e-05/0.2043, allocations: 102.1 kB / 0.4883 GB, free: 12.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006569/0.2049, allocations: 0.494 MB / 0.4888 GB, free: 11.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.2051, allocations: 61.67 kB / 0.4889 GB, free: 11.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002892/0.2054, allocations: 356.8 kB / 0.4892 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004245/0.2058, allocations: 418 kB / 0.4896 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004552/0.2063, allocations: 230.8 kB / 0.4898 GB, free: 10.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.2064, allocations: 390.8 kB / 0.4902 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/0.2084, allocations: 1.029 MB / 0.4912 GB, free: 9.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.2104, allocations: 1.172 MB / 0.4924 GB, free: 8.082 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003768/0.2142, allocations: 2.039 MB / 0.4944 GB, free: 6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.2142, allocations: 4 kB / 0.4944 GB, free: 5.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01056/0.2248, allocations: 3.899 MB / 0.4982 GB, free: 2.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.124e-05/0.2249, allocations: 57.67 kB / 0.4982 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.2249, allocations: 4 kB / 0.4982 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1898/0.4147, allocations: 2.067 MB / 0.5002 GB, free: 56.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009878/0.4157, allocations: 192.1 kB / 0.5004 GB, free: 56.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02501/0.4407, allocations: 11.3 MB / 0.5115 GB, free: 53.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.442, allocations: 170.9 kB / 0.5116 GB, free: 53.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.4422, allocations: 72.27 kB / 0.5117 GB, free: 53.19 MB / 382.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: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],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,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.000533/0.4427, allocations: 380.5 kB / 0.5121 GB, free: 52.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.4429, allocations: 82.88 kB / 0.5121 GB, free: 52.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004797/0.4477, allocations: 2.36 MB / 0.5144 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.415e-05/0.4478, allocations: 31.31 kB / 0.5145 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4478, allocations: 1.219 kB / 0.5145 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.4478, allocations: 7.688 kB / 0.5145 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006627/0.4544, allocations: 4.116 MB / 0.5185 GB, free: 50.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.4544, allocations: 0 / 0.5185 GB, free: 50.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009963/0.4644, allocations: 2.019 MB / 0.5205 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.378e-05/0.4644, allocations: 7.781 kB / 0.5205 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/0.4646, allocations: 36.75 kB / 0.5205 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/0.4646, allocations: 4.438 kB / 0.5205 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4646, allocations: 10.84 kB / 0.5205 GB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006874/0.4715, allocations: 3.864 MB / 0.5243 GB, free: 47.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005204/0.472, allocations: 335.5 kB / 0.5246 GB, free: 46.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/0.4723, allocations: 83.95 kB / 0.5247 GB, free: 46.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.4735, allocations: 191.4 kB / 0.5249 GB, free: 46.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003582/0.4739, allocations: 196.6 kB / 0.5251 GB, free: 46.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.474, allocations: 39.97 kB / 0.5251 GB, free: 46.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003714/0.4744, allocations: 347 kB / 0.5254 GB, free: 46.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4744, allocations: 0 / 0.5254 GB, free: 46.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001256/0.4756, allocations: 358.8 kB / 0.5258 GB, free: 45.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.00762/0.4833, allocations: 4.527 MB / 0.5302 GB, free: 41.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007222/0.4906, allocations: 3.765 MB / 0.5339 GB, free: 37.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.4906, allocations: 0 / 0.5339 GB, free: 37.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005505/0.4961, allocations: 1.937 MB / 0.5358 GB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.4972, allocations: 174.1 kB / 0.5359 GB, free: 35.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02866/0.5258, allocations: 15.81 MB / 0.5514 GB, free: 19.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.5264, allocations: 1.145 MB / 0.5525 GB, free: 18.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009576/0.5273, allocations: 326.7 kB / 0.5528 GB, free: 17.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005453/0.5279, allocations: 347.3 kB / 0.5531 GB, free: 17.54 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5279, allocations: 0 / 0.5531 GB, free: 17.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05566/0.5836, allocations: 32.23 MB / 0.5846 GB, free: 1.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.37, allocations: 6.297 kB / 0.5846 GB, free: 1.52 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)