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.001713/0.001713, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002322/0.002322, allocations: 212 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.564/1.564, allocations: 230.6 MB / 257.5 MB, free: 7.793 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+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 0.002572/0.002572, allocations: 47.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2969, allocations: 53.37 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003361/0.3003, allocations: 1.805 MB / 433.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.3016, allocations: 0.666 MB / 434 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3017, allocations: 7.938 kB / 434.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.3019, allocations: 35.66 kB / 434.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.302, allocations: 27.72 kB / 434.1 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.3024, allocations: 95.77 kB / 434.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.3026, allocations: 179.4 kB / 434.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.3028, allocations: 54.58 kB / 434.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.303, allocations: 83.66 kB / 434.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.3031, allocations: 83.59 kB / 434.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.3032, allocations: 12 kB / 434.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.446e-05/0.3033, allocations: 27.98 kB / 434.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.171e-05/0.3033, allocations: 51.78 kB / 434.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.393e-05/0.3034, allocations: 67.59 kB / 434.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.3037, allocations: 209.6 kB / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3037, allocations: 0 / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3037, allocations: 0 / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3037, allocations: 0 / 435 MB, free: 3.305 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.0009834/0.3047, allocations: 453.2 kB / 435.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.3047, allocations: 8.031 kB / 435.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.3049, allocations: 32.78 kB / 435.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003209/0.3052, allocations: 191.7 kB / 435.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.3052, allocations: 12.38 kB / 435.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.3053, allocations: 24.36 kB / 435.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.3057, allocations: 210.6 kB / 435.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.3057, allocations: 4 kB / 435.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.3057, allocations: 4 kB / 435.9 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.912e-05/0.3058, allocations: 15.94 kB / 435.9 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.3061, allocations: 131.9 kB / 436 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.3072, allocations: 0.6762 MB / 436.7 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006424/0.3078, allocations: 182.6 kB / 436.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.308, allocations: 56.83 kB / 436.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.916e-05/0.308, allocations: 4 kB / 436.9 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.3083, allocations: 148.9 kB / 437.1 MB, free: 1.035 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.3083, allocations: 0 / 437.1 MB, free: 1.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006378/0.3089, allocations: 257.3 kB / 437.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.309, allocations: 77.11 kB / 437.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.3092, allocations: 215.7 kB / 437.6 MB, free: 476 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.3093, allocations: 33.7 kB / 437.7 MB, free: 436 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.3094, allocations: 144.3 kB / 437.8 MB, free: 288 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.3094, allocations: 39.72 kB / 437.8 MB, free: 248 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.527e-05/0.3095, allocations: 57.69 kB / 437.9 MB, free: 184 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003018/0.3098, allocations: 330.8 kB / 438.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.31, allocations: 75.95 kB / 438.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.3102, allocations: 136.5 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/0.3106, allocations: 216.6 kB / 438.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3106, allocations: 0 / 438.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004789/0.3111, allocations: 245.3 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3111, allocations: 8 kB / 438.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3111, allocations: 3.984 kB / 438.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.3111, allocations: 8.234 kB / 438.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.3113, allocations: 39.92 kB / 438.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.3113, allocations: 4 kB / 438.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.3115, allocations: 31.86 kB / 439 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.3115, allocations: 12 kB / 439 MB, free: 15.02 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.0001757/0.3117, allocations: 151.7 kB / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.3117, allocations: 15.91 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002852/0.312, allocations: 135 kB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.312, allocations: 4 kB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.312, allocations: 0 / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.312, allocations: 4 kB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006421/0.3127, allocations: 414.2 kB / 439.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3127, allocations: 0 / 439.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.3128, allocations: 23.97 kB / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.3128, allocations: 0 / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.3128, allocations: 4 kB / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3128, allocations: 0 / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3128, allocations: 0 / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004747/0.3133, allocations: 299.4 kB / 440 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.848e-05/0.3133, allocations: 15.84 kB / 440 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.749e-05/0.3134, allocations: 7.984 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.3135, allocations: 20.05 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.311e-05/0.3136, allocations: 27.91 kB / 440.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.3136, allocations: 7.984 kB / 440.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001497/0.3138, allocations: 141.5 kB / 440.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3138, allocations: 0 / 440.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.3141, allocations: 43.95 kB / 440.3 MB, free: 13.66 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.0001737/0.3143, allocations: 107.2 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004629/0.3148, allocations: 171.8 kB / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3148, allocations: 0 / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002532/0.315, allocations: 72.39 kB / 440.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.3154, allocations: 27.98 kB / 440.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008609/0.3162, allocations: 365.8 kB / 441 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001549/0.3164, allocations: 120.9 kB / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001237/0.3165, allocations: 41.44 kB / 441.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.849e-05/0.3166, allocations: 19.44 kB / 441.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3166, allocations: 0 / 441.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of Templates: time 0.007207/0.3238, allocations: 2.304 MB / 443.5 MB, free: 10.42 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.654348149895668]