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.0009678/0.0009678, allocations: 174.9 kB / 13.63 MB, free: 1.684 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.341/1.341, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0007562/0.0007561, allocations: 86.66 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1534/0.1534, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.327e-05/2.329e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08634/0.08638, allocations: 56.31 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4421, allocations: 112.3 MB / 0.5727 GB, free: 6.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.4424, allocations: 85.64 kB / 0.5727 GB, free: 6.664 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06387/0.5062, allocations: 24.03 MB / 0.5962 GB, free: 1.977 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.5063, allocations: 0 / 0.5962 GB, free: 1.977 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.306e-05/0.5063, allocations: 23.94 kB / 0.5962 GB, free: 1.953 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.002236/0.5086, allocations: 1.328 MB / 0.5975 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.5086, allocations: 8.031 kB / 0.5975 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006998/0.5093, allocations: 163.3 kB / 0.5977 GB, free: 464 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.5127, allocations: 1.389 MB / 0.599 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.5129, allocations: 169.9 kB / 0.5992 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.513, allocations: 94.75 kB / 0.5993 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/0.515, allocations: 1.425 MB / 0.6007 GB, free: 13.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.515, allocations: 4 kB / 0.6007 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.931e-05/0.5151, allocations: 40.36 kB / 0.6007 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-05/0.5152, allocations: 57.36 kB / 0.6008 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.5167, allocations: 1.034 MB / 0.6018 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/0.5225, allocations: 4.787 MB / 0.6065 GB, free: 9.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.5238, allocations: 0.9035 MB / 0.6073 GB, free: 8.367 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007093/0.5245, allocations: 496.2 kB / 0.6078 GB, free: 8.043 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.636e-05/0.5246, allocations: 12.55 kB / 0.6078 GB, free: 8.027 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008576/0.5255, allocations: 0.6395 MB / 0.6085 GB, free: 7.539 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 2.404e-06/0.5255, allocations: 3.938 kB / 0.6085 GB, free: 7.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.003457/0.5289, allocations: 2.375 MB / 0.6108 GB, free: 5.562 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.529, allocations: 123.1 kB / 0.6109 GB, free: 5.418 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005245/0.5296, allocations: 0.5125 MB / 0.6114 GB, free: 5.012 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.969e-05/0.5297, allocations: 54.25 kB / 0.6115 GB, free: 4.965 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.5299, allocations: 449 kB / 0.6119 GB, free: 4.621 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.5301, allocations: 279.8 kB / 0.6121 GB, free: 4.383 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.5302, allocations: 23.98 kB / 0.6122 GB, free: 4.375 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5303, allocations: 396.2 kB / 0.6125 GB, free: 4.012 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006504/0.531, allocations: 0.4933 MB / 0.613 GB, free: 3.688 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007874/0.5318, allocations: 0.7635 MB / 0.6138 GB, free: 2.996 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007812/0.5326, allocations: 0.631 MB / 0.6144 GB, free: 2.539 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.5326, allocations: 4 kB / 0.6144 GB, free: 2.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002202/0.5348, allocations: 1.609 MB / 0.616 GB, free: 1.273 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.273e-05/0.5349, allocations: 60.86 kB / 0.616 GB, free: 1.215 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001832/0.5367, allocations: 1.361 MB / 0.6174 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003515/0.5371, allocations: 105.9 kB / 0.6175 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00075/0.5378, allocations: 195.6 kB / 0.6176 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.5401, allocations: 2.985 MB / 0.6206 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005966/0.5407, allocations: 75.88 kB / 0.6206 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.5408, allocations: 63.95 kB / 0.6207 GB, free: 12.27 MB / 426.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 () * 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.0002141/0.5411, allocations: 196.7 kB / 0.6209 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.5412, allocations: 75.06 kB / 0.621 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001683/0.5429, allocations: 1.092 MB / 0.622 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.8e-05/0.5429, allocations: 31.94 kB / 0.622 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.5429, allocations: 0 / 0.622 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.5429, allocations: 7.984 kB / 0.6221 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/0.5461, allocations: 2.292 MB / 0.6243 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.5461, allocations: 0 / 0.6243 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007176/0.5468, allocations: 143.8 kB / 0.6244 GB, free: 8.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.42e-05/0.5469, allocations: 28.78 kB / 0.6245 GB, free: 8.281 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.784e-05/0.547, allocations: 23.97 kB / 0.6245 GB, free: 8.258 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008163/0.5478, allocations: 1.385 MB / 0.6258 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5478, allocations: 7.984 kB / 0.6258 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002231/0.55, allocations: 1.743 MB / 0.6275 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003835/0.5504, allocations: 240.1 kB / 0.6278 GB, free: 4.664 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.5506, allocations: 84 kB / 0.6279 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007567/0.5514, allocations: 107.9 kB / 0.628 GB, free: 4.477 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.5515, allocations: 52.66 kB / 0.628 GB, free: 4.422 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.415e-05/0.5516, allocations: 31.97 kB / 0.628 GB, free: 4.391 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004258/0.552, allocations: 393.5 kB / 0.6284 GB, free: 4.008 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.552, allocations: 0 / 0.6284 GB, free: 4.008 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008155/0.5529, allocations: 251.9 kB / 0.6287 GB, free: 3.762 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]) * 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.0002924/0.5532, allocations: 206.6 kB / 0.6288 GB, free: 3.555 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.5552, allocations: 1.575 MB / 0.6304 GB, free: 1.945 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5552, allocations: 5.312 kB / 0.6304 GB, free: 1.941 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007645/0.5559, allocations: 0.5849 MB / 0.631 GB, free: 1.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006992/0.5567, allocations: 147.1 kB / 0.6311 GB, free: 1.199 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.5593, allocations: 1.892 MB / 0.633 GB, free: 15.27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00067/0.56, allocations: 1.126 MB / 0.6341 GB, free: 14.11 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006223/0.5607, allocations: 238.5 kB / 0.6343 GB, free: 13.87 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.5609, allocations: 67.42 kB / 0.6343 GB, free: 13.8 MB / 442.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5609, allocations: 3.938 kB / 0.6343 GB, free: 13.8 MB / 442.7 MB Notification: Performance of Templates: time 0.01617/0.5771, allocations: 10.01 MB / 0.6441 GB, free: 3.797 MB / 442.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/jenkins/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