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 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.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.000904/0.0009039, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.0009647/0.0009646, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.712/1.712, allocations: 205.4 MB / 223.4 MB, free: 5.812 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3736/0.3736, allocations: 38.06 MB / 309.7 MB, free: 8.805 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.000516/0.0005161, allocations: 18.19 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1388, allocations: 56.32 MB / 433 MB, free: 6.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008498/0.1473, allocations: 6.711 MB / 439.7 MB, free: 0 / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006042/0.1534, allocations: 2.651 MB / 442.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.1547, allocations: 43.69 kB / 442.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009954/0.1557, allocations: 174.8 kB / 442.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003116/0.1588, allocations: 0.5989 MB / 443.1 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001833/0.1607, allocations: 439.2 kB / 443.6 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00294/0.1637, allocations: 2.011 MB / 445.6 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001937/0.1657, allocations: 0.8242 MB / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001669/0.1673, allocations: 0.6346 MB / 447 MB, free: 8.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001948/0.1693, allocations: 0.9157 MB / 447.9 MB, free: 7.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005117/0.1698, allocations: 68 kB / 448 MB, free: 7.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001656/0.1715, allocations: 0.5616 MB / 448.6 MB, free: 7.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00114/0.1727, allocations: 0.5573 MB / 449.1 MB, free: 6.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007443/0.1734, allocations: 225.2 kB / 449.3 MB, free: 6.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002338/0.1758, allocations: 1.535 MB / 450.9 MB, free: 4.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1758, allocations: 8 kB / 450.9 MB, free: 4.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1758, allocations: 0 / 450.9 MB, free: 4.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.166e-05/0.1759, allocations: 0 / 450.9 MB, free: 4.699 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.00538/0.1813, allocations: 1.717 MB / 452.6 MB, free: 2.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.1813, allocations: 11.97 kB / 452.6 MB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006312/0.182, allocations: 172.2 kB / 452.8 MB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.1831, allocations: 162.6 kB / 452.9 MB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002542/0.1856, allocations: 0.9118 MB / 453.9 MB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007693/0.1864, allocations: 0.5218 MB / 454.4 MB, free: 1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004481/0.1869, allocations: 103.9 kB / 454.5 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2625/0.4494, allocations: 2.095 MB / 456.6 MB, free: 50.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.12e-05/0.4495, allocations: 8.562 kB / 456.6 MB, free: 50.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.4496, allocations: 38.12 kB / 456.6 MB, free: 50.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002164/0.4498, allocations: 94.41 kB / 456.7 MB, free: 50.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004312/0.4542, allocations: 2.405 MB / 459.1 MB, free: 50.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007977/0.4621, allocations: 5.756 MB / 464.9 MB, free: 48.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003777/0.466, allocations: 1.943 MB / 466.8 MB, free: 48.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002135/0.4681, allocations: 1.248 MB / 468.1 MB, free: 47.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.233e-05/0.4682, allocations: 13.58 kB / 468.1 MB, free: 47.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002429/0.4707, allocations: 1.485 MB / 469.6 MB, free: 47.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=123): time 3.196e-06/0.4707, allocations: 4 kB / 469.6 MB, free: 47.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.0115/0.4822, allocations: 6.102 MB / 475.7 MB, free: 45.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.279e-05/0.4823, allocations: 105.1 kB / 475.8 MB, free: 45.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005133/0.4828, allocations: 0.4904 MB / 476.3 MB, free: 45.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.607e-05/0.4829, allocations: 61.62 kB / 476.3 MB, free: 45.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.4832, allocations: 355.9 kB / 476.7 MB, free: 44.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.4834, allocations: 421.1 kB / 477.1 MB, free: 44.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.388e-05/0.4835, allocations: 22.53 kB / 477.1 MB, free: 44.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.4836, allocations: 395 kB / 477.5 MB, free: 44.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.4854, allocations: 1.079 MB / 478.6 MB, free: 43.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.4872, allocations: 1.236 MB / 479.8 MB, free: 43.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.489, allocations: 1.114 MB / 480.9 MB, free: 42.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.489, allocations: 0 / 480.9 MB, free: 42.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01002/0.499, allocations: 4.373 MB / 485.3 MB, free: 41.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.801e-05/0.4991, allocations: 59.73 kB / 485.4 MB, free: 41.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.4992, allocations: 4.844 kB / 485.4 MB, free: 41.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005655/0.5048, allocations: 2.221 MB / 487.6 MB, free: 41.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.5059, allocations: 189.2 kB / 487.8 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02561/0.5315, allocations: 11.63 MB / 499.4 MB, free: 37.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.5331, allocations: 206.9 kB / 499.6 MB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003693/0.5335, allocations: 82.58 kB / 499.7 MB, free: 37.34 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 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.000816/0.5343, allocations: 370.6 kB / 0.4883 GB, free: 37.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.5346, allocations: 87.86 kB / 0.4884 GB, free: 37.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005788/0.5404, allocations: 2.553 MB / 0.4909 GB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.125e-05/0.5405, allocations: 31.91 kB / 0.4909 GB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.5405, allocations: 3.938 kB / 0.4909 GB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.822e-05/0.5405, allocations: 7.188 kB / 0.4909 GB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007716/0.5482, allocations: 4.306 MB / 0.4951 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.5483, allocations: 0 / 0.4951 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009544/0.5578, allocations: 2.857 MB / 0.4979 GB, free: 31.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.246e-05/0.5579, allocations: 7.953 kB / 0.4979 GB, free: 31.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000292/0.5582, allocations: 35.97 kB / 0.498 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.309e-05/0.5582, allocations: 8 kB / 0.498 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.5582, allocations: 0 / 0.498 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00706/0.5653, allocations: 4.146 MB / 0.502 GB, free: 27.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005896/0.5659, allocations: 343.8 kB / 0.5024 GB, free: 26.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002205/0.5662, allocations: 91.89 kB / 0.5024 GB, free: 26.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.5673, allocations: 238.4 kB / 0.5027 GB, free: 26.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003447/0.5677, allocations: 196 kB / 0.5029 GB, free: 26.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5678, allocations: 47.97 kB / 0.5029 GB, free: 26.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000343/0.5682, allocations: 338.8 kB / 0.5032 GB, free: 25.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5682, allocations: 0 / 0.5032 GB, free: 25.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001127/0.5693, allocations: 357 kB / 0.5036 GB, free: 25.63 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007132/0.5764, allocations: 4.801 MB / 0.5083 GB, free: 20.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006088/0.5826, allocations: 3.819 MB / 0.512 GB, free: 16.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/0.5826, allocations: 4 kB / 0.512 GB, free: 16.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005227/0.5879, allocations: 2.3 MB / 0.5142 GB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.5894, allocations: 164.8 kB / 0.5144 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02236/0.6118, allocations: 11.49 MB / 0.5256 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/0.6125, allocations: 1.152 MB / 0.5267 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001118/0.6136, allocations: 306.8 kB / 0.527 GB, free: 1.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000611/0.6143, allocations: 343.2 kB / 0.5274 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of SimCode: time 1.522e-06/0.6143, allocations: 4 kB / 0.5274 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05736/0.6716, allocations: 33.08 MB / 0.5597 GB, free: 15.86 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.6719, allocations: 224.8 kB / 0.5599 GB, free: 15.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.52/3.192, allocations: 4 kB / 0.5599 GB, free: 15.6 MB / 430.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/linux/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) Environment - environmentSimulation: