Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 165 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9381/0.9381, allocations: 177.1 MB / 205 MB, free: 5.293 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 0 / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.464e-05/1.613e-05, allocations: 2.312 kB / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002825/0.002841, allocations: 1.878 MB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009423/0.003783, allocations: 0.6776 MB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.149e-05/0.003875, allocations: 7.938 kB / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.004011, allocations: 27.61 kB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.00414, allocations: 35.72 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.004462, allocations: 103.6 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.004661, allocations: 179.3 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.004794, allocations: 46.98 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.004959, allocations: 115.7 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.005085, allocations: 63.78 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.005111, allocations: 16 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.73e-05/0.005178, allocations: 24 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/0.005229, allocations: 47.83 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.404e-05/0.005283, allocations: 55.83 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.005507, allocations: 171.2 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.205e-06/0.005509, allocations: 0 / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.00551, allocations: 0 / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.005514, allocations: 0 / 276.4 MB, free: 13.95 MB / 266.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.0005649/0.006079, allocations: 0.5308 MB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.006111, allocations: 11.97 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.006229, allocations: 44.78 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.006425, allocations: 201.8 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.006446, allocations: 12.38 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.006467, allocations: 16.38 kB / 277.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.006717, allocations: 193.9 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.006724, allocations: 192 / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.006739, allocations: 4.375 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.006759, allocations: 11.94 kB / 277.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.006867, allocations: 67.89 kB / 277.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006376/0.007505, allocations: 0.8551 MB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.00777, allocations: 127.1 kB / 278.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.716e-05/0.007817, allocations: 27.69 kB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.007847, allocations: 11.98 kB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001344/0.007981, allocations: 120.3 kB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.007983, allocations: 4 kB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002593/0.008242, allocations: 161.4 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.008279, allocations: 85.11 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.008416, allocations: 266.6 kB / 279.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.008435, allocations: 33.7 kB / 279.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.413e-05/0.00851, allocations: 187 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.827e-05/0.008538, allocations: 39.73 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.194e-05/0.0086, allocations: 67.34 kB / 279.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.008709, allocations: 0.5001 MB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.021e-05/0.008759, allocations: 27.98 kB / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.54e-05/0.008845, allocations: 135.2 kB / 280.1 MB, free: 9.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.008991, allocations: 168.7 kB / 280.3 MB, free: 9.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.008994, allocations: 3.938 kB / 280.3 MB, free: 9.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001991/0.009193, allocations: 189.3 kB / 280.5 MB, free: 9.555 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.009206, allocations: 8 kB / 280.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.00921, allocations: 3.938 kB / 280.5 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.009224, allocations: 7.938 kB / 280.5 MB, free: 9.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.009325, allocations: 39.97 kB / 280.5 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.009334, allocations: 7.938 kB / 280.5 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.051e-05/0.009405, allocations: 24.12 kB / 280.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.009418, allocations: 16 kB / 280.6 MB, free: 9.449 MB / 266.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 (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.0001056/0.009524, allocations: 186.4 kB / 280.7 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.009549, allocations: 23.89 kB / 280.8 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004097/0.009959, allocations: 107.1 kB / 280.9 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.009962, allocations: 4 kB / 280.9 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.009965, allocations: 0 / 280.9 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.009969, allocations: 0 / 280.9 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.01029, allocations: 429.2 kB / 281.3 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01029, allocations: 8 kB / 281.3 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.718e-05/0.01034, allocations: 15.98 kB / 281.3 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.01034, allocations: 320 / 281.3 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.01035, allocations: 11.98 kB / 281.3 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.01036, allocations: 4 kB / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.01036, allocations: 0 / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.01055, allocations: 299.2 kB / 281.6 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.01056, allocations: 11.91 kB / 281.6 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.01058, allocations: 8 kB / 281.6 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.918e-05/0.01064, allocations: 7.984 kB / 281.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.885e-05/0.01073, allocations: 31.95 kB / 281.7 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.01075, allocations: 4 kB / 281.7 MB, free: 8.242 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.487e-05/0.01082, allocations: 177.4 kB / 281.9 MB, free: 8.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01082, allocations: 0 / 281.9 MB, free: 8.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000195/0.01102, allocations: 43.89 kB / 281.9 MB, free: 8.027 MB / 266.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 (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.0001066/0.01112, allocations: 119.1 kB / 282 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001783/0.0113, allocations: 107.8 kB / 282.1 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.01131, allocations: 4.062 kB / 282.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.587e-05/0.01138, allocations: 60.16 kB / 282.2 MB, free: 7.727 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.01161, allocations: 36.09 kB / 282.2 MB, free: 7.691 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005887/0.0122, allocations: 357.3 kB / 282.6 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.051e-05/0.01224, allocations: 75.98 kB / 282.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.616e-05/0.0123, allocations: 33.45 kB / 282.7 MB, free: 7.184 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.599e-05/0.01235, allocations: 20.5 kB / 282.7 MB, free: 7.164 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01235, allocations: 0 / 282.7 MB, free: 7.164 MB / 266.7 MB Notification: Performance of Templates: time 0.003971/0.01632, allocations: 2.317 MB / 285 MB, free: 4.871 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7454528510570526]