Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001708/0.001708, allocations: 175.5 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.497/1.497, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008709/0.0008709, allocations: 78.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.154/0.154, allocations: 37.98 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.107e-05/3.131e-05, allocations: 0 / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 56.31 MB / 474.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4066/0.5094, allocations: 102.1 MB / 0.5627 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.5097, allocations: 88.58 kB / 0.5628 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03972/0.5494, allocations: 14.36 MB / 0.5768 GB, free: 4.191 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.5494, allocations: 0 / 0.5768 GB, free: 4.191 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.427e-05/0.5495, allocations: 23.69 kB / 0.5768 GB, free: 4.172 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001543/0.5511, allocations: 0.9546 MB / 0.5777 GB, free: 3.207 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.5511, allocations: 16.03 kB / 0.5778 GB, free: 3.191 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.5513, allocations: 90.92 kB / 0.5778 GB, free: 3.102 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.5544, allocations: 1.173 MB / 0.579 GB, free: 2.082 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.5545, allocations: 112.8 kB / 0.5791 GB, free: 1.977 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.5547, allocations: 66.06 kB / 0.5792 GB, free: 1.934 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.556, allocations: 0.8058 MB / 0.5799 GB, free: 1.316 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.556, allocations: 3.938 kB / 0.58 GB, free: 1.312 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.927e-05/0.5561, allocations: 30.48 kB / 0.58 GB, free: 1.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.5561, allocations: 19.95 kB / 0.58 GB, free: 1.281 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009147/0.557, allocations: 0.5482 MB / 0.5805 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003785/0.5608, allocations: 2.76 MB / 0.5832 GB, free: 14.53 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.562, allocations: 0.8146 MB / 0.584 GB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.5623, allocations: 235.2 kB / 0.5842 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.5624, allocations: 8.281 kB / 0.5843 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004404/0.5628, allocations: 292.7 kB / 0.5845 GB, free: 13.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 6.331e-06/0.5629, allocations: 11.86 kB / 0.5845 GB, free: 13.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.002274/0.5651, allocations: 1.374 MB / 0.5859 GB, free: 12.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.5652, allocations: 114.7 kB / 0.586 GB, free: 11.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005453/0.5658, allocations: 450.6 kB / 0.5864 GB, free: 11.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.5659, allocations: 41.38 kB / 0.5865 GB, free: 11.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.5661, allocations: 359 kB / 0.5868 GB, free: 11.31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.5662, allocations: 141.5 kB / 0.5869 GB, free: 11.19 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/0.5663, allocations: 15.38 kB / 0.587 GB, free: 11.19 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5664, allocations: 366 kB / 0.5873 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003006/0.5667, allocations: 202.5 kB / 0.5875 GB, free: 10.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004095/0.5671, allocations: 363.2 kB / 0.5878 GB, free: 10.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003844/0.5675, allocations: 288.1 kB / 0.5881 GB, free: 10.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5676, allocations: 0 / 0.5881 GB, free: 10.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001098/0.5687, allocations: 0.8208 MB / 0.5889 GB, free: 9.465 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-05/0.5687, allocations: 53.44 kB / 0.589 GB, free: 9.414 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.5688, allocations: 8 kB / 0.589 GB, free: 9.406 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002371/0.569, allocations: 67.86 kB / 0.589 GB, free: 9.344 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.5694, allocations: 115.1 kB / 0.5892 GB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/0.5716, allocations: 2.837 MB / 0.5919 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003981/0.572, allocations: 39.53 kB / 0.592 GB, free: 6.238 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.347e-05/0.5721, allocations: 43.16 kB / 0.592 GB, free: 6.199 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.5723, allocations: 152.4 kB / 0.5922 GB, free: 6.059 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.775e-05/0.5724, allocations: 66.27 kB / 0.5922 GB, free: 5.996 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000933/0.5733, allocations: 0.5901 MB / 0.5928 GB, free: 5.504 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.5733, allocations: 8 kB / 0.5928 GB, free: 5.496 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.5734, allocations: 0 / 0.5928 GB, free: 5.496 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.5734, allocations: 4 kB / 0.5928 GB, free: 5.492 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.5752, allocations: 1.437 MB / 0.5942 GB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5753, allocations: 0 / 0.5942 GB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/0.5756, allocations: 67.2 kB / 0.5943 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001849/0.5758, allocations: 66.8 kB / 0.5943 GB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.832e-05/0.5758, allocations: 14.11 kB / 0.5943 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/0.5779, allocations: 2.835 MB / 0.5971 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5779, allocations: 0 / 0.5971 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.5791, allocations: 0.9456 MB / 0.598 GB, free: 340 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/0.5794, allocations: 172.1 kB / 0.5982 GB, free: 164 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.818e-05/0.5795, allocations: 33.67 kB / 0.5982 GB, free: 144 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003825/0.5799, allocations: 42.27 kB / 0.5983 GB, free: 108 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.516e-05/0.58, allocations: 31.7 kB / 0.5983 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.58, allocations: 15.61 kB / 0.5983 GB, free: 68 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004448/0.5805, allocations: 356.1 kB / 0.5987 GB, free: 15.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5805, allocations: 0 / 0.5987 GB, free: 15.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007276/0.5812, allocations: 161.6 kB / 0.5988 GB, free: 15.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002221/0.5815, allocations: 134.2 kB / 0.5989 GB, free: 15.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.5827, allocations: 0.8253 MB / 0.5997 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5827, allocations: 0 / 0.5997 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005965/0.5833, allocations: 469.5 kB / 0.6002 GB, free: 14.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.584, allocations: 131.8 kB / 0.6003 GB, free: 14.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.586, allocations: 1.124 MB / 0.6014 GB, free: 13.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006607/0.5867, allocations: 0.9915 MB / 0.6024 GB, free: 12.28 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003566/0.587, allocations: 101 kB / 0.6025 GB, free: 12.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.5872, allocations: 46.92 kB / 0.6025 GB, free: 12.14 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5872, allocations: 0 / 0.6025 GB, free: 12.14 MB / 410.7 MB Notification: Performance of Templates: time 0.01323/0.6004, allocations: 6.752 MB / 0.6091 GB, free: 5.414 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches