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.001483/0.001483, allocations: 174.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008653/0.0008653, allocations: 85.72 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1679/0.1679, allocations: 37.98 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.315e-05/1.316e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09005, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3776/0.4677, allocations: 111.7 MB / 0.565 GB, free: 15.23 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.4681, allocations: 87.95 kB / 0.5651 GB, free: 15.14 MB / 411.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd - DAE generated: time 0.06656/0.5347, allocations: 23.9 MB / 0.5884 GB, free: 7.039 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.5347, allocations: 0.5625 kB / 0.5884 GB, free: 7.039 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.216e-05/0.5348, allocations: 23.94 kB / 0.5885 GB, free: 7.016 MB / 427.1 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.00246/0.5373, allocations: 1.323 MB / 0.5898 GB, free: 5.613 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.5373, allocations: 8.031 kB / 0.5898 GB, free: 5.605 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007554/0.5381, allocations: 163.3 kB / 0.5899 GB, free: 5.445 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003603/0.5417, allocations: 1.386 MB / 0.5913 GB, free: 4.02 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.5419, allocations: 155 kB / 0.5914 GB, free: 3.848 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.542, allocations: 56 kB / 0.5915 GB, free: 3.793 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001434/0.5435, allocations: 0.9254 MB / 0.5924 GB, free: 2.867 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.5453, allocations: 1.307 MB / 0.5937 GB, free: 1.484 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.5453, allocations: 4 kB / 0.5937 GB, free: 1.48 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.829e-05/0.5454, allocations: 7.984 kB / 0.5937 GB, free: 1.473 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.309e-05/0.5455, allocations: 57.98 kB / 0.5937 GB, free: 1.418 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005854/0.5513, allocations: 4.591 MB / 0.5982 GB, free: 12.68 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.5526, allocations: 0.8655 MB / 0.5991 GB, free: 11.78 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006561/0.5532, allocations: 475.7 kB / 0.5995 GB, free: 11.31 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.433e-05/0.5533, allocations: 20.53 kB / 0.5995 GB, free: 11.29 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008437/0.5542, allocations: 0.6129 MB / 0.6001 GB, free: 10.65 MB / 443.1 MB Notification: Performance of pre-optimization done (n=82): time 3.066e-06/0.5542, allocations: 0 / 0.6001 GB, free: 10.65 MB / 443.1 MB Notification: Performance of matching and sorting (n=83): time 0.003522/0.5577, allocations: 2.289 MB / 0.6024 GB, free: 8.285 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.396e-05/0.5578, allocations: 119.4 kB / 0.6025 GB, free: 8.145 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004876/0.5583, allocations: 425.9 kB / 0.6029 GB, free: 7.723 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 7.875e-05/0.5584, allocations: 41.69 kB / 0.6029 GB, free: 7.676 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.5587, allocations: 454.9 kB / 0.6034 GB, free: 7.223 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002456/0.559, allocations: 280.2 kB / 0.6036 GB, free: 6.945 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.559, allocations: 0 / 0.6036 GB, free: 6.945 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.5592, allocations: 386.7 kB / 0.604 GB, free: 6.559 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00064/0.5599, allocations: 486.4 kB / 0.6045 GB, free: 6.082 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007873/0.5607, allocations: 0.7371 MB / 0.6052 GB, free: 5.23 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007666/0.5614, allocations: 0.5756 MB / 0.6057 GB, free: 4.66 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.5615, allocations: 4 kB / 0.6057 GB, free: 4.656 MB / 443.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.00211/0.5636, allocations: 1.468 MB / 0.6072 GB, free: 3.156 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.653e-05/0.5637, allocations: 58.39 kB / 0.6072 GB, free: 3.094 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001653/0.5653, allocations: 1.236 MB / 0.6084 GB, free: 1.832 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003511/0.5657, allocations: 93.64 kB / 0.6085 GB, free: 1.734 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007552/0.5665, allocations: 191.7 kB / 0.6087 GB, free: 1.547 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002393/0.5689, allocations: 2.875 MB / 0.6115 GB, free: 14.44 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006453/0.5695, allocations: 63.98 kB / 0.6116 GB, free: 14.38 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.5697, allocations: 63.95 kB / 0.6116 GB, free: 14.31 MB / 459.1 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.0002696/0.5699, allocations: 167.7 kB / 0.6118 GB, free: 14.14 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.5701, allocations: 67.16 kB / 0.6119 GB, free: 14.08 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.5718, allocations: 1.041 MB / 0.6129 GB, free: 13 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3e-05/0.5718, allocations: 23.98 kB / 0.6129 GB, free: 12.98 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5718, allocations: 4 kB / 0.6129 GB, free: 12.98 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.5719, allocations: 3.984 kB / 0.6129 GB, free: 12.97 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003216/0.5751, allocations: 2.117 MB / 0.615 GB, free: 10.78 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5751, allocations: 3.938 kB / 0.615 GB, free: 10.78 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007025/0.5758, allocations: 139.9 kB / 0.6151 GB, free: 10.64 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.786e-05/0.5759, allocations: 32.8 kB / 0.6151 GB, free: 10.61 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.411e-05/0.576, allocations: 23.91 kB / 0.6152 GB, free: 10.58 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008576/0.5768, allocations: 1.333 MB / 0.6165 GB, free: 9.133 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5769, allocations: 0 / 0.6165 GB, free: 9.133 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/0.5789, allocations: 1.684 MB / 0.6181 GB, free: 7.375 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003304/0.5793, allocations: 244 kB / 0.6183 GB, free: 7.117 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.5795, allocations: 67.94 kB / 0.6184 GB, free: 7.051 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007168/0.5802, allocations: 95.88 kB / 0.6185 GB, free: 6.957 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.5803, allocations: 60.64 kB / 0.6186 GB, free: 6.898 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.038e-05/0.5804, allocations: 27.97 kB / 0.6186 GB, free: 6.871 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003423/0.5807, allocations: 306.9 kB / 0.6189 GB, free: 6.57 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5807, allocations: 0 / 0.6189 GB, free: 6.57 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.0009739/0.5817, allocations: 224 kB / 0.6191 GB, free: 6.352 MB / 459.1 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.0003154/0.582, allocations: 194.9 kB / 0.6193 GB, free: 6.152 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.584, allocations: 1.514 MB / 0.6208 GB, free: 4.602 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.584, allocations: 0 / 0.6208 GB, free: 4.602 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006725/0.5847, allocations: 0.5669 MB / 0.6213 GB, free: 4.027 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006127/0.5853, allocations: 102 kB / 0.6214 GB, free: 3.93 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.5881, allocations: 1.845 MB / 0.6232 GB, free: 2.043 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/0.5888, allocations: 1.134 MB / 0.6243 GB, free: 0.8828 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0006124/0.5894, allocations: 225.8 kB / 0.6245 GB, free: 0.6602 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.5896, allocations: 59.42 kB / 0.6246 GB, free: 0.6016 MB / 459.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5896, allocations: 0 / 0.6246 GB, free: 0.6016 MB / 459.1 MB Notification: Performance of Templates: time 0.01473/0.6044, allocations: 8.675 MB / 0.6331 GB, free: 7.93 MB / 475.1 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