Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001296/0.001296, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.228/1.228, allocations: 194.5 MB / 211.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001741/0.001741, allocations: 110.6 kB / 256.9 MB, free: 4.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1592/0.1592, allocations: 37.99 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003406, allocations: 12 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.07853, allocations: 53.23 MB / 457 MB, free: 15.56 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.284/0.3626, allocations: 107.5 MB / 0.5512 GB, free: 4.227 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.3629, allocations: 95.12 kB / 0.5513 GB, free: 4.176 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06422/0.4271, allocations: 24.05 MB / 0.5748 GB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4272, allocations: 0 / 0.5748 GB, free: 15.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.007e-05/0.4273, allocations: 20 kB / 0.5748 GB, free: 15.45 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.00327/0.4305, allocations: 1.418 MB / 0.5762 GB, free: 14.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.4306, allocations: 12.02 kB / 0.5762 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008909/0.4315, allocations: 166.6 kB / 0.5764 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003891/0.4354, allocations: 1.402 MB / 0.5777 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.4356, allocations: 173.9 kB / 0.5779 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002648/0.4359, allocations: 98.86 kB / 0.578 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002787/0.4387, allocations: 1.526 MB / 0.5795 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.4387, allocations: 4 kB / 0.5795 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.4388, allocations: 50.86 kB / 0.5796 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.43e-05/0.4389, allocations: 57.73 kB / 0.5796 GB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002114/0.441, allocations: 1.151 MB / 0.5807 GB, free: 10.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006172/0.4472, allocations: 4.785 MB / 0.5854 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002713/0.45, allocations: 1.184 MB / 0.5866 GB, free: 5.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.45, allocations: 16.59 kB / 0.5866 GB, free: 5.234 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.4513, allocations: 0.7307 MB / 0.5873 GB, free: 4.652 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 2.926e-06/0.4514, allocations: 4 kB / 0.5873 GB, free: 4.648 MB / 394.7 MB Notification: Performance of matching and sorting (n=83): time 0.006721/0.4581, allocations: 3.473 MB / 0.5907 GB, free: 1.695 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/0.4582, allocations: 126.8 kB / 0.5908 GB, free: 1.551 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005914/0.4588, allocations: 0.5106 MB / 0.5913 GB, free: 1.145 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.617e-05/0.4589, allocations: 50.94 kB / 0.5914 GB, free: 1.102 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003159/0.4592, allocations: 464.7 kB / 0.5918 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.4594, allocations: 272 kB / 0.5921 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.4595, allocations: 21.05 kB / 0.5921 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4596, allocations: 391.4 kB / 0.5924 GB, free: 152 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007017/0.4604, allocations: 0.5032 MB / 0.5929 GB, free: 15.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008502/0.4612, allocations: 0.7785 MB / 0.5937 GB, free: 15.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008244/0.4621, allocations: 0.6374 MB / 0.5943 GB, free: 14.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.4621, allocations: 11.94 kB / 0.5943 GB, free: 14.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.00239/0.4645, allocations: 1.612 MB / 0.5959 GB, free: 13.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.4646, allocations: 61.77 kB / 0.596 GB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001883/0.4665, allocations: 1.371 MB / 0.5973 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000355/0.4669, allocations: 101.6 kB / 0.5974 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007006/0.4676, allocations: 195.6 kB / 0.5976 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/0.47, allocations: 3.009 MB / 0.6005 GB, free: 8.172 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006309/0.4707, allocations: 84.02 kB / 0.6006 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4708, allocations: 67.95 kB / 0.6007 GB, free: 8.023 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005881/0.4714, allocations: 373.7 kB / 0.601 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.4716, allocations: 79.06 kB / 0.6011 GB, free: 7.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002631/0.4742, allocations: 1.306 MB / 0.6024 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/0.4743, allocations: 16 kB / 0.6024 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.4743, allocations: 0 / 0.6024 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.4743, allocations: 3.984 kB / 0.6024 GB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004244/0.4785, allocations: 2.486 MB / 0.6048 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4785, allocations: 0 / 0.6048 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006835/0.4792, allocations: 147.8 kB / 0.605 GB, free: 3.496 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.55e-05/0.4793, allocations: 24.84 kB / 0.605 GB, free: 3.469 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.813e-05/0.4794, allocations: 27.97 kB / 0.605 GB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009122/0.4803, allocations: 1.389 MB / 0.6064 GB, free: 1.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4803, allocations: 0 / 0.6064 GB, free: 1.918 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003852/0.4842, allocations: 2.035 MB / 0.6084 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004707/0.4847, allocations: 240.1 kB / 0.6086 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002102/0.4849, allocations: 83.94 kB / 0.6087 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007626/0.4857, allocations: 107.9 kB / 0.6088 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.4858, allocations: 60.47 kB / 0.6088 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-05/0.4859, allocations: 27.97 kB / 0.6089 GB, free: 15.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004721/0.4864, allocations: 398.8 kB / 0.6092 GB, free: 14.88 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4864, allocations: 3.938 kB / 0.6092 GB, free: 14.88 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009526/0.4873, allocations: 251.9 kB / 0.6095 GB, free: 14.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003358/0.4877, allocations: 198.8 kB / 0.6097 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002665/0.4904, allocations: 1.681 MB / 0.6113 GB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/0.4904, allocations: 4 kB / 0.6113 GB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.4916, allocations: 0.6828 MB / 0.612 GB, free: 12.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006808/0.4923, allocations: 163.6 kB / 0.6121 GB, free: 11.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004731/0.4971, allocations: 2.801 MB / 0.6149 GB, free: 9.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007917/0.4979, allocations: 1.134 MB / 0.616 GB, free: 7.859 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006513/0.4985, allocations: 238.5 kB / 0.6162 GB, free: 7.621 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.4988, allocations: 67.36 kB / 0.6163 GB, free: 7.555 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4988, allocations: 0 / 0.6163 GB, free: 7.555 MB / 426.7 MB Notification: Performance of Templates: time 0.0174/0.5162, allocations: 9.948 MB / 0.626 GB, free: 13.61 MB / 442.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)