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.001395/0.001395, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001784/0.001784, allocations: 213.2 kB / 23.73 MB, free: 4.164 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.499/1.499, allocations: 230.5 MB / 257.4 MB, free: 7.801 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.002238/0.002238, allocations: 63.89 kB / 378.2 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2815, allocations: 53.4 MB / 431.6 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00352/0.285, allocations: 1.812 MB / 433.4 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.2867, allocations: 0.6699 MB / 434.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.2868, allocations: 3.938 kB / 434.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.287, allocations: 31.66 kB / 434.1 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001954/0.2872, allocations: 31.72 kB / 434.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/0.2876, allocations: 95.77 kB / 434.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002773/0.2879, allocations: 175.5 kB / 434.4 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.2881, allocations: 54.59 kB / 434.5 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.2883, allocations: 87.64 kB / 434.6 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.2885, allocations: 83.55 kB / 434.7 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.2886, allocations: 16 kB / 434.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.422e-05/0.2886, allocations: 27.98 kB / 434.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.83e-05/0.2887, allocations: 47.77 kB / 434.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.511e-05/0.2888, allocations: 67.61 kB / 434.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.2892, allocations: 209.6 kB / 435 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2892, allocations: 0 / 435 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2892, allocations: 0 / 435 MB, free: 3.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2892, allocations: 0 / 435 MB, free: 3.125 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.2902, allocations: 453.2 kB / 435.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.2903, allocations: 11.98 kB / 435.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.2905, allocations: 32.78 kB / 435.5 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.2908, allocations: 188.1 kB / 435.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.2908, allocations: 12.38 kB / 435.7 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.2909, allocations: 16.38 kB / 435.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004271/0.2913, allocations: 214 kB / 435.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.2913, allocations: 4 kB / 435.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.2913, allocations: 11.92 kB / 435.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.2913, allocations: 8 kB / 435.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.2917, allocations: 131.9 kB / 436.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.2928, allocations: 0.6801 MB / 436.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006412/0.2935, allocations: 182.6 kB / 436.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.2936, allocations: 56.77 kB / 437 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.2937, allocations: 4 kB / 437 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003131/0.294, allocations: 156.9 kB / 437.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.294, allocations: 0 / 437.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000663/0.2946, allocations: 253.8 kB / 437.4 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.659e-05/0.2947, allocations: 81.11 kB / 437.5 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002564/0.295, allocations: 215.7 kB / 437.7 MB, free: 284 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.295, allocations: 33.69 kB / 437.7 MB, free: 244 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.2951, allocations: 144.3 kB / 437.9 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.2952, allocations: 31.73 kB / 437.9 MB, free: 64 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.2953, allocations: 61.77 kB / 437.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.2955, allocations: 330.8 kB / 438.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.2957, allocations: 72.02 kB / 438.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.2959, allocations: 149.1 kB / 438.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.2963, allocations: 212.3 kB / 438.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2963, allocations: 0 / 438.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004985/0.2968, allocations: 249.2 kB / 438.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.2968, allocations: 11.98 kB / 438.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.2968, allocations: 4 kB / 439 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/0.2968, allocations: 4.25 kB / 439 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.297, allocations: 35.92 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.297, allocations: 4 kB / 439 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.2972, allocations: 39.8 kB / 439 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.2972, allocations: 4 kB / 439 MB, free: 14.83 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.0001615/0.2974, allocations: 155.8 kB / 439.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.618e-05/0.2974, allocations: 15.91 kB / 439.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.2977, allocations: 131 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2977, allocations: 4 kB / 439.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.2977, allocations: 4 kB / 439.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2977, allocations: 0 / 439.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006523/0.2983, allocations: 401.9 kB / 439.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2983, allocations: 4 kB / 439.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.2985, allocations: 19.97 kB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2985, allocations: 288 / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.2985, allocations: 8 kB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.2985, allocations: 0 / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2985, allocations: 8 kB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000499/0.299, allocations: 296.1 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.299, allocations: 15.84 kB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.2991, allocations: 7.984 kB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.2992, allocations: 15.98 kB / 440.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.819e-05/0.2993, allocations: 23.91 kB / 440.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.2993, allocations: 11.98 kB / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.2994, allocations: 141.5 kB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2994, allocations: 0 / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003171/0.2998, allocations: 43.95 kB / 440.3 MB, free: 13.48 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.0001759/0.2999, allocations: 107.9 kB / 440.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004355/0.3004, allocations: 174.7 kB / 440.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3004, allocations: 0 / 440.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.3006, allocations: 76.39 kB / 440.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.3009, allocations: 31.97 kB / 440.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008063/0.3017, allocations: 365.8 kB / 441.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.3019, allocations: 120.9 kB / 441.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001149/0.302, allocations: 33.45 kB / 441.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.741e-05/0.3021, allocations: 23.44 kB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3021, allocations: 0 / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Templates: time 0.006933/0.309, allocations: 2.292 MB / 443.5 MB, free: 10.24 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.561177164316177]