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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001589/0.001589, allocations: 214.5 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.637/1.637, allocations: 230.5 MB / 258.1 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 63.91 kB / 379 MB, free: 2.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4363/0.4383, allocations: 53.41 MB / 432.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003711/0.442, allocations: 1.801 MB / 434.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.4435, allocations: 0.6622 MB / 434.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.4437, allocations: 11.88 kB / 434.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.4439, allocations: 23.67 kB / 434.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.4441, allocations: 31.72 kB / 434.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.4446, allocations: 103.8 kB / 435 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003614/0.4449, allocations: 171.5 kB / 435.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002317/0.4452, allocations: 54.92 kB / 435.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.4454, allocations: 79.66 kB / 435.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.4456, allocations: 87.53 kB / 435.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.06e-05/0.4456, allocations: 12 kB / 435.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.989e-05/0.4457, allocations: 31.92 kB / 435.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.869e-05/0.4458, allocations: 47.84 kB / 435.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.87e-05/0.4459, allocations: 71.58 kB / 435.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.4463, allocations: 200.8 kB / 435.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.4463, allocations: 7.938 kB / 435.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4463, allocations: 0 / 435.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.4463, allocations: 0 / 435.8 MB, free: 3.109 MB / 334.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.00103/0.4473, allocations: 453.2 kB / 436.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4473, allocations: 15.98 kB / 436.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002197/0.4476, allocations: 32.78 kB / 436.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.4479, allocations: 196.1 kB / 436.4 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.4479, allocations: 12.38 kB / 436.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.448, allocations: 16.38 kB / 436.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004223/0.4484, allocations: 214 kB / 436.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.4484, allocations: 7.938 kB / 436.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.4484, allocations: 7.984 kB / 436.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.4485, allocations: 8 kB / 436.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.4488, allocations: 143.8 kB / 436.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.4501, allocations: 0.6684 MB / 437.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006576/0.4507, allocations: 182.6 kB / 437.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.4509, allocations: 64.75 kB / 437.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.43e-05/0.4509, allocations: 4 kB / 437.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003105/0.4512, allocations: 156.9 kB / 437.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.214e-06/0.4512, allocations: 0 / 437.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006422/0.4519, allocations: 233.4 kB / 438.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.43e-05/0.452, allocations: 85.11 kB / 438.2 MB, free: 488 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.4522, allocations: 215.7 kB / 438.4 MB, free: 264 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/0.4522, allocations: 37.7 kB / 438.5 MB, free: 220 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.4524, allocations: 144.2 kB / 438.6 MB, free: 72 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.086e-05/0.4524, allocations: 39.73 kB / 438.7 MB, free: 32 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.4525, allocations: 57.69 kB / 438.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.4527, allocations: 330.8 kB / 439 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.4529, allocations: 63.95 kB / 439.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.4531, allocations: 145.1 kB / 439.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.4535, allocations: 212.8 kB / 439.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4535, allocations: 0 / 439.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005095/0.454, allocations: 257.1 kB / 439.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.454, allocations: 8 kB / 439.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.4541, allocations: 3.938 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.4541, allocations: 4 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.4542, allocations: 39.91 kB / 439.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.4543, allocations: 7.938 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.4544, allocations: 27.88 kB / 439.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.4545, allocations: 12.25 kB / 439.8 MB, free: 14.8 MB / 350.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 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001782/0.4546, allocations: 147.8 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.4547, allocations: 15.91 kB / 440 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/0.455, allocations: 135.3 kB / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.455, allocations: 4 kB / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/0.455, allocations: 0 / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.455, allocations: 3.984 kB / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006653/0.4556, allocations: 409.8 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4556, allocations: 0 / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.4558, allocations: 27.98 kB / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.4558, allocations: 0 / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.4558, allocations: 0 / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.4558, allocations: 4 kB / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4558, allocations: 0 / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004468/0.4562, allocations: 288.1 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.4563, allocations: 27.78 kB / 440.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.4563, allocations: 4 kB / 440.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.4565, allocations: 19.97 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.851e-05/0.4566, allocations: 27.91 kB / 440.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.4566, allocations: 4 kB / 440.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.4567, allocations: 145.5 kB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4567, allocations: 0 / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.457, allocations: 39.95 kB / 441.1 MB, free: 13.46 MB / 350.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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001715/0.4572, allocations: 108.1 kB / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004208/0.4576, allocations: 175.6 kB / 441.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4576, allocations: 0 / 441.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.4578, allocations: 71.89 kB / 441.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.4582, allocations: 23.98 kB / 441.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000858/0.459, allocations: 396 kB / 441.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001597/0.4592, allocations: 128.9 kB / 442 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.237e-05/0.4592, allocations: 19.44 kB / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4592, allocations: 0 / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of Templates: time 0.005872/0.4651, allocations: 2.484 MB / 444.5 MB, free: 10.01 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.447708181105554]