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.0009939/0.0009939, allocations: 79.58 kB / 21.18 MB, free: 3.387 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.001026/0.001026, allocations: 161 kB / 24.56 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.973/0.973, allocations: 177.1 MB / 205 MB, free: 5.598 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 2.275e-06/2.275e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.606e-05, allocations: 6.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002531/0.002557, allocations: 1.885 MB / 274.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.00372, allocations: 0.6738 MB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.003837, allocations: 7.938 kB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.003997, allocations: 35.59 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.004149, allocations: 27.73 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.00452, allocations: 99.64 kB / 275.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002244/0.004745, allocations: 179.3 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.00489, allocations: 46.98 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.005059, allocations: 115.7 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.00519, allocations: 67.78 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.005218, allocations: 16 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.074e-05/0.005288, allocations: 27.98 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.424e-05/0.005353, allocations: 47.83 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.086e-05/0.005414, allocations: 51.83 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.005657, allocations: 171.2 kB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.005659, allocations: 0 / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.00566, allocations: 0 / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.005664, allocations: 0 / 276.4 MB, free: 14.07 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.0005898/0.006254, allocations: 0.5308 MB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.006289, allocations: 8.031 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.006421, allocations: 52.7 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.00663, allocations: 197.8 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.006655, allocations: 8.375 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.006677, allocations: 20.36 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.006928, allocations: 197.9 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.006937, allocations: 192 / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.006952, allocations: 4.375 kB / 277.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.297e-05/0.006975, allocations: 11.94 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.007091, allocations: 67.89 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.007804, allocations: 0.8473 MB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.008107, allocations: 131.1 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.598e-05/0.008163, allocations: 31.67 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.931e-05/0.008202, allocations: 7.984 kB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.008486, allocations: 124.3 kB / 278.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.008488, allocations: 0 / 278.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002945/0.008782, allocations: 157.6 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.539e-05/0.008827, allocations: 81.11 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.008982, allocations: 270.6 kB / 279.1 MB, free: 11.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.009, allocations: 33.7 kB / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.564e-05/0.009086, allocations: 191.1 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.009117, allocations: 39.72 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.009188, allocations: 63.34 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.009313, allocations: 0.5001 MB / 279.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.148e-05/0.009374, allocations: 32.03 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.76e-05/0.009472, allocations: 133.4 kB / 280.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.009625, allocations: 176.7 kB / 280.3 MB, free: 9.859 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.009629, allocations: 3.938 kB / 280.3 MB, free: 9.855 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002154/0.009844, allocations: 177.3 kB / 280.4 MB, free: 9.676 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.009859, allocations: 8.25 kB / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.009864, allocations: 7.938 kB / 280.5 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.009881, allocations: 4 kB / 280.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.009989, allocations: 47.91 kB / 280.5 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.009999, allocations: 7.938 kB / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.71e-05/0.01007, allocations: 23.88 kB / 280.5 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.01008, allocations: 8 kB / 280.6 MB, free: 9.57 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 9.364e-05/0.01017, allocations: 186.4 kB / 280.7 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.0102, allocations: 27.89 kB / 280.8 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.01035, allocations: 107.1 kB / 280.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.01035, allocations: 7.984 kB / 280.9 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.01036, allocations: 3.938 kB / 280.9 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.01036, allocations: 0 / 280.9 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.01071, allocations: 429.2 kB / 281.3 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01071, allocations: 0 / 281.3 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.206e-05/0.01076, allocations: 19.98 kB / 281.3 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01077, allocations: 0 / 281.3 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.01078, allocations: 7.984 kB / 281.3 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.01078, allocations: 64 / 281.3 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.01078, allocations: 8 kB / 281.3 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002027/0.01099, allocations: 299.3 kB / 281.6 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.382e-05/0.011, allocations: 11.91 kB / 281.6 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.01102, allocations: 4 kB / 281.6 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.178e-05/0.01108, allocations: 11.98 kB / 281.7 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.775e-05/0.01116, allocations: 23.95 kB / 281.7 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.01117, allocations: 8 kB / 281.7 MB, free: 8.359 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.198e-05/0.01125, allocations: 173.4 kB / 281.9 MB, free: 8.191 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01125, allocations: 0 / 281.9 MB, free: 8.191 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002109/0.01147, allocations: 47.89 kB / 281.9 MB, free: 8.145 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.0001292/0.01159, allocations: 119.1 kB / 282 MB, free: 8.016 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001921/0.01179, allocations: 109.5 kB / 282.1 MB, free: 7.906 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01179, allocations: 0 / 282.1 MB, free: 7.906 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.705e-05/0.01187, allocations: 63.75 kB / 282.2 MB, free: 7.844 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.01211, allocations: 32.66 kB / 282.2 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006743/0.01278, allocations: 353.4 kB / 282.6 MB, free: 7.438 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.897e-05/0.01283, allocations: 79.92 kB / 282.6 MB, free: 7.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.442e-05/0.01289, allocations: 29.45 kB / 282.7 MB, free: 7.309 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.931e-05/0.01294, allocations: 24.5 kB / 282.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01294, allocations: 4 kB / 282.7 MB, free: 7.281 MB / 266.7 MB Notification: Performance of Templates: time 0.004156/0.0171, allocations: 2.187 MB / 284.9 MB, free: 5.125 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: 3.0772690838202834]