Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.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.002088/0.002088, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002115/0.002115, allocations: 161.6 kB / 24.27 MB, free: 156 kB / 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 1.591/1.591, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.36/0.36, allocations: 34.26 MB / 295.3 MB, free: 0.6641 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 377.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.922e-05, allocations: 2.312 kB / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003782/0.003811, allocations: 1.916 MB / 379.2 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002382/0.006193, allocations: 1.145 MB / 380.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.006303, allocations: 3.938 kB / 380.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007307/0.007034, allocations: 187.4 kB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004666/0.0075, allocations: 179.2 kB / 380.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.007958, allocations: 167.5 kB / 380.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.008346, allocations: 275.3 kB / 381.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.008447, allocations: 17.8 kB / 381.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.008688, allocations: 155.6 kB / 381.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.008889, allocations: 107.7 kB / 381.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.463e-05/0.008933, allocations: 20 kB / 381.4 MB, free: 14.81 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.009104, allocations: 67.89 kB / 381.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.009217, allocations: 67.75 kB / 381.6 MB, free: 14.68 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.009332, allocations: 75.83 kB / 381.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004744/0.009806, allocations: 303 kB / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.009812, allocations: 0 / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.009814, allocations: 0 / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.009821, allocations: 0 / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001103/0.01092, allocations: 0.7124 MB / 382.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.01096, allocations: 12.03 kB / 382.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.01108, allocations: 48.75 kB / 382.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.01148, allocations: 215.7 kB / 382.9 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004531/0.01193, allocations: 178.7 kB / 383.1 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/0.01196, allocations: 12.38 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.01239, allocations: 257 kB / 383.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.0124, allocations: 0 / 383.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.01242, allocations: 7.984 kB / 383.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.01243, allocations: 4 kB / 383.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.01277, allocations: 181 kB / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.0138, allocations: 0.7044 MB / 384.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004752/0.01428, allocations: 278.5 kB / 384.5 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000265/0.01454, allocations: 180.1 kB / 384.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.01457, allocations: 0 / 384.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006626/0.01523, allocations: 0.5379 MB / 385.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.302e-06/0.01523, allocations: 4 kB / 385.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001158/0.01639, allocations: 0.6413 MB / 385.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/0.01654, allocations: 187.9 kB / 386.1 MB, free: 9.668 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004632/0.017, allocations: 372.2 kB / 386.4 MB, free: 9.285 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.01704, allocations: 33.7 kB / 386.4 MB, free: 9.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.01721, allocations: 199.3 kB / 386.6 MB, free: 9.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.137e-05/0.01728, allocations: 55.62 kB / 386.7 MB, free: 8.992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.01739, allocations: 67.3 kB / 386.8 MB, free: 8.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003332/0.01772, allocations: 0.5313 MB / 387.3 MB, free: 8.375 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.01795, allocations: 145.1 kB / 387.4 MB, free: 8.215 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/0.01829, allocations: 279.3 kB / 387.7 MB, free: 7.871 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.01882, allocations: 399.6 kB / 388.1 MB, free: 7.402 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.01883, allocations: 4 kB / 388.1 MB, free: 7.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007232/0.01955, allocations: 463.3 kB / 388.6 MB, free: 6.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.937e-05/0.01965, allocations: 97.09 kB / 388.7 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.01967, allocations: 4 kB / 388.7 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.01968, allocations: 0 / 388.7 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.01981, allocations: 23.92 kB / 388.7 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.01982, allocations: 7.938 kB / 388.7 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.01997, allocations: 28.16 kB / 388.7 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.01999, allocations: 12 kB / 388.7 MB, free: 6.715 MB / 362.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: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002823/0.02027, allocations: 292.2 kB / 389 MB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.898e-05/0.02036, allocations: 51.81 kB / 389.1 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004614/0.02082, allocations: 238.9 kB / 389.3 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.02083, allocations: 0 / 389.3 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.02083, allocations: 11.88 kB / 389.3 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.02084, allocations: 0 / 389.3 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.02116, allocations: 236.5 kB / 389.5 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.02116, allocations: 4 kB / 389.5 MB, free: 5.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.044e-05/0.0212, allocations: 12 kB / 389.6 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.02121, allocations: 0 / 389.6 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.02124, allocations: 11.98 kB / 389.6 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.02124, allocations: 3.984 kB / 389.6 MB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.02125, allocations: 4 kB / 389.6 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.02236, allocations: 0.5913 MB / 390.2 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.486e-05/0.02243, allocations: 27.78 kB / 390.2 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.327e-05/0.02248, allocations: 12 kB / 390.2 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.0226, allocations: 19.98 kB / 390.2 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.382e-05/0.02269, allocations: 27.91 kB / 390.2 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.02272, allocations: 12 kB / 390.3 MB, free: 5.027 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002679/0.02299, allocations: 241.1 kB / 390.5 MB, free: 4.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02299, allocations: 3.938 kB / 390.5 MB, free: 4.789 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.02331, allocations: 67.92 kB / 390.6 MB, free: 4.723 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.003011/0.02632, allocations: 456.2 kB / 391 MB, free: 4.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000856/0.02718, allocations: 0.5702 MB / 391.6 MB, free: 3.809 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.02718, allocations: 4 kB / 391.6 MB, free: 3.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005237/0.0277, allocations: 410.9 kB / 392 MB, free: 3.344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.02813, allocations: 79.14 kB / 392.1 MB, free: 3.273 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.02916, allocations: 0.5346 MB / 392.6 MB, free: 2.684 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.02933, allocations: 141.3 kB / 392.7 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.513e-05/0.02942, allocations: 21.94 kB / 392.8 MB, free: 2.504 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.824e-05/0.02949, allocations: 32.44 kB / 392.8 MB, free: 2.469 MB / 362.7 MB Notification: Performance of SimCode: time 8.31e-07/0.02949, allocations: 3.938 kB / 392.8 MB, free: 2.465 MB / 362.7 MB Notification: Performance of Templates: time 0.009264/0.03875, allocations: 3.65 MB / 396.4 MB, free: 14.85 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.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: 5.1086461279774085]