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.001621/0.001621, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001327/0.001327, allocations: 159.9 kB / 24.91 MB, free: 8.719 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.9975/0.9975, allocations: 177 MB / 205.2 MB, free: 5.047 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.874e-06/1.874e-06, allocations: 0 / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.645e-05, allocations: 5.266 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002718/0.002745, allocations: 1.865 MB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.003808, allocations: 0.6968 MB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.003909, allocations: 7.938 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.00404, allocations: 35.59 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.004161, allocations: 27.73 kB / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.00446, allocations: 99.64 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001891/0.004649, allocations: 175.4 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.004788, allocations: 55.56 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.004982, allocations: 111.7 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.005151, allocations: 71.78 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.005179, allocations: 16 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.599e-05/0.005245, allocations: 27.98 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.558e-05/0.0053, allocations: 51.81 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.419e-05/0.005354, allocations: 47.84 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.005569, allocations: 171.2 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.005571, allocations: 0 / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005572, allocations: 0 / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.005577, allocations: 0 / 276.8 MB, free: 13.6 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.0005168/0.006094, allocations: 407.9 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.006128, allocations: 11.98 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.006244, allocations: 36.91 kB / 277.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.006436, allocations: 186.6 kB / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.00646, allocations: 16.38 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.006479, allocations: 16.31 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.006685, allocations: 177.4 kB / 277.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.006692, allocations: 4.188 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.006709, allocations: 8.375 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.006727, allocations: 7.938 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.666e-05/0.006803, allocations: 51.33 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005606/0.007364, allocations: 0.5564 MB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.007601, allocations: 156 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.578e-05/0.007637, allocations: 24.84 kB / 278.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.007663, allocations: 4 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.0078, allocations: 127.7 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 9.01e-07/0.007801, allocations: 0 / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001875/0.007988, allocations: 111.2 kB / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.008035, allocations: 85.09 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.008146, allocations: 207.3 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.008163, allocations: 29.7 kB / 279 MB, free: 11.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.895e-05/0.008222, allocations: 132.3 kB / 279.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.008248, allocations: 35.72 kB / 279.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.572e-05/0.008304, allocations: 65.59 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.008396, allocations: 330.7 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.596e-05/0.008432, allocations: 26.81 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.735e-05/0.0085, allocations: 92.48 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.008628, allocations: 148.8 kB / 279.8 MB, free: 10.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.008631, allocations: 0 / 279.8 MB, free: 10.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001687/0.0088, allocations: 151 kB / 280 MB, free: 10.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.008813, allocations: 4 kB / 280 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.008821, allocations: 4.25 kB / 280 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.008831, allocations: 8 kB / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.008937, allocations: 39.91 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.008941, allocations: 4 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.009009, allocations: 27.88 kB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.00902, allocations: 8 kB / 280.1 MB, free: 10.08 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,showValue.number,showValue1.number,showValue2.number,triggeredAdd.local_reset,triggeredAdd.local_set,multiSwitch1.expr[1],multiSwitch1.expr[2],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1) * 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.966e-05/0.00911, allocations: 138.5 kB / 280.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.009129, allocations: 15.92 kB / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.009258, allocations: 91.05 kB / 280.3 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.009262, allocations: 4 kB / 280.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.009265, allocations: 0 / 280.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.00927, allocations: 4 kB / 280.3 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.009564, allocations: 326.8 kB / 280.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.009566, allocations: 0 / 280.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.045e-05/0.009616, allocations: 19.98 kB / 280.6 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.009619, allocations: 0 / 280.6 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/0.009629, allocations: 11.98 kB / 280.7 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.00963, allocations: 3.938 kB / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.009632, allocations: 0 / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001335/0.009766, allocations: 208.8 kB / 280.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.594e-05/0.009782, allocations: 15.89 kB / 280.9 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.009802, allocations: 8 kB / 280.9 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.102e-05/0.009873, allocations: 7.984 kB / 280.9 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.009925, allocations: 23.97 kB / 280.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.009938, allocations: 4 kB / 280.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.899e-05/0.009977, allocations: 59.03 kB / 281 MB, free: 9.102 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009978, allocations: 0 / 281 MB, free: 9.102 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000169/0.01015, allocations: 43.89 kB / 281 MB, free: 9.059 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.0001187/0.01027, allocations: 92.34 kB / 281.1 MB, free: 8.957 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001329/0.0104, allocations: 92.67 kB / 281.2 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.0104, allocations: 0 / 281.2 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.57e-05/0.01046, allocations: 44.78 kB / 281.2 MB, free: 8.816 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001742/0.01063, allocations: 35.91 kB / 281.3 MB, free: 8.781 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006005/0.01123, allocations: 348.2 kB / 281.6 MB, free: 8.414 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.492e-05/0.01128, allocations: 76.28 kB / 281.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.353e-05/0.01133, allocations: 17.48 kB / 281.7 MB, free: 8.301 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.109e-05/0.01142, allocations: 79.34 kB / 281.8 MB, free: 8.223 MB / 266.7 MB Notification: Performance of SimCode: time 1.463e-06/0.01142, allocations: 0 / 281.8 MB, free: 8.223 MB / 266.7 MB Notification: Performance of Templates: time 0.004101/0.01552, allocations: 2.221 MB / 284 MB, free: 6.031 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.6134789320640266]