Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 221.3 MB / 235.5 MB, free: 2.926 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009055/0.0009055, allocations: 99.78 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.251e-05/2.265e-05, allocations: 0 / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 50.41 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3177/0.4293, allocations: 104.4 MB / 498.6 MB, free: 15.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.4296, allocations: 75.78 kB / 498.7 MB, free: 15.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6392/1.069, allocations: 219.8 MB / 0.7017 GB, free: 14.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.069, allocations: 0 / 0.7017 GB, free: 14.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003137/1.069, allocations: 88 kB / 0.7017 GB, free: 14.75 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01032/1.08, allocations: 4.652 MB / 0.7063 GB, free: 10.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6e-05/1.08, allocations: 8.031 kB / 0.7063 GB, free: 10.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001661/1.081, allocations: 0.741 MB / 0.707 GB, free: 9.277 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009369/1.091, allocations: 4.481 MB / 0.7114 GB, free: 4.711 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.904e-05/1.091, allocations: 73.95 kB / 0.7115 GB, free: 4.637 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002667/1.091, allocations: 99.89 kB / 0.7116 GB, free: 4.539 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002376/1.093, allocations: 1.445 MB / 0.713 GB, free: 3.023 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/1.094, allocations: 3.984 kB / 0.713 GB, free: 3.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/1.094, allocations: 40 kB / 0.713 GB, free: 2.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.256e-05/1.094, allocations: 43.97 kB / 0.7131 GB, free: 2.938 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002548/1.096, allocations: 1.352 MB / 0.7144 GB, free: 1.582 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.259/1.355, allocations: 5.835 MB / 0.7201 GB, free: 59.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/1.356, allocations: 0.8821 MB / 0.7209 GB, free: 59.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/1.358, allocations: 1.155 MB / 0.7221 GB, free: 59.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08687/1.445, allocations: 71.7 MB / 0.7921 GB, free: 23.48 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/1.446, allocations: 0.5006 MB / 0.7926 GB, free: 23.42 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 5.21e-06/1.446, allocations: 0 / 0.7926 GB, free: 23.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.003629/1.449, allocations: 1.457 MB / 0.794 GB, free: 23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003088/1.45, allocations: 480.4 kB / 0.7944 GB, free: 22.44 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/1.46, allocations: 4.761 MB / 0.7991 GB, free: 21.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002642/1.46, allocations: 41.45 kB / 0.7991 GB, free: 21.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003201/1.464, allocations: 2.946 MB / 0.802 GB, free: 21.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000436/1.464, allocations: 302.3 kB / 0.8023 GB, free: 21.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/1.464, allocations: 27.88 kB / 0.8023 GB, free: 21.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/1.464, allocations: 369 kB / 0.8027 GB, free: 21.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009849/1.465, allocations: 343.3 kB / 0.803 GB, free: 21.14 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/1.467, allocations: 1.124 MB / 0.8041 GB, free: 20.15 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/1.468, allocations: 0.5183 MB / 0.8046 GB, free: 20.13 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/1.468, allocations: 7.75 kB / 0.8046 GB, free: 20.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005211/1.473, allocations: 2.088 MB / 0.8067 GB, free: 19.74 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/1.473, allocations: 11.69 kB / 0.8067 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002938/1.474, allocations: 161.9 kB / 0.8068 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.445e-05/1.474, allocations: 39.22 kB / 0.8069 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002213/1.476, allocations: 363.3 kB / 0.8072 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.97e-05/1.476, allocations: 50.2 kB / 0.8073 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004597/1.481, allocations: 211.1 kB / 0.8075 GB, free: 19.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002698/1.481, allocations: 126.8 kB / 0.8076 GB, free: 19.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001016/1.482, allocations: 212.9 kB / 0.8078 GB, free: 35.59 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001631/1.484, allocations: 0.7205 MB / 0.8085 GB, free: 35.21 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00944/1.493, allocations: 2.123 MB / 0.8106 GB, free: 35.08 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.493, allocations: 6.344 kB / 0.8106 GB, free: 35.08 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/1.493, allocations: 0 / 0.8106 GB, free: 35.08 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/1.493, allocations: 11.08 kB / 0.8106 GB, free: 35.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009266/1.503, allocations: 3.71 MB / 0.8142 GB, free: 34.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002513/1.503, allocations: 140.9 kB / 0.8143 GB, free: 34.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/1.504, allocations: 167.9 kB / 0.8145 GB, free: 34.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.421e-05/1.504, allocations: 3.406 kB / 0.8145 GB, free: 34.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/1.504, allocations: 62.73 kB / 0.8146 GB, free: 34.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/1.505, allocations: 7.109 kB / 0.8146 GB, free: 34.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.505, allocations: 7.672 kB / 0.8146 GB, free: 34.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004298/1.509, allocations: 2.09 MB / 0.8166 GB, free: 33.92 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00277/1.512, allocations: 0.9213 MB / 0.8175 GB, free: 33.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/1.513, allocations: 30.11 kB / 0.8175 GB, free: 33.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002439/1.515, allocations: 51.2 kB / 0.8176 GB, free: 33.39 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/1.516, allocations: 96.19 kB / 0.8177 GB, free: 33.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/1.516, allocations: 69.09 kB / 0.8177 GB, free: 33.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009157/1.525, allocations: 3.615 MB / 0.8213 GB, free: 33.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.525, allocations: 3.938 kB / 0.8213 GB, free: 33.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004516/1.529, allocations: 1.169 MB / 0.8224 GB, free: 33.08 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0027/1.532, allocations: 1.232 MB / 0.8236 GB, free: 32.97 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002918/1.535, allocations: 1.32 MB / 0.8249 GB, free: 32.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/1.535, allocations: 7.031 kB / 0.8249 GB, free: 32.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/1.536, allocations: 0.7127 MB / 0.8256 GB, free: 32.45 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007357/1.544, allocations: 1.165 MB / 0.8268 GB, free: 32.38 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/1.56, allocations: 6.004 MB / 0.8326 GB, free: 30.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003462/1.563, allocations: 2.713 MB / 0.8353 GB, free: 29.45 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004463/1.568, allocations: 0.7256 MB / 0.836 GB, free: 29.41 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005887/1.568, allocations: 300.9 kB / 0.8363 GB, free: 29.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/1.568, allocations: 0 / 0.8363 GB, free: 29.4 MB / 474.7 MB Notification: Performance of Templates: time 0.1032/1.672, allocations: 55.83 MB / 0.8908 GB, free: 5.059 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches