Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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) 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(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001459/0.001459, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, 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.001084/0.001084, allocations: 94.97 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.069e-05/2.109e-05, allocations: 4 kB / 314.8 MB, free: 9.176 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3249, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1192/0.4441, allocations: 76.56 MB / 438.9 MB, free: 9.762 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.4444, allocations: 67.97 kB / 438.9 MB, free: 9.695 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01272/0.4571, allocations: 2.78 MB / 441.7 MB, free: 6.953 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4572, allocations: 0 / 441.7 MB, free: 6.953 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.4572, allocations: 8 kB / 441.7 MB, free: 6.945 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009968/0.4582, allocations: 488.8 kB / 442.2 MB, free: 6.43 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4583, allocations: 8.031 kB / 442.2 MB, free: 6.422 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.586e-05/0.4584, allocations: 23.72 kB / 442.2 MB, free: 6.398 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.4588, allocations: 226.8 kB / 442.5 MB, free: 6.137 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.4588, allocations: 8 kB / 442.5 MB, free: 6.129 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.4589, allocations: 15.95 kB / 442.5 MB, free: 6.113 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003551/0.4592, allocations: 108.5 kB / 442.6 MB, free: 6.008 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004157/0.4597, allocations: 172.7 kB / 442.8 MB, free: 5.82 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.4597, allocations: 0 / 442.8 MB, free: 5.82 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.4597, allocations: 4 kB / 442.8 MB, free: 5.816 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.935e-05/0.4598, allocations: 6.375 kB / 442.8 MB, free: 5.812 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.4615, allocations: 0.7642 MB / 443.5 MB, free: 5 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008687/0.4624, allocations: 183.5 kB / 443.7 MB, free: 4.812 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.4625, allocations: 48.84 kB / 443.8 MB, free: 4.762 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.4626, allocations: 0 / 443.8 MB, free: 4.762 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002964/0.4629, allocations: 141 kB / 443.9 MB, free: 4.605 MB / 331.1 MB Notification: Performance of pre-optimization done (n=15): time 1.963e-06/0.4629, allocations: 0 / 443.9 MB, free: 4.605 MB / 331.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005153/0.4635, allocations: 150.3 kB / 444.1 MB, free: 4.453 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.4635, allocations: 85.11 kB / 444.1 MB, free: 4.352 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.4638, allocations: 183.1 kB / 444.3 MB, free: 4.16 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.4638, allocations: 33.64 kB / 444.3 MB, free: 4.121 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.464, allocations: 198.7 kB / 444.5 MB, free: 3.922 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.4641, allocations: 27.62 kB / 444.6 MB, free: 3.895 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.677e-05/0.4641, allocations: 4 kB / 444.6 MB, free: 3.891 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4642, allocations: 320 kB / 444.9 MB, free: 3.57 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.4644, allocations: 51.98 kB / 444.9 MB, free: 3.52 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.4646, allocations: 114.6 kB / 445 MB, free: 3.379 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.4648, allocations: 71.89 kB / 445.1 MB, free: 3.309 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.4649, allocations: 0 / 445.1 MB, free: 3.309 MB / 331.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005126/0.4654, allocations: 199.6 kB / 445.3 MB, free: 3.109 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.4654, allocations: 7.984 kB / 445.3 MB, free: 3.102 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.4654, allocations: 4 kB / 445.3 MB, free: 3.098 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.4655, allocations: 4 kB / 445.3 MB, free: 3.094 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003407/0.4658, allocations: 35.92 kB / 445.4 MB, free: 3.059 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.4658, allocations: 4 kB / 445.4 MB, free: 3.055 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.4662, allocations: 38.03 kB / 445.4 MB, free: 3.02 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.14e-05/0.4662, allocations: 12 kB / 445.4 MB, free: 3.008 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001376/0.4664, allocations: 123.2 kB / 445.5 MB, free: 2.879 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.4664, allocations: 26.94 kB / 445.6 MB, free: 2.855 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003648/0.4668, allocations: 123.4 kB / 445.7 MB, free: 2.734 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.4668, allocations: 4 kB / 445.7 MB, free: 2.73 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.4668, allocations: 4 kB / 445.7 MB, free: 2.727 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.4669, allocations: 3.984 kB / 445.7 MB, free: 2.723 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008837/0.4677, allocations: 434.8 kB / 446.1 MB, free: 2.254 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4678, allocations: 1.031 kB / 446.1 MB, free: 2.254 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.468, allocations: 23.92 kB / 446.1 MB, free: 2.23 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.468, allocations: 4 kB / 446.1 MB, free: 2.227 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.4681, allocations: 4 kB / 446.1 MB, free: 2.223 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.4681, allocations: 0 / 446.1 MB, free: 2.223 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.4681, allocations: 4 kB / 446.2 MB, free: 2.219 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004741/0.4686, allocations: 265.8 kB / 446.4 MB, free: 1.934 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.651e-05/0.4687, allocations: 92.86 kB / 446.5 MB, free: 1.824 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.272e-05/0.4687, allocations: 7.938 kB / 446.5 MB, free: 1.816 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/0.469, allocations: 24.91 kB / 446.5 MB, free: 1.793 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4692, allocations: 19.97 kB / 446.6 MB, free: 1.773 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.4692, allocations: 8 kB / 446.6 MB, free: 1.766 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001578/0.4694, allocations: 132.2 kB / 446.7 MB, free: 1.637 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4694, allocations: 0 / 446.7 MB, free: 1.637 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004466/0.4698, allocations: 35.94 kB / 446.7 MB, free: 1.602 MB / 331.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002097/0.4701, allocations: 111.2 kB / 446.8 MB, free: 1.48 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004146/0.4705, allocations: 143.6 kB / 447 MB, free: 1.344 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.4705, allocations: 0 / 447 MB, free: 1.344 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.4707, allocations: 69.64 kB / 447 MB, free: 1.277 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.4711, allocations: 25.09 kB / 447.1 MB, free: 1.254 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000787/0.4719, allocations: 280.4 kB / 447.3 MB, free: 0.9453 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.4723, allocations: 0.7359 MB / 448.1 MB, free: 184 kB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.4725, allocations: 27.42 kB / 448.1 MB, free: 156 kB / 331.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4725, allocations: 4 kB / 448.1 MB, free: 152 kB / 331.1 MB Notification: Performance of Templates: time 0.006538/0.479, allocations: 2.325 MB / 450.4 MB, free: 13.87 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches