Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001237/0.001237, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.0009275/0.0009275, allocations: 170.4 kB / 24.82 MB, free: 9.27 MB / 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 0.9055/0.9055, allocations: 177.1 MB / 205.3 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2291/0.2291, allocations: 32.81 MB / 294.6 MB, free: 1.25 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 376.4 MB, free: 4.453 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345e-05/1.509e-05, allocations: 6.25 kB / 376.5 MB, free: 4.445 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002186/0.002201, allocations: 1.936 MB / 378.4 MB, free: 2.492 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.003588, allocations: 1.145 MB / 379.5 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.619e-05/0.003685, allocations: 0 / 379.5 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005448/0.004229, allocations: 191.3 kB / 379.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.004525, allocations: 191.1 kB / 379.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/0.004796, allocations: 151.5 kB / 380.1 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.00504, allocations: 287.2 kB / 380.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.376e-05/0.005134, allocations: 17.8 kB / 380.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.005278, allocations: 155.7 kB / 380.5 MB, free: 380 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.005404, allocations: 111.7 kB / 380.6 MB, free: 268 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.00543, allocations: 16 kB / 380.6 MB, free: 252 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.005545, allocations: 71.83 kB / 380.7 MB, free: 180 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-05/0.005618, allocations: 63.81 kB / 380.8 MB, free: 116 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.445e-05/0.005683, allocations: 75.77 kB / 380.8 MB, free: 40 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002436/0.005926, allocations: 223.2 kB / 381.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.00593, allocations: 3.984 kB / 381.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.00593, allocations: 0 / 381.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.875e-06/0.005933, allocations: 0 / 381.1 MB, free: 15.82 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.0005586/0.006492, allocations: 0.6971 MB / 381.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.006524, allocations: 15.98 kB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.486e-05/0.006579, allocations: 44.75 kB / 381.8 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.006776, allocations: 232.2 kB / 382 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-05/0.006851, allocations: 170.8 kB / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.006867, allocations: 16.38 kB / 382.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/0.007056, allocations: 228.2 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.007063, allocations: 3.938 kB / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.007074, allocations: 4 kB / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.007081, allocations: 8 kB / 382.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.406e-05/0.007165, allocations: 137 kB / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000429/0.007594, allocations: 0.619 MB / 383.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.007758, allocations: 234.5 kB / 383.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.997e-05/0.007828, allocations: 140.1 kB / 383.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.007843, allocations: 4.047 kB / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.008087, allocations: 0.511 MB / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.393e-06/0.008088, allocations: 0 / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003881/0.008476, allocations: 0.5474 MB / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.008531, allocations: 187.9 kB / 384.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.008693, allocations: 308.2 kB / 385.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.00871, allocations: 33.7 kB / 385.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.602e-05/0.008786, allocations: 199.2 kB / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.445e-05/0.008821, allocations: 47.58 kB / 385.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.881e-05/0.00887, allocations: 59.31 kB / 385.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.008986, allocations: 0.5234 MB / 386 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.629e-05/0.009042, allocations: 113.1 kB / 386.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.009146, allocations: 246.3 kB / 386.3 MB, free: 9.895 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.009315, allocations: 343.2 kB / 386.7 MB, free: 9.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.009317, allocations: 4.031 kB / 386.7 MB, free: 9.477 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002453/0.009562, allocations: 391.5 kB / 387.1 MB, free: 9.051 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.009602, allocations: 93.09 kB / 387.1 MB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.009609, allocations: 7.984 kB / 387.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.009621, allocations: 4 kB / 387.2 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.707e-05/0.009678, allocations: 19.94 kB / 387.2 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.009682, allocations: 7.938 kB / 387.2 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.515e-05/0.009747, allocations: 32.09 kB / 387.2 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.009757, allocations: 8 kB / 387.2 MB, free: 8.863 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.000121/0.009878, allocations: 280.2 kB / 387.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.015e-05/0.009919, allocations: 51.75 kB / 387.6 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.01009, allocations: 203.1 kB / 387.7 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.0101, allocations: 4 kB / 387.8 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.0101, allocations: 0 / 387.8 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.0101, allocations: 7.938 kB / 387.8 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.01023, allocations: 181.1 kB / 387.9 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.01023, allocations: 4 kB / 387.9 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.863e-05/0.01025, allocations: 7.938 kB / 387.9 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.01025, allocations: 4 kB / 388 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.01027, allocations: 11.94 kB / 388 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.01027, allocations: 4 kB / 388 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.01027, allocations: 4 kB / 388 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.01058, allocations: 0.5172 MB / 388.5 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.0106, allocations: 23.84 kB / 388.5 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.01063, allocations: 12 kB / 388.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.206e-05/0.01068, allocations: 23.98 kB / 388.5 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.01072, allocations: 19.92 kB / 388.6 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.01074, allocations: 15.98 kB / 388.6 MB, free: 7.363 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.825e-05/0.01083, allocations: 209 kB / 388.8 MB, free: 7.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01083, allocations: 0 / 388.8 MB, free: 7.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000186/0.01101, allocations: 71.89 kB / 388.9 MB, free: 7.09 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.0006965/0.01171, allocations: 399 kB / 389.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000274/0.01198, allocations: 499.7 kB / 389.7 MB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.01198, allocations: 0 / 389.7 MB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.01214, allocations: 351.3 kB / 390.1 MB, free: 5.867 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.01235, allocations: 69.17 kB / 390.1 MB, free: 5.801 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.01279, allocations: 0.5031 MB / 390.6 MB, free: 5.242 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.629e-05/0.01284, allocations: 87.97 kB / 390.7 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.665e-05/0.01289, allocations: 21.94 kB / 390.8 MB, free: 5.113 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.01302, allocations: 146.2 kB / 390.9 MB, free: 4.969 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01302, allocations: 4 kB / 390.9 MB, free: 4.965 MB / 362.7 MB Notification: Performance of Templates: time 0.005123/0.01815, allocations: 3.999 MB / 394.9 MB, free: 1.02 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8032627371139824]