Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001284/0.001284, allocations: 105.1 kB / 21.22 MB, free: 0.5156 MB / 14.72 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.002144/0.002144, allocations: 217.3 kB / 24.54 MB, free: 3.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.455/1.455, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 64.77 kB / 379 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2508, allocations: 53.38 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003706/0.2545, allocations: 1.863 MB / 434.3 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.2558, allocations: 0.705 MB / 435 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.256, allocations: 7.938 kB / 435 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.2561, allocations: 31.67 kB / 435 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.2563, allocations: 35.66 kB / 435 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.2567, allocations: 95.77 kB / 435.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.2569, allocations: 171.5 kB / 435.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.2572, allocations: 58.86 kB / 435.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.2574, allocations: 83.7 kB / 435.4 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.2575, allocations: 87.55 kB / 435.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.2576, allocations: 16 kB / 435.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.123e-05/0.2577, allocations: 27.98 kB / 435.6 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.297e-05/0.2577, allocations: 51.83 kB / 435.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.2578, allocations: 87.41 kB / 435.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000351/0.2582, allocations: 208.7 kB / 435.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2582, allocations: 0 / 435.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2582, allocations: 0 / 435.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.2582, allocations: 0 / 435.9 MB, free: 3.43 MB / 334.1 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.0009944/0.2592, allocations: 455.6 kB / 436.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.2593, allocations: 12.03 kB / 436.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.2594, allocations: 32.78 kB / 436.4 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.2597, allocations: 195.7 kB / 436.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.2598, allocations: 8.375 kB / 436.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.2598, allocations: 16.38 kB / 436.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004186/0.2602, allocations: 221.9 kB / 436.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.2602, allocations: 0 / 436.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.2602, allocations: 4 kB / 436.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.414e-05/0.2603, allocations: 8 kB / 436.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.2606, allocations: 135.8 kB / 437 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.2619, allocations: 0.7496 MB / 437.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006382/0.2625, allocations: 186.6 kB / 437.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.2627, allocations: 56.83 kB / 438 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.096e-05/0.2627, allocations: 4 kB / 438 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/0.263, allocations: 151.6 kB / 438.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.893e-06/0.263, allocations: 4 kB / 438.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006307/0.2636, allocations: 245.4 kB / 438.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.2637, allocations: 81.11 kB / 438.4 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.264, allocations: 231 kB / 438.7 MB, free: 500 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.264, allocations: 33.7 kB / 438.7 MB, free: 460 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.2641, allocations: 136.3 kB / 438.8 MB, free: 320 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.2642, allocations: 39.73 kB / 438.9 MB, free: 280 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.621e-05/0.2643, allocations: 57.64 kB / 438.9 MB, free: 216 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.2645, allocations: 334.8 kB / 439.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.2646, allocations: 67.89 kB / 439.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.2649, allocations: 136.9 kB / 439.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003919/0.2653, allocations: 208.4 kB / 439.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.2653, allocations: 4 kB / 439.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004942/0.2658, allocations: 261.1 kB / 439.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2658, allocations: 4 kB / 439.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.2658, allocations: 4 kB / 439.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.2658, allocations: 4 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.266, allocations: 31.98 kB / 440 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.266, allocations: 11.92 kB / 440 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.2662, allocations: 36.08 kB / 440 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.2662, allocations: 15.94 kB / 440 MB, free: 15.04 MB / 350.1 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.0001862/0.2664, allocations: 147.8 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.539e-05/0.2664, allocations: 15.91 kB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002801/0.2667, allocations: 131 kB / 440.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.2667, allocations: 4 kB / 440.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2667, allocations: 4 kB / 440.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2667, allocations: 0 / 440.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006899/0.2674, allocations: 457.3 kB / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.2674, allocations: 320 / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.2675, allocations: 23.98 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2675, allocations: 0 / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.2675, allocations: 4 kB / 440.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.2675, allocations: 7.938 kB / 440.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2676, allocations: 0 / 440.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004526/0.268, allocations: 288.1 kB / 441.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.456e-05/0.268, allocations: 23.83 kB / 441.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.2681, allocations: 7.938 kB / 441.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.2682, allocations: 15.92 kB / 441.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/0.2683, allocations: 31.95 kB / 441.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.2683, allocations: 4 kB / 441.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.2685, allocations: 148.6 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2685, allocations: 4.188 kB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.2688, allocations: 35.95 kB / 441.3 MB, free: 13.63 MB / 350.1 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.0001681/0.269, allocations: 115.1 kB / 441.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004118/0.2694, allocations: 163.7 kB / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2694, allocations: 0 / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.2696, allocations: 79.88 kB / 441.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.2699, allocations: 23.98 kB / 441.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000795/0.2707, allocations: 366.2 kB / 442.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.2711, allocations: 0.7359 MB / 442.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.2713, allocations: 33.62 kB / 442.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.757e-05/0.2713, allocations: 23.42 kB / 442.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2713, allocations: 0 / 442.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Templates: time 0.006046/0.2774, allocations: 2.211 MB / 445.1 MB, free: 9.84 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.487959078513086]