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.0009712/0.0009712, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 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.0009953/0.0009953, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 18.57 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 0.9835/0.9835, allocations: 177 MB / 205.2 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] 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 1.984e-06/1.984e-06, allocations: 0 / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.029e-05/2.227e-05, allocations: 6.312 kB / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002303/0.002325, allocations: 1.866 MB / 274.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009646/0.003289, allocations: 0.6892 MB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.561e-05/0.003385, allocations: 7.938 kB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.003493, allocations: 19.73 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.003608, allocations: 35.61 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.003918, allocations: 103.6 kB / 275.7 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.004108, allocations: 175.4 kB / 275.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.004243, allocations: 54.97 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.004457, allocations: 107.7 kB / 276 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.004593, allocations: 67.78 kB / 276.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.00462, allocations: 16 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.525e-05/0.004696, allocations: 35.91 kB / 276.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.722e-05/0.004753, allocations: 47.83 kB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.844e-05/0.004811, allocations: 55.83 kB / 276.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.005021, allocations: 163.2 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.005023, allocations: 0 / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.005024, allocations: 0 / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.005028, allocations: 0 / 276.4 MB, free: 14.29 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.0006286/0.005656, allocations: 0.5231 MB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.005698, allocations: 11.98 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.005844, allocations: 44.8 kB / 277 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.006072, allocations: 201.5 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.006095, allocations: 8.375 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.006116, allocations: 20.38 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.006371, allocations: 197.8 kB / 277.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.006379, allocations: 192 / 277.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.006395, allocations: 8.359 kB / 277.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.006422, allocations: 15.92 kB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.006551, allocations: 67.89 kB / 277.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007272/0.007278, allocations: 0.8474 MB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.007579, allocations: 131.1 kB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.197e-05/0.007631, allocations: 31.67 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.007659, allocations: 4 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.007805, allocations: 128.3 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.007806, allocations: 0 / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002697/0.008076, allocations: 149.8 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.008119, allocations: 85.09 kB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.008275, allocations: 270.6 kB / 279.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.008294, allocations: 33.7 kB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.575e-05/0.00838, allocations: 195 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.877e-05/0.008409, allocations: 39.72 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.584e-05/0.008474, allocations: 67.34 kB / 279.5 MB, free: 11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.008616, allocations: 0.4962 MB / 280 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.799e-05/0.008674, allocations: 31.97 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.008778, allocations: 128.8 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.008938, allocations: 172.7 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.008941, allocations: 3.938 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002148/0.009156, allocations: 193.2 kB / 280.5 MB, free: 9.883 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.009176, allocations: 8 kB / 280.5 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.009181, allocations: 4.25 kB / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.009193, allocations: 4 kB / 280.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.009302, allocations: 44.22 kB / 280.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.00931, allocations: 4 kB / 280.5 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.792e-05/0.009378, allocations: 23.89 kB / 280.6 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.009392, allocations: 15.98 kB / 280.6 MB, free: 9.781 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.0001022/0.009494, allocations: 186.4 kB / 280.8 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.577e-05/0.00952, allocations: 19.91 kB / 280.8 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001504/0.00967, allocations: 119.1 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.009673, allocations: 4 kB / 280.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.009676, allocations: 0 / 280.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.009683, allocations: 0 / 280.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003804/0.01006, allocations: 433.2 kB / 281.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.01007, allocations: 3.938 kB / 281.3 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.259e-05/0.01012, allocations: 19.92 kB / 281.3 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.01012, allocations: 0 / 281.3 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.01013, allocations: 4 kB / 281.3 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.01014, allocations: 0 / 281.3 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.01014, allocations: 0 / 281.3 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.01036, allocations: 303.3 kB / 281.6 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.0104, allocations: 15.89 kB / 281.7 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.01042, allocations: 8 kB / 281.7 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.745e-05/0.01049, allocations: 7.984 kB / 281.7 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.614e-05/0.01056, allocations: 23.97 kB / 281.7 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.01057, allocations: 7.984 kB / 281.7 MB, free: 8.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.341e-05/0.01065, allocations: 181.3 kB / 281.9 MB, free: 8.395 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01065, allocations: 0 / 281.9 MB, free: 8.395 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002114/0.01087, allocations: 43.89 kB / 281.9 MB, free: 8.352 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.0001188/0.01098, allocations: 115.2 kB / 282 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.01117, allocations: 110.7 kB / 282.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.01117, allocations: 0 / 282.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.43e-05/0.01124, allocations: 59.59 kB / 282.2 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.01147, allocations: 31.61 kB / 282.2 MB, free: 8.027 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006126/0.01208, allocations: 357.6 kB / 282.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.961e-05/0.01213, allocations: 76.28 kB / 282.7 MB, free: 7.555 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.41e-05/0.01219, allocations: 29.47 kB / 282.7 MB, free: 7.523 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.723e-05/0.01224, allocations: 24.48 kB / 282.7 MB, free: 7.5 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01224, allocations: 0 / 282.7 MB, free: 7.5 MB / 266.7 MB Notification: Performance of Templates: time 0.00384/0.01608, allocations: 2.179 MB / 284.9 MB, free: 5.348 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.936570684891194]