Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009355/0.0009355, allocations: 195.4 kB / 18.07 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 245.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007408/0.0007408, allocations: 102.7 kB / 297.4 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002084/0.0002084, allocations: 4 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.1811, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.2881, allocations: 105.2 MB / 0.5018 GB, free: 2.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/0.2883, allocations: 77.2 kB / 0.5019 GB, free: 2.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6682/0.9566, allocations: 216.3 MB / 0.7131 GB, free: 67.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.9566, allocations: 0 / 0.7131 GB, free: 67.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001666/0.9568, allocations: 83.41 kB / 0.7132 GB, free: 67.79 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.007089/0.9639, allocations: 5.966 MB / 0.719 GB, free: 64.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.9639, allocations: 9.719 kB / 0.719 GB, free: 64.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005152/0.9645, allocations: 0.7426 MB / 0.7198 GB, free: 64.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005434/0.9699, allocations: 4.88 MB / 0.7245 GB, free: 62.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.217e-05/0.9699, allocations: 66.09 kB / 0.7246 GB, free: 62.63 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001811/0.9701, allocations: 98.98 kB / 0.7247 GB, free: 62.63 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/0.9722, allocations: 1.538 MB / 0.7262 GB, free: 62.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.9722, allocations: 0 / 0.7262 GB, free: 62.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.9723, allocations: 43.86 kB / 0.7262 GB, free: 62.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/0.9724, allocations: 33.61 kB / 0.7263 GB, free: 62.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002111/0.9745, allocations: 1.521 MB / 0.7278 GB, free: 62.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007525/0.982, allocations: 5.816 MB / 0.7334 GB, free: 61.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.9834, allocations: 1.019 MB / 0.7344 GB, free: 61.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001311/0.9847, allocations: 1.233 MB / 0.7356 GB, free: 61.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04829/1.033, allocations: 72.19 MB / 0.8061 GB, free: 17.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008713/1.034, allocations: 0.5761 MB / 0.8067 GB, free: 16.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 2.916e-06/1.034, allocations: 3.312 kB / 0.8067 GB, free: 16.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.002625/1.037, allocations: 1.943 MB / 0.8086 GB, free: 14.96 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/1.037, allocations: 482.3 kB / 0.8091 GB, free: 14.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005643/1.042, allocations: 5.713 MB / 0.8146 GB, free: 9.121 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.64e-05/1.043, allocations: 49.14 kB / 0.8147 GB, free: 9.07 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002131/1.045, allocations: 2.941 MB / 0.8176 GB, free: 6.125 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/1.045, allocations: 294.2 kB / 0.8178 GB, free: 5.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.182e-05/1.045, allocations: 32 kB / 0.8179 GB, free: 5.809 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/1.045, allocations: 361.9 kB / 0.8182 GB, free: 5.449 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008055/1.046, allocations: 423.1 kB / 0.8186 GB, free: 5.039 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/1.047, allocations: 1.208 MB / 0.8198 GB, free: 3.488 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/1.049, allocations: 1.657 MB / 0.8214 GB, free: 1.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/1.049, allocations: 8 kB / 0.8214 GB, free: 1.652 MB / 458.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003082/1.052, allocations: 2.244 MB / 0.8236 GB, free: 15.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/1.052, allocations: 19.94 kB / 0.8236 GB, free: 15.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001851/1.053, allocations: 164 kB / 0.8238 GB, free: 15.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.544e-05/1.053, allocations: 35.94 kB / 0.8238 GB, free: 15.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/1.054, allocations: 369 kB / 0.8242 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.633e-05/1.054, allocations: 48.55 kB / 0.8242 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/1.055, allocations: 214 kB / 0.8244 GB, free: 14.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/1.056, allocations: 124 kB / 0.8245 GB, free: 14.66 MB / 474.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 () * Number of clocked 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.001239/1.057, allocations: 0.7185 MB / 0.8252 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005755/1.058, allocations: 0.7141 MB / 0.8259 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004769/1.062, allocations: 2.199 MB / 0.8281 GB, free: 11.18 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/1.062, allocations: 11.94 kB / 0.8281 GB, free: 11.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/1.062, allocations: 0 / 0.8281 GB, free: 11.17 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/1.062, allocations: 3.984 kB / 0.8281 GB, free: 11.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00545/1.068, allocations: 3.84 MB / 0.8319 GB, free: 7.289 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001667/1.068, allocations: 143.9 kB / 0.832 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007034/1.069, allocations: 165.9 kB / 0.8322 GB, free: 6.992 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/1.069, allocations: 4 kB / 0.8322 GB, free: 6.988 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.395e-05/1.069, allocations: 63.92 kB / 0.8322 GB, free: 6.926 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/1.069, allocations: 3.375 kB / 0.8322 GB, free: 6.926 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.069, allocations: 4 kB / 0.8322 GB, free: 6.922 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003046/1.072, allocations: 2.214 MB / 0.8344 GB, free: 4.676 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/1.073, allocations: 0.9118 MB / 0.8353 GB, free: 3.727 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005041/1.074, allocations: 16 kB / 0.8353 GB, free: 3.711 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/1.075, allocations: 59.89 kB / 0.8353 GB, free: 3.652 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/1.075, allocations: 100.5 kB / 0.8354 GB, free: 3.555 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/1.075, allocations: 68 kB / 0.8355 GB, free: 3.488 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004576/1.08, allocations: 3.686 MB / 0.8391 GB, free: 15.83 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.08, allocations: 4 kB / 0.8391 GB, free: 15.83 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002292/1.082, allocations: 1.167 MB / 0.8403 GB, free: 14.66 MB / 490.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) * Number of clocked states: 0 () * 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.00158/1.084, allocations: 1.247 MB / 0.8415 GB, free: 13.66 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002232/1.086, allocations: 1.473 MB / 0.8429 GB, free: 12.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/1.086, allocations: 4 kB / 0.8429 GB, free: 12.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/1.087, allocations: 0.7864 MB / 0.8437 GB, free: 11.35 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004782/1.092, allocations: 1.15 MB / 0.8448 GB, free: 10.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01174/1.103, allocations: 9.324 MB / 0.8539 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1821/1.286, allocations: 2.594 MB / 0.8564 GB, free: 108.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005826/1.286, allocations: 315.4 kB / 0.8567 GB, free: 108.6 MB / 490.7 MB Notification: Performance of SimCode: time 6.31e-07/1.286, allocations: 3 kB / 0.8567 GB, free: 108.6 MB / 490.7 MB Notification: Performance of Templates: time 0.08951/1.376, allocations: 71.92 MB / 0.927 GB, free: 96.84 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches