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.0009546/0.0009546, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001018/0.001018, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9579/0.9579, allocations: 177 MB / 204.8 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.282e-06/1.282e-06, allocations: 0 / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.197e-05, allocations: 5.266 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002164/0.002186, allocations: 1.875 MB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000945/0.003131, allocations: 0.6853 MB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.003238, allocations: 7.938 kB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.003358, allocations: 19.73 kB / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.003481, allocations: 39.59 kB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.00378, allocations: 95.7 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001894/0.003969, allocations: 183.3 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.00411, allocations: 58.97 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.004291, allocations: 103.7 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.004427, allocations: 71.78 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.004455, allocations: 12 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.151e-05/0.004527, allocations: 27.97 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.648e-05/0.004583, allocations: 47.83 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.69e-05/0.00464, allocations: 55.83 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.004842, allocations: 171.2 kB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.004844, allocations: 4 kB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.004844, allocations: 0 / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.004848, allocations: 4 kB / 276.3 MB, free: 13.96 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.0005872/0.005436, allocations: 0.5153 MB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.00547, allocations: 11.98 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.005591, allocations: 48.77 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.005785, allocations: 193.5 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.005809, allocations: 12.38 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.005827, allocations: 20.3 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002389/0.006066, allocations: 193.9 kB / 277.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.006075, allocations: 192 / 277.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.006092, allocations: 16.3 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.006113, allocations: 11.92 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001117/0.006224, allocations: 67.95 kB / 277.4 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006547/0.006879, allocations: 0.8474 MB / 278.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.007163, allocations: 135.1 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.617e-05/0.007209, allocations: 27.67 kB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.007239, allocations: 4 kB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001367/0.007376, allocations: 124.4 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.007377, allocations: 0 / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002656/0.007643, allocations: 161.4 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.007679, allocations: 81.11 kB / 278.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.007822, allocations: 270.6 kB / 279.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.007838, allocations: 33.7 kB / 279.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.008175, allocations: 191.1 kB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.008203, allocations: 35.72 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-05/0.008268, allocations: 67.34 kB / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.008376, allocations: 0.4962 MB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.235e-05/0.008428, allocations: 31.97 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.622e-05/0.008515, allocations: 136.7 kB / 280 MB, free: 9.977 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.008661, allocations: 169 kB / 280.2 MB, free: 9.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.008664, allocations: 3.938 kB / 280.2 MB, free: 9.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002037/0.008868, allocations: 197.2 kB / 280.4 MB, free: 9.566 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.008881, allocations: 10.91 kB / 280.4 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.008887, allocations: 4 kB / 280.4 MB, free: 9.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.008901, allocations: 4 kB / 280.4 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.009003, allocations: 43.91 kB / 280.5 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.00901, allocations: 4 kB / 280.5 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.009083, allocations: 23.88 kB / 280.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.009096, allocations: 12 kB / 280.5 MB, free: 9.469 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 8.954e-05/0.009186, allocations: 182.4 kB / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.009209, allocations: 23.91 kB / 280.7 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.009354, allocations: 119 kB / 280.8 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.009356, allocations: 0 / 280.8 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.009359, allocations: 0 / 280.8 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.009363, allocations: 0 / 280.8 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.009683, allocations: 429.2 kB / 281.2 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.009684, allocations: 0 / 281.2 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.741e-05/0.009732, allocations: 15.98 kB / 281.3 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.009734, allocations: 0 / 281.3 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.009746, allocations: 11.94 kB / 281.3 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.009748, allocations: 0 / 281.3 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.009749, allocations: 4 kB / 281.3 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.009936, allocations: 302.2 kB / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.568e-05/0.009952, allocations: 19.89 kB / 281.6 MB, free: 8.309 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.009971, allocations: 4 kB / 281.6 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.629e-05/0.01004, allocations: 11.98 kB / 281.6 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.0101, allocations: 19.97 kB / 281.6 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.01012, allocations: 12.05 kB / 281.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.898e-05/0.01019, allocations: 177.4 kB / 281.8 MB, free: 8.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01019, allocations: 4 kB / 281.8 MB, free: 8.086 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002014/0.0104, allocations: 39.89 kB / 281.8 MB, free: 8.047 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.0001212/0.01052, allocations: 119.1 kB / 282 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.0107, allocations: 111.5 kB / 282.1 MB, free: 7.805 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01071, allocations: 4 kB / 282.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.3e-05/0.01078, allocations: 55.59 kB / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.01102, allocations: 32.48 kB / 282.2 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005803/0.0116, allocations: 353.3 kB / 282.5 MB, free: 7.336 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.175e-05/0.01164, allocations: 76.28 kB / 282.6 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.891e-05/0.0117, allocations: 25.47 kB / 282.6 MB, free: 7.215 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.789e-05/0.01175, allocations: 28.48 kB / 282.6 MB, free: 7.188 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.01175, allocations: 4 kB / 282.6 MB, free: 7.184 MB / 266.7 MB Notification: Performance of Templates: time 0.004524/0.01627, allocations: 2.301 MB / 284.9 MB, free: 4.91 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.63699710322544]