Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001083/0.001083, allocations: 181.7 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000995/0.0009946, allocations: 92.14 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003363, allocations: 15.98 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3484, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.4635, allocations: 77.31 MB / 453.1 MB, free: 3.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.4638, allocations: 67.97 kB / 453.2 MB, free: 3.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009764/0.4736, allocations: 2.813 MB / 456 MB, free: 476 kB / 330.7 MB Notification: Performance of FrontEnd: time 7.024e-06/0.4737, allocations: 0 / 456 MB, free: 476 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.057e-05/0.4738, allocations: 4 kB / 456 MB, free: 472 kB / 330.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.00157/0.4754, allocations: 0.4887 MB / 456.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.612e-05/0.4755, allocations: 8.031 kB / 456.5 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.4757, allocations: 27.7 kB / 456.5 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.4763, allocations: 242.6 kB / 456.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.184e-05/0.4763, allocations: 11.75 kB / 456.8 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/0.4764, allocations: 19.95 kB / 456.8 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006535/0.477, allocations: 209.9 kB / 457 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.4771, allocations: 0 / 457 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.4771, allocations: 4 kB / 457 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.534e-05/0.4772, allocations: 10.38 kB / 457 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.4776, allocations: 151.8 kB / 457.2 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.4791, allocations: 0.7973 MB / 458 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006793/0.4798, allocations: 210.6 kB / 458.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.832e-05/0.4798, allocations: 3.984 kB / 458.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002982/0.4801, allocations: 151.2 kB / 458.3 MB, free: 13.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.4801, allocations: 4 kB / 458.3 MB, free: 13.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006494/0.4808, allocations: 253.5 kB / 458.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.4809, allocations: 81.11 kB / 458.6 MB, free: 13.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.4811, allocations: 204 kB / 458.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.4812, allocations: 37.64 kB / 458.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.4813, allocations: 136.5 kB / 459 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.4814, allocations: 35.55 kB / 459 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/0.4814, allocations: 4 kB / 459 MB, free: 13.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.4815, allocations: 330.8 kB / 459.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.4817, allocations: 71.95 kB / 459.4 MB, free: 12.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.4819, allocations: 138.9 kB / 459.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.4822, allocations: 90.64 kB / 459.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.4822, allocations: 4 kB / 459.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004854/0.4827, allocations: 253.2 kB / 459.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.4828, allocations: 7.938 kB / 459.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.4828, allocations: 4 kB / 459.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.076e-05/0.4828, allocations: 4 kB / 459.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.483, allocations: 36.23 kB / 460 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.483, allocations: 11.92 kB / 460 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.4832, allocations: 39.73 kB / 460 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.4833, allocations: 8 kB / 460 MB, free: 12.16 MB / 346.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.0001715/0.4834, allocations: 156 kB / 460.2 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.4835, allocations: 23.75 kB / 460.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002914/0.4838, allocations: 127 kB / 460.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.4838, allocations: 4 kB / 460.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4838, allocations: 0 / 460.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4838, allocations: 0 / 460.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/0.4845, allocations: 486.2 kB / 460.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4845, allocations: 4 kB / 460.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.4846, allocations: 19.98 kB / 460.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.4846, allocations: 0 / 460.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.4847, allocations: 8 kB / 460.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4847, allocations: 0 / 460.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4847, allocations: 192 / 460.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004498/0.4851, allocations: 317.6 kB / 461.1 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.044e-05/0.4852, allocations: 88.92 kB / 461.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.4853, allocations: 4.312 kB / 461.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.4855, allocations: 31.97 kB / 461.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-05/0.4856, allocations: 23.97 kB / 461.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.4856, allocations: 4 kB / 461.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001317/0.4857, allocations: 144.4 kB / 461.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4857, allocations: 0 / 461.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003373/0.4861, allocations: 47.84 kB / 461.5 MB, free: 10.58 MB / 346.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.0002019/0.4863, allocations: 123.1 kB / 461.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.4867, allocations: 179.7 kB / 461.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4867, allocations: 0 / 461.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.4869, allocations: 80.39 kB / 461.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.4872, allocations: 31.94 kB / 461.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007991/0.488, allocations: 399.6 kB / 462.3 MB, free: 9.746 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.4884, allocations: 0.7441 MB / 463 MB, free: 8.973 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.4885, allocations: 33.52 kB / 463.1 MB, free: 8.941 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.362e-05/0.4886, allocations: 19.44 kB / 463.1 MB, free: 8.926 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4886, allocations: 0 / 463.1 MB, free: 8.926 MB / 346.7 MB Notification: Performance of Templates: time 0.005039/0.4936, allocations: 1.8 MB / 464.9 MB, free: 7.141 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/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_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches