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: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 104.2 kB / 17.06 MB, free: 5.992 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.001681/0.001681, allocations: 191 kB / 18 MB, free: 5.078 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.825/1.825, 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.1856/0.1856, allocations: 37.98 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.001993/0.001993, allocations: 67.91 kB / 431.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1634, allocations: 55.24 MB / 487.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008688/0.1721, allocations: 6.489 MB / 493.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004431/0.1766, allocations: 2.478 MB / 496.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000433/0.177, allocations: 23.88 kB / 496.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.1785, allocations: 449.8 kB / 496.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.18, allocations: 0.5912 MB / 497.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.1812, allocations: 487.1 kB / 497.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00204/0.1832, allocations: 1.961 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001526/0.1848, allocations: 0.8571 MB / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001526/0.1863, allocations: 0.7868 MB / 0.4895 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.1877, allocations: 0.9624 MB / 0.4904 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002353/0.1879, allocations: 160 kB / 0.4906 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/0.1893, allocations: 0.6476 MB / 0.4912 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007596/0.1901, allocations: 0.6432 MB / 0.4918 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001231/0.1913, allocations: 0.6731 MB / 0.4925 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002422/0.1938, allocations: 2.045 MB / 0.4945 GB, free: 5.047 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.1938, allocations: 3.984 kB / 0.4945 GB, free: 5.043 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1938, allocations: 0 / 0.4945 GB, free: 5.043 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.1938, allocations: 0 / 0.4945 GB, free: 5.043 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.004879/0.1987, allocations: 1.9 MB / 0.4963 GB, free: 3.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.1988, allocations: 15.89 kB / 0.4963 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007873/0.1996, allocations: 171.5 kB / 0.4965 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/0.2021, allocations: 0.9712 MB / 0.4975 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00063/0.2028, allocations: 0.4989 MB / 0.4979 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002506/0.203, allocations: 99.92 kB / 0.498 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004137/0.2072, allocations: 2.015 MB / 0.5 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.363e-05/0.2072, allocations: 8 kB / 0.5 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001327/0.2074, allocations: 35.98 kB / 0.5001 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002164/0.2076, allocations: 85.89 kB / 0.5001 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004882/0.2125, allocations: 2.244 MB / 0.5023 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00943/0.2219, allocations: 5.667 MB / 0.5079 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004265/0.2262, allocations: 1.789 MB / 0.5096 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002405/0.2286, allocations: 1.152 MB / 0.5107 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.453e-05/0.2287, allocations: 13 kB / 0.5107 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002943/0.2317, allocations: 1.391 MB / 0.5121 GB, free: 2.582 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 4.919e-06/0.2317, allocations: 4 kB / 0.5121 GB, free: 2.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01287/0.2446, allocations: 5.626 MB / 0.5176 GB, free: 12.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/0.2447, allocations: 106.1 kB / 0.5177 GB, free: 12.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005818/0.2453, allocations: 0.4902 MB / 0.5182 GB, free: 12.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.2454, allocations: 53.7 kB / 0.5182 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.2457, allocations: 364.7 kB / 0.5186 GB, free: 11.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003659/0.2461, allocations: 414.1 kB / 0.519 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004225/0.2465, allocations: 226.8 kB / 0.5192 GB, free: 11.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.2467, allocations: 394.7 kB / 0.5196 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.2486, allocations: 1.025 MB / 0.5206 GB, free: 9.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/0.2506, allocations: 1.18 MB / 0.5217 GB, free: 8.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003803/0.2544, allocations: 2.039 MB / 0.5237 GB, free: 6.492 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.2545, allocations: 4 kB / 0.5237 GB, free: 6.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01028/0.2647, allocations: 3.899 MB / 0.5275 GB, free: 2.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.761e-05/0.2649, allocations: 61.67 kB / 0.5276 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.2649, allocations: 4 kB / 0.5276 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005937/0.2708, allocations: 2.073 MB / 0.5296 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.272, allocations: 183.8 kB / 0.5298 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.299/0.571, allocations: 11.3 MB / 0.5408 GB, free: 48.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.5725, allocations: 170.8 kB / 0.541 GB, free: 48.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/0.5727, allocations: 72.7 kB / 0.5411 GB, free: 48.68 MB / 414.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.0007611/0.5735, allocations: 382.4 kB / 0.5414 GB, free: 48.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.5737, allocations: 80.56 kB / 0.5415 GB, free: 48.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005145/0.5789, allocations: 2.36 MB / 0.5438 GB, free: 47.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-05/0.579, allocations: 22.44 kB / 0.5438 GB, free: 47.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.579, allocations: 6.484 kB / 0.5438 GB, free: 47.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.579, allocations: 8.797 kB / 0.5438 GB, free: 47.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007432/0.5864, allocations: 4.097 MB / 0.5478 GB, free: 46.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.5865, allocations: 5.547 kB / 0.5478 GB, free: 46.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009484/0.596, allocations: 2.015 MB / 0.5498 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.169e-05/0.5961, allocations: 6.906 kB / 0.5498 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/0.5963, allocations: 43.56 kB / 0.5499 GB, free: 45.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.098e-05/0.5963, allocations: 10.12 kB / 0.5499 GB, free: 45.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5963, allocations: 5.984 kB / 0.5499 GB, free: 45.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006866/0.6032, allocations: 3.858 MB / 0.5536 GB, free: 43.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005783/0.6038, allocations: 343.4 kB / 0.554 GB, free: 43.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.604, allocations: 90.91 kB / 0.5541 GB, free: 43.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.6052, allocations: 186.2 kB / 0.5542 GB, free: 43.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/0.6056, allocations: 193 kB / 0.5544 GB, free: 43.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.261e-05/0.6057, allocations: 42.84 kB / 0.5545 GB, free: 43.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003175/0.606, allocations: 347 kB / 0.5548 GB, free: 42.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.606, allocations: 1.312 kB / 0.5548 GB, free: 42.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001081/0.6071, allocations: 353.1 kB / 0.5551 GB, free: 42.75 MB / 414.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.0003705/0.6075, allocations: 217.3 kB / 0.5553 GB, free: 42.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005526/0.613, allocations: 2.999 MB / 0.5583 GB, free: 39.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.613, allocations: 0 / 0.5583 GB, free: 39.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004932/0.618, allocations: 1.937 MB / 0.5602 GB, free: 37.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.619, allocations: 187.5 kB / 0.5603 GB, free: 37.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0063/0.6253, allocations: 3.334 MB / 0.5636 GB, free: 34.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000615/0.626, allocations: 1.136 MB / 0.5647 GB, free: 32.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000897/0.6269, allocations: 322.7 kB / 0.565 GB, free: 32.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004096/0.6273, allocations: 79.41 kB / 0.5651 GB, free: 32.51 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6273, allocations: 0 / 0.5651 GB, free: 32.51 MB / 414.1 MB Notification: Performance of Templates: time 0.03102/0.6583, allocations: 24.86 MB / 0.5894 GB, free: 7.629 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)