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.001022/0.001022, allocations: 180.9 kB / 16.39 MB, free: 5.766 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.358/1.358, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0008674/0.0008674, allocations: 95.22 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1616/0.1616, allocations: 38.05 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003597, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2565, allocations: 56.31 MB / 480.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1398/0.3964, allocations: 112.4 MB / 0.5788 GB, free: 5.961 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.3967, allocations: 91.95 kB / 0.5789 GB, free: 5.871 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.066/0.4627, allocations: 24.05 MB / 0.6024 GB, free: 13.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4628, allocations: 0 / 0.6024 GB, free: 13.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.744e-05/0.4628, allocations: 23.94 kB / 0.6024 GB, free: 13.56 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.003378/0.4662, allocations: 1.417 MB / 0.6038 GB, free: 12.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.4663, allocations: 8.031 kB / 0.6038 GB, free: 12.06 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008033/0.4671, allocations: 167.2 kB / 0.604 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004093/0.4712, allocations: 1.406 MB / 0.6054 GB, free: 10.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.4714, allocations: 171.1 kB / 0.6055 GB, free: 10.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001859/0.4716, allocations: 95.97 kB / 0.6056 GB, free: 10.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002699/0.4743, allocations: 1.529 MB / 0.6071 GB, free: 8.559 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.4743, allocations: 7.938 kB / 0.6071 GB, free: 8.551 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.4744, allocations: 39.98 kB / 0.6072 GB, free: 8.512 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.689e-05/0.4745, allocations: 61.97 kB / 0.6072 GB, free: 8.453 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/0.4766, allocations: 1.147 MB / 0.6083 GB, free: 7.305 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00593/0.4825, allocations: 4.785 MB / 0.613 GB, free: 2.367 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002763/0.4853, allocations: 1.196 MB / 0.6142 GB, free: 1.129 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.867e-05/0.4854, allocations: 12.62 kB / 0.6142 GB, free: 1.117 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.4868, allocations: 0.7338 MB / 0.6149 GB, free: 368 kB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 3.206e-06/0.4868, allocations: 0 / 0.6149 GB, free: 368 kB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.006938/0.4937, allocations: 3.467 MB / 0.6183 GB, free: 12.76 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.4939, allocations: 127.4 kB / 0.6184 GB, free: 12.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000628/0.4945, allocations: 0.5215 MB / 0.6189 GB, free: 12.08 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.576e-05/0.4946, allocations: 49.7 kB / 0.619 GB, free: 12.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003548/0.4949, allocations: 455.1 kB / 0.6194 GB, free: 11.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.4952, allocations: 280.2 kB / 0.6197 GB, free: 11.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.175e-05/0.4952, allocations: 23.98 kB / 0.6197 GB, free: 11.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.4954, allocations: 390.7 kB / 0.6201 GB, free: 10.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006968/0.4961, allocations: 0.4981 MB / 0.6206 GB, free: 10.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008572/0.497, allocations: 0.7702 MB / 0.6213 GB, free: 9.504 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008343/0.4978, allocations: 0.6407 MB / 0.6219 GB, free: 8.859 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4979, allocations: 7.938 kB / 0.6219 GB, free: 8.852 MB / 458.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.00236/0.5002, allocations: 1.623 MB / 0.6235 GB, free: 7.191 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.782e-05/0.5003, allocations: 64.64 kB / 0.6236 GB, free: 7.125 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001856/0.5022, allocations: 1.375 MB / 0.6249 GB, free: 5.715 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003782/0.5026, allocations: 102 kB / 0.625 GB, free: 5.609 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007187/0.5033, allocations: 195.6 kB / 0.6252 GB, free: 5.418 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002441/0.5057, allocations: 3.009 MB / 0.6282 GB, free: 2.137 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007068/0.5065, allocations: 75.78 kB / 0.6282 GB, free: 2.062 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.5066, allocations: 71.91 kB / 0.6283 GB, free: 1.992 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.0006638/0.5073, allocations: 377.6 kB / 0.6287 GB, free: 1.613 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.5074, allocations: 79.05 kB / 0.6287 GB, free: 1.535 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002662/0.5101, allocations: 1.29 MB / 0.63 GB, free: 216 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.64e-05/0.5102, allocations: 16 kB / 0.63 GB, free: 200 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5102, allocations: 4 kB / 0.63 GB, free: 196 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.5102, allocations: 11.94 kB / 0.63 GB, free: 184 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/0.5144, allocations: 2.475 MB / 0.6324 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.5145, allocations: 4 kB / 0.6324 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007118/0.5152, allocations: 143.8 kB / 0.6326 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.851e-05/0.5153, allocations: 24.86 kB / 0.6326 GB, free: 13.45 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.949e-05/0.5153, allocations: 32.06 kB / 0.6326 GB, free: 13.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009088/0.5163, allocations: 1.389 MB / 0.634 GB, free: 11.89 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5163, allocations: 7.875 kB / 0.634 GB, free: 11.89 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003737/0.52, allocations: 2.039 MB / 0.636 GB, free: 9.773 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.5205, allocations: 236.1 kB / 0.6362 GB, free: 9.523 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.5207, allocations: 79.94 kB / 0.6363 GB, free: 9.445 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007393/0.5215, allocations: 111.9 kB / 0.6364 GB, free: 9.336 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.5216, allocations: 60.52 kB / 0.6365 GB, free: 9.273 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-05/0.5217, allocations: 23.98 kB / 0.6365 GB, free: 9.25 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005134/0.5222, allocations: 402.8 kB / 0.6369 GB, free: 8.855 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5223, allocations: 0 / 0.6369 GB, free: 8.855 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009712/0.5232, allocations: 255.9 kB / 0.6371 GB, free: 8.605 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.0003435/0.5236, allocations: 198.8 kB / 0.6373 GB, free: 8.402 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.5263, allocations: 1.681 MB / 0.6389 GB, free: 6.684 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5263, allocations: 0 / 0.6389 GB, free: 6.684 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.5276, allocations: 0.6868 MB / 0.6396 GB, free: 5.984 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000728/0.5283, allocations: 146.8 kB / 0.6398 GB, free: 5.844 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004032/0.5324, allocations: 2.82 MB / 0.6425 GB, free: 2.984 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007015/0.5331, allocations: 1.13 MB / 0.6436 GB, free: 1.828 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006841/0.5338, allocations: 234.5 kB / 0.6438 GB, free: 1.594 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/0.534, allocations: 59.42 kB / 0.6439 GB, free: 1.535 MB / 474.7 MB Notification: Performance of SimCode: time 8.02e-07/0.534, allocations: 0 / 0.6439 GB, free: 1.535 MB / 474.7 MB Notification: Performance of Templates: time 0.2032/0.7372, allocations: 9.951 MB / 0.6536 GB, free: 136.6 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/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