Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0018/0.0018, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.4 MB / 223.5 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007832/0.0007832, allocations: 93.47 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1817/0.1817, allocations: 38.08 MB / 358.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003758, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3379, allocations: 56.32 MB / 481.6 MB, free: 9.594 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1542/0.4922, allocations: 112.5 MB / 0.5801 GB, free: 5.75 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/0.4926, allocations: 95.81 kB / 0.5802 GB, free: 5.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06939/0.562, allocations: 24.05 MB / 0.6037 GB, free: 13.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.562, allocations: 0 / 0.6037 GB, free: 13.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.576e-05/0.5621, allocations: 20 kB / 0.6037 GB, free: 13.36 MB / 442.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.004059/0.5662, allocations: 1.402 MB / 0.6051 GB, free: 11.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.5663, allocations: 12.03 kB / 0.6051 GB, free: 11.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/0.5674, allocations: 163.5 kB / 0.6052 GB, free: 11.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002864/0.5703, allocations: 1.061 MB / 0.6063 GB, free: 10.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.5705, allocations: 176 kB / 0.6064 GB, free: 10.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003465/0.5709, allocations: 91.91 kB / 0.6065 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003128/0.574, allocations: 1.545 MB / 0.608 GB, free: 8.703 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.5741, allocations: 7.938 kB / 0.6081 GB, free: 8.695 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.5742, allocations: 47.97 kB / 0.6081 GB, free: 8.648 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.464e-05/0.5743, allocations: 57.98 kB / 0.6082 GB, free: 8.59 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.5767, allocations: 1.147 MB / 0.6093 GB, free: 7.445 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007006/0.5837, allocations: 4.781 MB / 0.6139 GB, free: 2.512 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002781/0.5865, allocations: 1.2 MB / 0.6151 GB, free: 1.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/0.5879, allocations: 0.5852 MB / 0.6157 GB, free: 0.6758 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.594e-05/0.5879, allocations: 16.55 kB / 0.6157 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001491/0.5894, allocations: 0.7338 MB / 0.6164 GB, free: 15.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=82): time 4.879e-06/0.5894, allocations: 0 / 0.6164 GB, free: 15.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=83): time 0.007422/0.5969, allocations: 3.306 MB / 0.6196 GB, free: 12.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.409e-05/0.597, allocations: 127.3 kB / 0.6198 GB, free: 12.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007758/0.5978, allocations: 0.5848 MB / 0.6203 GB, free: 11.76 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.98e-05/0.5979, allocations: 61.67 kB / 0.6204 GB, free: 11.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003881/0.5983, allocations: 447.1 kB / 0.6208 GB, free: 11.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002785/0.5986, allocations: 284.2 kB / 0.6211 GB, free: 10.97 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.996e-05/0.5986, allocations: 16 kB / 0.6211 GB, free: 10.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.5988, allocations: 390.8 kB / 0.6215 GB, free: 10.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000768/0.5996, allocations: 482 kB / 0.6219 GB, free: 10.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008973/0.6005, allocations: 0.7499 MB / 0.6227 GB, free: 9.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.6022, allocations: 1.254 MB / 0.6239 GB, free: 7.855 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.6022, allocations: 0 / 0.6239 GB, free: 7.855 MB / 458.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002483/0.6047, allocations: 1.568 MB / 0.6254 GB, free: 6.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.342e-05/0.6048, allocations: 68.27 kB / 0.6255 GB, free: 6.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001877/0.6066, allocations: 1.317 MB / 0.6268 GB, free: 4.832 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004185/0.6071, allocations: 101.6 kB / 0.6269 GB, free: 4.727 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007284/0.6078, allocations: 199.5 kB / 0.6271 GB, free: 4.531 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002527/0.6104, allocations: 2.989 MB / 0.63 GB, free: 1.273 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007429/0.6111, allocations: 83.94 kB / 0.6301 GB, free: 1.191 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.6113, allocations: 63.95 kB / 0.6301 GB, free: 1.129 MB / 458.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.0007135/0.612, allocations: 377.3 kB / 0.6305 GB, free: 0.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.6122, allocations: 79.06 kB / 0.6306 GB, free: 0.6719 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002794/0.615, allocations: 1.298 MB / 0.6318 GB, free: 15.35 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-05/0.6151, allocations: 19.94 kB / 0.6319 GB, free: 15.33 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.6151, allocations: 4 kB / 0.6319 GB, free: 15.32 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.6151, allocations: 3.984 kB / 0.6319 GB, free: 15.32 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004591/0.6197, allocations: 2.498 MB / 0.6343 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.6198, allocations: 0 / 0.6343 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007277/0.6205, allocations: 147.8 kB / 0.6344 GB, free: 12.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.492e-05/0.6206, allocations: 24.84 kB / 0.6345 GB, free: 12.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.9e-05/0.6207, allocations: 23.97 kB / 0.6345 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.6218, allocations: 1.389 MB / 0.6358 GB, free: 11.01 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.6218, allocations: 0 / 0.6358 GB, free: 11.01 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003787/0.6256, allocations: 2.009 MB / 0.6378 GB, free: 8.953 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.6261, allocations: 240 kB / 0.638 GB, free: 8.699 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002442/0.6263, allocations: 79.94 kB / 0.6381 GB, free: 8.621 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008185/0.6271, allocations: 103.9 kB / 0.6382 GB, free: 8.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.6273, allocations: 56.58 kB / 0.6383 GB, free: 8.465 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.13e-05/0.6274, allocations: 31.97 kB / 0.6383 GB, free: 8.434 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00062/0.628, allocations: 394.8 kB / 0.6387 GB, free: 8.047 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.628, allocations: 0 / 0.6387 GB, free: 8.047 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001251/0.6293, allocations: 256.2 kB / 0.6389 GB, free: 7.797 MB / 474.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.0004313/0.6297, allocations: 210.7 kB / 0.6391 GB, free: 7.578 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003094/0.6328, allocations: 1.658 MB / 0.6407 GB, free: 5.875 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6328, allocations: 0 / 0.6407 GB, free: 5.875 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.6341, allocations: 0.687 MB / 0.6414 GB, free: 5.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.6354, allocations: 163.3 kB / 0.6416 GB, free: 5.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005119/0.6405, allocations: 2.816 MB / 0.6443 GB, free: 2.164 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.6416, allocations: 1.111 MB / 0.6454 GB, free: 1.023 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007857/0.6424, allocations: 230.5 kB / 0.6456 GB, free: 0.793 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002514/0.6426, allocations: 63.42 kB / 0.6457 GB, free: 0.7305 MB / 474.7 MB Notification: Performance of SimCode: time 6.81e-07/0.6426, allocations: 8 kB / 0.6457 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of Templates: time 0.2228/0.8655, allocations: 10.08 MB / 0.6555 GB, free: 137.2 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Inverter.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches