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.000926/0.000926, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001503/0.001503, allocations: 168.4 kB / 25.61 MB, free: 8.906 MB / 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.9044/0.9044, allocations: 177.2 MB / 206.1 MB, free: 4.465 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.052e-06/1.052e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.456e-05/1.561e-05, allocations: 5.547 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001925/0.00194, allocations: 1.858 MB / 276 MB, free: 2.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007533/0.002694, allocations: 0.6793 MB / 276.7 MB, free: 1.887 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.013e-05/0.002764, allocations: 7.938 kB / 276.7 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.934e-05/0.002853, allocations: 31.66 kB / 276.8 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.592e-05/0.002939, allocations: 33.61 kB / 276.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.003147, allocations: 99.62 kB / 276.9 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.003303, allocations: 183.3 kB / 277.1 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.003407, allocations: 47.95 kB / 277.1 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.003532, allocations: 103.8 kB / 277.2 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.003638, allocations: 68.28 kB / 277.3 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.00366, allocations: 16.94 kB / 277.3 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.132e-05/0.003711, allocations: 27.98 kB / 277.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.453e-05/0.003755, allocations: 51.81 kB / 277.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.085e-05/0.003796, allocations: 44.47 kB / 277.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.003962, allocations: 181 kB / 277.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.684e-06/0.003963, allocations: 0 / 277.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.003964, allocations: 0 / 277.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.003968, allocations: 0 / 277.6 MB, free: 1.004 MB / 250.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.0004656/0.004433, allocations: 0.5273 MB / 278.1 MB, free: 452 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.455e-05/0.004458, allocations: 12.03 kB / 278.1 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.829e-05/0.004556, allocations: 41.44 kB / 278.2 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.004713, allocations: 191.5 kB / 278.4 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.004732, allocations: 16.38 kB / 278.4 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.00475, allocations: 12.38 kB / 278.4 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.004938, allocations: 182.5 kB / 278.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.004947, allocations: 8.125 kB / 278.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.00496, allocations: 8.375 kB / 278.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.004976, allocations: 7.938 kB / 278.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.193e-05/0.005048, allocations: 51.89 kB / 278.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.0056, allocations: 0.8089 MB / 279.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.005818, allocations: 115.2 kB / 279.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.45e-05/0.005853, allocations: 27.67 kB / 279.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.005875, allocations: 7.938 kB / 279.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001197/0.005994, allocations: 128.2 kB / 279.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.005996, allocations: 0 / 279.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002041/0.0062, allocations: 137.7 kB / 279.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.006241, allocations: 81.11 kB / 279.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.006359, allocations: 266.5 kB / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.006376, allocations: 33.7 kB / 280.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.006449, allocations: 195.1 kB / 280.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.006476, allocations: 35.69 kB / 280.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.006536, allocations: 71.3 kB / 280.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.006645, allocations: 0.5001 MB / 281 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.407e-05/0.006679, allocations: 23.98 kB / 281.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.213e-05/0.006751, allocations: 124.8 kB / 281.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.006865, allocations: 152.7 kB / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.006868, allocations: 4 kB / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001774/0.007045, allocations: 169.2 kB / 281.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.007056, allocations: 7.984 kB / 281.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.007061, allocations: 8.25 kB / 281.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.236e-06/0.007069, allocations: 7.938 kB / 281.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.851e-05/0.007168, allocations: 35.92 kB / 281.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.007172, allocations: 4 kB / 281.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.717e-05/0.007239, allocations: 31.83 kB / 281.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.007249, allocations: 8 kB / 281.6 MB, free: 12.68 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.925e-05/0.007338, allocations: 186.4 kB / 281.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.007362, allocations: 23.83 kB / 281.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.007482, allocations: 111.1 kB / 281.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.007484, allocations: 0 / 281.9 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.007485, allocations: 4 kB / 281.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.007489, allocations: 0 / 281.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.007781, allocations: 382.3 kB / 282.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.007784, allocations: 7.984 kB / 282.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.691e-05/0.007831, allocations: 12 kB / 282.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.007834, allocations: 0 / 282.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.007844, allocations: 7.984 kB / 282.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.007845, allocations: 4 kB / 282.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.007847, allocations: 8 kB / 282.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.008008, allocations: 279.4 kB / 282.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.008024, allocations: 19.86 kB / 282.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.00804, allocations: 0 / 282.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.537e-05/0.008106, allocations: 15.98 kB / 282.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.008153, allocations: 19.95 kB / 282.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.008165, allocations: 8 kB / 282.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.011e-05/0.008225, allocations: 173.3 kB / 282.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008225, allocations: 0 / 282.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001894/0.008415, allocations: 47.89 kB / 282.9 MB, free: 11.32 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 8.776e-05/0.008502, allocations: 103.2 kB / 283 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001337/0.008636, allocations: 107.5 kB / 283.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.32e-07/0.008637, allocations: 0 / 283.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.62e-05/0.008693, allocations: 51.62 kB / 283.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.008904, allocations: 44.5 kB / 283.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004762/0.00938, allocations: 353.3 kB / 283.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.914e-05/0.009419, allocations: 75.98 kB / 283.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.203e-05/0.009471, allocations: 17.48 kB / 283.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.868e-05/0.00956, allocations: 106.2 kB / 283.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.00956, allocations: 0 / 283.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of Templates: time 0.003631/0.01319, allocations: 2.427 MB / 286.1 MB, free: 8.031 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.532089101150632]