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.001096/0.001096, allocations: 107.7 kB / 17.7 MB, free: 5.371 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.001189/0.001189, allocations: 187.7 kB / 18.64 MB, free: 4.445 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.27/1.27, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1677/0.1677, allocations: 37.98 MB / 309.8 MB, free: 5.961 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.001384/0.001384, allocations: 67.02 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.1006, allocations: 55.24 MB / 487.7 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.007317/0.108, allocations: 6.497 MB / 494.2 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003669/0.1117, allocations: 2.482 MB / 496.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002916/0.112, allocations: 23.88 kB / 496.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.1131, allocations: 433.9 kB / 497.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.1142, allocations: 0.5911 MB / 497.7 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.1151, allocations: 495.1 kB / 498.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001543/0.1166, allocations: 1.957 MB / 0.4885 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008535/0.1175, allocations: 0.8493 MB / 0.4893 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007539/0.1182, allocations: 0.7712 MB / 0.49 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.1193, allocations: 0.9702 MB / 0.491 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001838/0.1195, allocations: 163.9 kB / 0.4911 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008122/0.1203, allocations: 0.6437 MB / 0.4918 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005498/0.1209, allocations: 0.6393 MB / 0.4924 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006065/0.1215, allocations: 0.673 MB / 0.4931 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001572/0.123, allocations: 2.037 MB / 0.495 GB, free: 5.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1231, allocations: 3.938 kB / 0.4951 GB, free: 5.074 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1231, allocations: 0 / 0.4951 GB, free: 5.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.1231, allocations: 0 / 0.4951 GB, free: 5.074 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.004105/0.1272, allocations: 1.904 MB / 0.4969 GB, free: 3.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1272, allocations: 19.83 kB / 0.4969 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006794/0.1279, allocations: 163.5 kB / 0.4971 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001942/0.1299, allocations: 0.9635 MB / 0.498 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005608/0.1305, allocations: 0.5066 MB / 0.4985 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002557/0.1307, allocations: 103.9 kB / 0.4986 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003705/0.1344, allocations: 2.011 MB / 0.5006 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.1345, allocations: 4 kB / 0.5006 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.1346, allocations: 36 kB / 0.5006 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000202/0.1348, allocations: 93.94 kB / 0.5007 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004497/0.1393, allocations: 2.248 MB / 0.5029 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008297/0.1476, allocations: 5.667 MB / 0.5084 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004331/0.152, allocations: 1.789 MB / 0.5102 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.1544, allocations: 1.156 MB / 0.5113 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.7e-05/0.1545, allocations: 16.98 kB / 0.5113 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002641/0.1572, allocations: 1.395 MB / 0.5127 GB, free: 2.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 2.876e-06/0.1572, allocations: 0 / 0.5127 GB, free: 2.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01266/0.1698, allocations: 5.614 MB / 0.5182 GB, free: 12.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.633e-05/0.1699, allocations: 106.1 kB / 0.5183 GB, free: 12.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005403/0.1705, allocations: 0.4901 MB / 0.5188 GB, free: 12.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.1706, allocations: 61.69 kB / 0.5188 GB, free: 12.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.1709, allocations: 360.7 kB / 0.5192 GB, free: 11.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003151/0.1712, allocations: 414.1 kB / 0.5196 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003952/0.1716, allocations: 226.8 kB / 0.5198 GB, free: 11.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1718, allocations: 394.8 kB / 0.5201 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00188/0.1737, allocations: 1.029 MB / 0.5212 GB, free: 9.812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.1756, allocations: 1.168 MB / 0.5223 GB, free: 8.602 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003658/0.1793, allocations: 2.043 MB / 0.5243 GB, free: 6.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.1793, allocations: 4 kB / 0.5243 GB, free: 6.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01022/0.1896, allocations: 3.903 MB / 0.5281 GB, free: 2.594 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.68e-05/0.1897, allocations: 61.67 kB / 0.5282 GB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.1897, allocations: 0 / 0.5282 GB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005548/0.1952, allocations: 2.069 MB / 0.5302 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008926/0.1962, allocations: 195.7 kB / 0.5304 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2318/0.4279, allocations: 11.28 MB / 0.5414 GB, free: 48.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.4294, allocations: 169.1 kB / 0.5416 GB, free: 48.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/0.4296, allocations: 86.89 kB / 0.5416 GB, free: 48.71 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.0006525/0.4302, allocations: 369.8 kB / 0.542 GB, free: 48.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.4304, allocations: 82.77 kB / 0.5421 GB, free: 48.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005059/0.4355, allocations: 2.36 MB / 0.5444 GB, free: 47.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.832e-05/0.4355, allocations: 32 kB / 0.5444 GB, free: 47.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4356, allocations: 5.188 kB / 0.5444 GB, free: 47.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.4356, allocations: 8.703 kB / 0.5444 GB, free: 47.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006982/0.4426, allocations: 4.103 MB / 0.5484 GB, free: 46.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.4426, allocations: 6.469 kB / 0.5484 GB, free: 46.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009887/0.4525, allocations: 2.012 MB / 0.5504 GB, free: 45.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.625e-05/0.4525, allocations: 6.656 kB / 0.5504 GB, free: 45.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/0.4527, allocations: 36.59 kB / 0.5504 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.498e-06/0.4527, allocations: 9.984 kB / 0.5504 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.4527, allocations: 6.188 kB / 0.5504 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006915/0.4596, allocations: 3.871 MB / 0.5542 GB, free: 43.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004387/0.4601, allocations: 335.5 kB / 0.5545 GB, free: 43.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.4603, allocations: 90.31 kB / 0.5546 GB, free: 43.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.4615, allocations: 179.8 kB / 0.5548 GB, free: 43.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003392/0.4618, allocations: 196.5 kB / 0.555 GB, free: 43.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.139e-05/0.4619, allocations: 42.97 kB / 0.555 GB, free: 43.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003049/0.4622, allocations: 342.2 kB / 0.5554 GB, free: 42.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4622, allocations: 4 kB / 0.5554 GB, free: 42.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009685/0.4632, allocations: 352.7 kB / 0.5557 GB, free: 42.78 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.0003253/0.4635, allocations: 224.4 kB / 0.5559 GB, free: 42.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005227/0.4688, allocations: 2.991 MB / 0.5588 GB, free: 39.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4688, allocations: 0 / 0.5588 GB, free: 39.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00515/0.474, allocations: 1.895 MB / 0.5607 GB, free: 37.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009171/0.4749, allocations: 181.9 kB / 0.5609 GB, free: 37.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006035/0.4809, allocations: 3.414 MB / 0.5642 GB, free: 34.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.4814, allocations: 1.148 MB / 0.5653 GB, free: 32.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004485/0.4819, allocations: 75.42 kB / 0.5654 GB, free: 32.83 MB / 414.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4819, allocations: 0 / 0.5654 GB, free: 32.83 MB / 414.1 MB Notification: Performance of Templates: time 0.01662/0.4985, allocations: 19.15 MB / 0.5841 GB, free: 13.64 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)