Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 201.8 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.164/1.164, allocations: 227.2 MB / 245 MB, free: 7.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007998/0.0007998, allocations: 96.06 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001943/0.0001944, allocations: 4 kB / 357.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1706, allocations: 51.49 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08323/0.2538, allocations: 78.9 MB / 488.3 MB, free: 11.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.254, allocations: 71.97 kB / 488.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008195/0.2622, allocations: 2.971 MB / 491.3 MB, free: 8.695 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2623, allocations: 0 / 491.3 MB, free: 8.695 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.2623, allocations: 8 kB / 491.3 MB, free: 8.688 MB / 362.7 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.0007096/0.263, allocations: 0.4886 MB / 491.8 MB, free: 8.145 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.263, allocations: 8.031 kB / 491.8 MB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.2632, allocations: 39.7 kB / 491.9 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.2634, allocations: 230.6 kB / 492.1 MB, free: 7.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.2635, allocations: 12 kB / 492.1 MB, free: 7.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.2635, allocations: 27.94 kB / 492.1 MB, free: 7.793 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.2639, allocations: 205.5 kB / 492.3 MB, free: 7.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.2639, allocations: 0 / 492.3 MB, free: 7.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.2639, allocations: 4 kB / 492.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.2639, allocations: 16 kB / 492.4 MB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003084/0.2642, allocations: 143.7 kB / 492.5 MB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.2653, allocations: 0.8012 MB / 493.3 MB, free: 6.547 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000576/0.2659, allocations: 218.6 kB / 493.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.2659, allocations: 0 / 493.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002402/0.2662, allocations: 144 kB / 493.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.172e-06/0.2662, allocations: 0 / 493.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005449/0.2667, allocations: 257.3 kB / 493.9 MB, free: 5.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.2668, allocations: 81.09 kB / 494 MB, free: 5.812 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.2669, allocations: 198 kB / 494.2 MB, free: 5.613 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.267, allocations: 33.7 kB / 494.2 MB, free: 5.574 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.218e-05/0.2671, allocations: 136.5 kB / 494.4 MB, free: 5.438 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.2671, allocations: 31.98 kB / 494.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/0.2671, allocations: 4 kB / 494.4 MB, free: 5.402 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.2672, allocations: 330.8 kB / 494.7 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.2674, allocations: 67.95 kB / 494.8 MB, free: 5.004 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.2676, allocations: 149.3 kB / 494.9 MB, free: 4.828 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.2677, allocations: 88.84 kB / 495 MB, free: 4.742 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2678, allocations: 0 / 495 MB, free: 4.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004296/0.2682, allocations: 256.6 kB / 495.3 MB, free: 4.488 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2682, allocations: 4 kB / 495.3 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2682, allocations: 7.938 kB / 495.3 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2682, allocations: 4 kB / 495.3 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.2684, allocations: 35.97 kB / 495.3 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.2684, allocations: 7.938 kB / 495.3 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.2686, allocations: 47.92 kB / 495.4 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.2686, allocations: 11.98 kB / 495.4 MB, free: 4.371 MB / 362.7 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 () * Number of clocked 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.0001311/0.2688, allocations: 152 kB / 495.5 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.2688, allocations: 19.8 kB / 495.5 MB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002213/0.269, allocations: 131 kB / 495.7 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2691, allocations: 4 kB / 495.7 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2691, allocations: 0 / 495.7 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-06/0.2691, allocations: 0 / 495.7 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005492/0.2696, allocations: 482.2 kB / 496.1 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.2696, allocations: 3.938 kB / 496.2 MB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.2698, allocations: 24.3 kB / 496.2 MB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.2698, allocations: 0 / 496.2 MB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.2698, allocations: 11.98 kB / 496.2 MB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.2698, allocations: 4 kB / 496.2 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2698, allocations: 0 / 496.2 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003865/0.2702, allocations: 309.7 kB / 496.5 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.281e-05/0.2703, allocations: 88.92 kB / 496.6 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.2703, allocations: 8 kB / 496.6 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.2705, allocations: 20.16 kB / 496.6 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.108e-05/0.2706, allocations: 23.97 kB / 496.6 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.2706, allocations: 11.94 kB / 496.6 MB, free: 2.992 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001094/0.2707, allocations: 148.4 kB / 496.8 MB, free: 2.848 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2707, allocations: 0 / 496.8 MB, free: 2.848 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002812/0.271, allocations: 51.91 kB / 496.8 MB, free: 2.797 MB / 362.7 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) * Number of clocked states: 0 () * 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.0001309/0.2711, allocations: 115.1 kB / 497 MB, free: 2.676 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003583/0.2715, allocations: 179.7 kB / 497.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.2715, allocations: 0 / 497.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.2717, allocations: 79.89 kB / 497.2 MB, free: 2.422 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.2719, allocations: 30.98 kB / 497.2 MB, free: 2.395 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005777/0.2725, allocations: 395.7 kB / 497.6 MB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.2728, allocations: 0.7403 MB / 498.4 MB, free: 1.207 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.263e-05/0.2729, allocations: 33.47 kB / 498.4 MB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.702e-05/0.2729, allocations: 23.42 kB / 498.4 MB, free: 1.152 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2729, allocations: 0 / 498.4 MB, free: 1.152 MB / 362.7 MB Notification: Performance of Templates: time 0.003948/0.2769, allocations: 1.786 MB / 0.4885 GB, free: 15.39 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches