Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001152, allocations: 175.8 kB / 17.4 MB, free: 4.418 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.444/1.444, allocations: 223.3 MB / 241.4 MB, free: 9.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007742/0.0007744, allocations: 101.6 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003826, allocations: 11.94 kB / 352.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3113, allocations: 50.41 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.4235, allocations: 78.13 MB / 480.9 MB, free: 2.172 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.4237, allocations: 67.97 kB / 480.9 MB, free: 2.105 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008692/0.4324, allocations: 2.864 MB / 483.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4325, allocations: 3.938 kB / 483.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.4325, allocations: 11.98 kB / 483.8 MB, free: 15.23 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.0007983/0.4333, allocations: 492.6 kB / 484.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.4334, allocations: 8.031 kB / 484.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.58e-05/0.4335, allocations: 24.66 kB / 484.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.4338, allocations: 247.8 kB / 484.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.4339, allocations: 12.38 kB / 484.6 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.4339, allocations: 20.38 kB / 484.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.4344, allocations: 215.3 kB / 484.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4344, allocations: 192 / 484.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.4345, allocations: 11.94 kB / 484.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.902e-05/0.4345, allocations: 8 kB / 484.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.4349, allocations: 151.8 kB / 485 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.4362, allocations: 0.7934 MB / 485.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/0.4369, allocations: 206.6 kB / 486 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.437, allocations: 68.81 kB / 486 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.843e-05/0.4371, allocations: 0 / 486 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003256/0.4374, allocations: 153 kB / 486.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.4374, allocations: 3.938 kB / 486.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006396/0.4381, allocations: 253.3 kB / 486.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.4382, allocations: 81.09 kB / 486.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.4384, allocations: 218.8 kB / 486.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.4385, allocations: 29.7 kB / 486.8 MB, free: 12.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.4386, allocations: 136.3 kB / 486.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.835e-05/0.4386, allocations: 39.55 kB / 486.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.4386, allocations: 0 / 486.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.4388, allocations: 338.8 kB / 487.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.439, allocations: 75.89 kB / 487.3 MB, free: 11.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.4392, allocations: 136.5 kB / 487.5 MB, free: 11.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/0.4395, allocations: 212.3 kB / 487.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4396, allocations: 4.375 kB / 487.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004524/0.44, allocations: 253.1 kB / 487.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.44, allocations: 4 kB / 487.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4401, allocations: 7.984 kB / 487.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.4401, allocations: 7.938 kB / 487.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.4403, allocations: 40.23 kB / 488 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.4403, allocations: 7.938 kB / 488 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.4405, allocations: 39.81 kB / 488 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.4405, allocations: 8 kB / 488 MB, free: 10.67 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.0001688/0.4407, allocations: 152 kB / 488.2 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.4407, allocations: 15.81 kB / 488.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002657/0.441, allocations: 131 kB / 488.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.441, allocations: 4 kB / 488.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.441, allocations: 0 / 488.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.441, allocations: 3.984 kB / 488.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006147/0.4416, allocations: 486.5 kB / 488.8 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.4417, allocations: 4 kB / 488.8 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.4418, allocations: 23.98 kB / 488.8 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.4418, allocations: 0 / 488.8 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.4418, allocations: 7.938 kB / 488.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.4418, allocations: 0 / 488.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4418, allocations: 3.938 kB / 488.9 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004651/0.4423, allocations: 296 kB / 489.1 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.799e-05/0.4424, allocations: 96.91 kB / 489.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.4424, allocations: 4 kB / 489.2 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.4426, allocations: 23.98 kB / 489.3 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.019e-05/0.4427, allocations: 27.91 kB / 489.3 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.4427, allocations: 7.984 kB / 489.3 MB, free: 9.297 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000144/0.4429, allocations: 140.6 kB / 489.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4429, allocations: 0 / 489.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003215/0.4432, allocations: 47.91 kB / 489.5 MB, free: 9.113 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.0001942/0.4434, allocations: 123.6 kB / 489.6 MB, free: 8.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003954/0.4438, allocations: 172 kB / 489.8 MB, free: 8.816 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4438, allocations: 3.938 kB / 489.8 MB, free: 8.812 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.444, allocations: 84.39 kB / 489.9 MB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.4444, allocations: 32.97 kB / 489.9 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007851/0.4452, allocations: 395.6 kB / 490.3 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.4455, allocations: 0.7439 MB / 491 MB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.4457, allocations: 29.53 kB / 491.1 MB, free: 7.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.747e-05/0.4457, allocations: 23.42 kB / 491.1 MB, free: 7.469 MB / 362.7 MB Notification: Performance of SimCode: time 4.3e-07/0.4457, allocations: 0 / 491.1 MB, free: 7.469 MB / 362.7 MB Notification: Performance of Templates: time 0.005216/0.451, allocations: 1.81 MB / 492.9 MB, free: 5.68 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches