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.001498/0.001498, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001799/0.001799, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.48/1.48, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] 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.2341/0.2341, allocations: 44.91 MB / 359.6 MB, free: 6.297 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002394/0.002394, allocations: 71.89 kB / 0.4943 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3742, allocations: 65.46 MB / 0.5582 GB, free: 7.688 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003822/0.378, allocations: 1.932 MB / 0.5601 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.3803, allocations: 1.213 MB / 0.5613 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.3804, allocations: 0 / 0.5613 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006917/0.3811, allocations: 187.4 kB / 0.5615 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004904/0.3816, allocations: 171.4 kB / 0.5617 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004887/0.3821, allocations: 171.5 kB / 0.5618 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004391/0.3826, allocations: 283.3 kB / 0.5621 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.3827, allocations: 21.81 kB / 0.5621 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.3829, allocations: 115.6 kB / 0.5622 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.3831, allocations: 123.6 kB / 0.5623 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.3832, allocations: 16 kB / 0.5623 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.3833, allocations: 67.91 kB / 0.5624 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.3835, allocations: 71.8 kB / 0.5625 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.3836, allocations: 107.4 kB / 0.5626 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.3841, allocations: 293.2 kB / 0.5629 GB, free: 2.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.3841, allocations: 8 kB / 0.5629 GB, free: 2.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3841, allocations: 4 kB / 0.5629 GB, free: 2.953 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.3841, allocations: 0 / 0.5629 GB, free: 2.953 MB / 398.1 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.001156/0.3852, allocations: 0.5933 MB / 0.5635 GB, free: 2.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.3853, allocations: 11.98 kB / 0.5635 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.3854, allocations: 28.8 kB / 0.5635 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/0.3858, allocations: 221.5 kB / 0.5637 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.386, allocations: 170.7 kB / 0.5639 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.386, allocations: 23.94 kB / 0.5639 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003572/0.3864, allocations: 157 kB / 0.564 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3864, allocations: 0 / 0.564 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.3864, allocations: 8 kB / 0.564 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.3864, allocations: 4 kB / 0.5641 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.3867, allocations: 91.86 kB / 0.5641 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009166/0.3876, allocations: 0.582 MB / 0.5647 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.388, allocations: 155.9 kB / 0.5649 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.3881, allocations: 74.55 kB / 0.5649 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.3882, allocations: 0 / 0.5649 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000508/0.3887, allocations: 440.8 kB / 0.5653 GB, free: 124 kB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.402e-06/0.3887, allocations: 0 / 0.5653 GB, free: 124 kB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009324/0.3896, allocations: 442.5 kB / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.3898, allocations: 225.5 kB / 0.566 GB, free: 15.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004077/0.3902, allocations: 329.8 kB / 0.5663 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.75e-05/0.3902, allocations: 33.7 kB / 0.5663 GB, free: 15.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.3903, allocations: 140.6 kB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.893e-05/0.3904, allocations: 51.59 kB / 0.5665 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.816e-05/0.3905, allocations: 49.7 kB / 0.5666 GB, free: 14.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.3907, allocations: 338.8 kB / 0.5669 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.3908, allocations: 55.95 kB / 0.5669 GB, free: 14.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.391, allocations: 142.8 kB / 0.5671 GB, free: 14.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004514/0.3915, allocations: 359 kB / 0.5674 GB, free: 13.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3915, allocations: 4 kB / 0.5674 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00059/0.3921, allocations: 358.2 kB / 0.5678 GB, free: 13.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.042e-05/0.3922, allocations: 103.4 kB / 0.5679 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3922, allocations: 0 / 0.5679 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3922, allocations: 4 kB / 0.5679 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.3923, allocations: 19.94 kB / 0.5679 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3923, allocations: 4 kB / 0.5679 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.3925, allocations: 28.09 kB / 0.5679 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.3925, allocations: 16 kB / 0.5679 GB, free: 13.23 MB / 414.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: 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.0002696/0.3928, allocations: 265.7 kB / 0.5682 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.214e-05/0.3928, allocations: 31.8 kB / 0.5682 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004031/0.3932, allocations: 201 kB / 0.5684 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.3932, allocations: 4 kB / 0.5684 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3932, allocations: 0 / 0.5684 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3933, allocations: 3.984 kB / 0.5684 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003244/0.3936, allocations: 268.5 kB / 0.5687 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3936, allocations: 0 / 0.5687 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.814e-05/0.3936, allocations: 19.86 kB / 0.5687 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3936, allocations: 0 / 0.5687 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.3936, allocations: 12 kB / 0.5687 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.3936, allocations: 0 / 0.5687 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3936, allocations: 0 / 0.5687 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007316/0.3944, allocations: 451.4 kB / 0.5691 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.293e-05/0.3944, allocations: 31.78 kB / 0.5692 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.853e-05/0.3945, allocations: 16 kB / 0.5692 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.3946, allocations: 23.92 kB / 0.5692 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.418e-05/0.3947, allocations: 15.97 kB / 0.5692 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.3947, allocations: 16 kB / 0.5692 GB, free: 11.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002888/0.395, allocations: 241.2 kB / 0.5695 GB, free: 11.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.395, allocations: 3.938 kB / 0.5695 GB, free: 11.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.3954, allocations: 71.89 kB / 0.5695 GB, free: 11.46 MB / 414.1 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 (14): * Single equations (assignments): 9 * 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.001587/0.397, allocations: 435.7 kB / 0.5699 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.3976, allocations: 354.3 kB / 0.5703 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3976, allocations: 4.125 kB / 0.5703 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.398, allocations: 270.1 kB / 0.5705 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.3983, allocations: 60.34 kB / 0.5706 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000978/0.3993, allocations: 490.8 kB / 0.5711 GB, free: 9.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.3998, allocations: 0.7518 MB / 0.5718 GB, free: 9.125 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.311e-05/0.3998, allocations: 23.44 kB / 0.5718 GB, free: 9.105 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3998, allocations: 0 / 0.5718 GB, free: 9.105 MB / 414.1 MB Notification: Performance of Templates: time 0.007175/0.407, allocations: 3.598 MB / 0.5753 GB, free: 5.52 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.074894313933328]