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.001353/0.001352, allocations: 181.9 kB / 16.39 MB, free: 5.762 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.355/1.355, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008075/0.0008075, allocations: 91.89 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.000337, allocations: 7.938 kB / 351.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2745, allocations: 50.42 MB / 401.5 MB, free: 32.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09461/0.3692, allocations: 78.09 MB / 479.6 MB, free: 2.441 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.3695, allocations: 67.97 kB / 479.6 MB, free: 2.375 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008672/0.3782, allocations: 2.854 MB / 482.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3782, allocations: 0 / 482.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.776e-05/0.3782, allocations: 12 kB / 482.5 MB, free: 15.51 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.0007576/0.379, allocations: 0.4886 MB / 483 MB, free: 14.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3791, allocations: 8.031 kB / 483 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.208e-05/0.3791, allocations: 31.67 kB / 483 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.3794, allocations: 238.6 kB / 483.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.3795, allocations: 12 kB / 483.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.857e-05/0.3795, allocations: 20 kB / 483.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003743/0.3799, allocations: 205.5 kB / 483.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.3799, allocations: 4 kB / 483.5 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.3799, allocations: 11.98 kB / 483.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.38, allocations: 7.953 kB / 483.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.3803, allocations: 143.8 kB / 483.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/0.3814, allocations: 0.8013 MB / 484.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005995/0.3821, allocations: 202.7 kB / 484.7 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.3821, allocations: 7.938 kB / 484.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.3824, allocations: 156.8 kB / 484.8 MB, free: 12.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.224e-06/0.3824, allocations: 0 / 484.8 MB, free: 12.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005762/0.383, allocations: 245.3 kB / 485.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.383, allocations: 93.03 kB / 485.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.3832, allocations: 198.1 kB / 485.3 MB, free: 12.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.3833, allocations: 33.7 kB / 485.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.101e-05/0.3834, allocations: 140.3 kB / 485.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.355e-05/0.3834, allocations: 31.56 kB / 485.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.085e-05/0.3834, allocations: 4 kB / 485.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3836, allocations: 334.8 kB / 485.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3837, allocations: 63.95 kB / 485.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.3839, allocations: 136.5 kB / 486.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.3841, allocations: 91.84 kB / 486.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3841, allocations: 0 / 486.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004395/0.3845, allocations: 253.2 kB / 486.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3846, allocations: 4.938 kB / 486.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3846, allocations: 7.953 kB / 486.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3846, allocations: 4 kB / 486.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.3848, allocations: 43.91 kB / 486.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3848, allocations: 4 kB / 486.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.385, allocations: 39.98 kB / 486.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.385, allocations: 12 kB / 486.5 MB, free: 11.2 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.0001262/0.3851, allocations: 144 kB / 486.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.3852, allocations: 15.81 kB / 486.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002347/0.3854, allocations: 135 kB / 486.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3854, allocations: 3.953 kB / 486.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3854, allocations: 4.469 kB / 486.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3855, allocations: 3.984 kB / 486.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005877/0.386, allocations: 482.2 kB / 487.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3861, allocations: 320 / 487.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.3862, allocations: 27.92 kB / 487.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.3862, allocations: 7.953 kB / 487.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.3862, allocations: 4 kB / 487.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3862, allocations: 3.984 kB / 487.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3862, allocations: 0 / 487.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/0.3866, allocations: 305.7 kB / 487.6 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.94e-05/0.3867, allocations: 100.8 kB / 487.7 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.3868, allocations: 4 kB / 487.7 MB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.3869, allocations: 27.97 kB / 487.8 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.213e-05/0.387, allocations: 19.97 kB / 487.8 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.387, allocations: 7.984 kB / 487.8 MB, free: 9.812 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001204/0.3872, allocations: 148.6 kB / 487.9 MB, free: 9.668 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3872, allocations: 0 / 487.9 MB, free: 9.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002958/0.3875, allocations: 47.89 kB / 488 MB, free: 9.621 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.0001549/0.3876, allocations: 111.7 kB / 488.1 MB, free: 9.504 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003726/0.388, allocations: 179.8 kB / 488.3 MB, free: 9.328 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.388, allocations: 0 / 488.3 MB, free: 9.328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.3882, allocations: 91.88 kB / 488.4 MB, free: 9.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.3885, allocations: 20.36 kB / 488.4 MB, free: 9.219 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006502/0.3891, allocations: 403.6 kB / 488.8 MB, free: 8.793 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3894, allocations: 0.7364 MB / 489.5 MB, free: 8.027 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.3895, allocations: 33.52 kB / 489.5 MB, free: 7.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/0.3896, allocations: 19.44 kB / 489.6 MB, free: 7.98 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3896, allocations: 0 / 489.6 MB, free: 7.98 MB / 362.7 MB Notification: Performance of Templates: time 0.004469/0.3941, allocations: 1.8 MB / 491.4 MB, free: 6.203 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/jenkins/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