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.001636/0.001636, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001882/0.001882, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 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 1.49/1.49, allocations: 230.3 MB / 258 MB, free: 8.238 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001809/0.001809, allocations: 63.89 kB / 378.7 MB, free: 2.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2869, allocations: 53.36 MB / 432.1 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003846/0.2907, allocations: 1.882 MB / 434 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.2922, allocations: 0.7011 MB / 434.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.2924, allocations: 7.938 kB / 434.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.2925, allocations: 23.67 kB / 434.7 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.2927, allocations: 35.72 kB / 434.7 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003995/0.2931, allocations: 107.7 kB / 434.9 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002829/0.2934, allocations: 179.4 kB / 435 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.2936, allocations: 46.94 kB / 435.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.2938, allocations: 91.62 kB / 435.2 MB, free: 4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.2939, allocations: 79.62 kB / 435.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.323e-05/0.294, allocations: 16 kB / 435.3 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.439e-05/0.2941, allocations: 27.98 kB / 435.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.747e-05/0.2942, allocations: 59.7 kB / 435.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.88e-05/0.2943, allocations: 75.53 kB / 435.4 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003362/0.2946, allocations: 212.7 kB / 435.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2946, allocations: 3.938 kB / 435.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2946, allocations: 0 / 435.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.2946, allocations: 0 / 435.6 MB, free: 3.543 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.001049/0.2957, allocations: 453.2 kB / 436.1 MB, free: 3.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.2957, allocations: 8.031 kB / 436.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.2959, allocations: 32.78 kB / 436.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.2962, allocations: 194.9 kB / 436.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.2963, allocations: 16.38 kB / 436.3 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/0.2963, allocations: 16.38 kB / 436.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004341/0.2967, allocations: 210 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.2967, allocations: 4 kB / 436.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.2968, allocations: 8 kB / 436.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.478e-05/0.2968, allocations: 7.938 kB / 436.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.2971, allocations: 135.9 kB / 436.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.2983, allocations: 0.7534 MB / 437.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/0.299, allocations: 186.6 kB / 437.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.2991, allocations: 60.83 kB / 437.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.2992, allocations: 0 / 437.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/0.2995, allocations: 141 kB / 437.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.2995, allocations: 7.938 kB / 437.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006226/0.3001, allocations: 245.4 kB / 438.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.759e-05/0.3002, allocations: 89.03 kB / 438.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.3004, allocations: 227 kB / 438.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.3004, allocations: 25.7 kB / 438.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.3005, allocations: 140.4 kB / 438.5 MB, free: 436 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.166e-05/0.3006, allocations: 39.72 kB / 438.6 MB, free: 396 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.75e-05/0.3006, allocations: 65.64 kB / 438.6 MB, free: 324 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.3008, allocations: 330.8 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.301, allocations: 67.95 kB / 439 MB, free: 15.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.3012, allocations: 141.4 kB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.3016, allocations: 216.3 kB / 439.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3016, allocations: 0 / 439.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004722/0.3021, allocations: 245.5 kB / 439.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3021, allocations: 8 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.3021, allocations: 0 / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.3021, allocations: 4 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.3023, allocations: 35.92 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.178e-06/0.3023, allocations: 4 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.3025, allocations: 35.81 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.3025, allocations: 11.94 kB / 439.7 MB, free: 15.16 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.0001617/0.3026, allocations: 156.3 kB / 439.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.3027, allocations: 19.89 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002634/0.3029, allocations: 131 kB / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.3029, allocations: 3.938 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.303, allocations: 0 / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.303, allocations: 4.469 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006197/0.3036, allocations: 465.1 kB / 440.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3036, allocations: 4 kB / 440.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.3037, allocations: 15.98 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3037, allocations: 4 kB / 440.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.3037, allocations: 4 kB / 440.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.3037, allocations: 3.938 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3037, allocations: 0 / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000426/0.3041, allocations: 292.1 kB / 440.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.275e-05/0.3042, allocations: 19.89 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/0.3042, allocations: 12 kB / 440.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.3044, allocations: 15.92 kB / 440.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.62e-05/0.3045, allocations: 23.95 kB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.3045, allocations: 8 kB / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.3046, allocations: 144.6 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3046, allocations: 4 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.3049, allocations: 43.95 kB / 441.1 MB, free: 13.73 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.0001446/0.305, allocations: 99.23 kB / 441.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000444/0.3055, allocations: 171.7 kB / 441.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3055, allocations: 0.5 kB / 441.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002427/0.3057, allocations: 71.89 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.3063, allocations: 34.81 kB / 441.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006866/0.307, allocations: 357.7 kB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.3073, allocations: 0.7359 MB / 442.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.753e-05/0.3074, allocations: 29.62 kB / 442.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.418e-05/0.3075, allocations: 23.42 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3075, allocations: 0 / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Templates: time 0.005907/0.3134, allocations: 2.214 MB / 444.8 MB, free: 9.961 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.6826129499822855]