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.001304/0.001304, 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.001435/0.001435, allocations: 211.2 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.518/1.518, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 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.244/0.244, allocations: 46.95 MB / 360.9 MB, free: 4.031 MB / 286.1 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 0.002704/0.002704, allocations: 71.88 kB / 0.4966 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3699, allocations: 66.03 MB / 0.5611 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003477/0.3734, allocations: 1.87 MB / 0.5629 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.3754, allocations: 1.127 MB / 0.564 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.384e-05/0.3755, allocations: 0 / 0.564 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006883/0.3762, allocations: 195.4 kB / 0.5642 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004747/0.3767, allocations: 167.4 kB / 0.5643 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003975/0.3771, allocations: 179.3 kB / 0.5645 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003487/0.3774, allocations: 279.3 kB / 0.5648 GB, free: 360 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.3776, allocations: 17.81 kB / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.3777, allocations: 111.7 kB / 0.5649 GB, free: 228 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.3779, allocations: 115.6 kB / 0.565 GB, free: 112 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.3779, allocations: 16 kB / 0.565 GB, free: 96 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.3781, allocations: 71.91 kB / 0.5651 GB, free: 24 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.3782, allocations: 63.75 kB / 0.5652 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3783, allocations: 91.58 kB / 0.5652 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003992/0.3787, allocations: 301.2 kB / 0.5655 GB, free: 15.58 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3788, allocations: 0 / 0.5655 GB, free: 15.58 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3788, allocations: 0 / 0.5655 GB, free: 15.58 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.3788, allocations: 0 / 0.5655 GB, free: 15.58 MB / 414.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.001057/0.3798, allocations: 0.5972 MB / 0.5661 GB, free: 14.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3799, allocations: 8.031 kB / 0.5661 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.799e-05/0.3799, allocations: 32.78 kB / 0.5662 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.3803, allocations: 213.5 kB / 0.5664 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.3805, allocations: 178.8 kB / 0.5665 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.3805, allocations: 23.94 kB / 0.5666 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003953/0.3809, allocations: 237.3 kB / 0.5668 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3809, allocations: 0 / 0.5668 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.3809, allocations: 4 kB / 0.5668 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3809, allocations: 0 / 0.5668 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.3812, allocations: 184.9 kB / 0.567 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008053/0.382, allocations: 0.5279 MB / 0.5675 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.3824, allocations: 249 kB / 0.5677 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.3827, allocations: 159.6 kB / 0.5679 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.3827, allocations: 4 kB / 0.5679 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005453/0.3832, allocations: 0.5138 MB / 0.5684 GB, free: 12.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.3832, allocations: 0 / 0.5684 GB, free: 12.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001036/0.3843, allocations: 0.6178 MB / 0.569 GB, free: 11.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.3844, allocations: 199.8 kB / 0.5692 GB, free: 11.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.3848, allocations: 329.8 kB / 0.5695 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.3848, allocations: 37.64 kB / 0.5695 GB, free: 11.01 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3849, allocations: 140.6 kB / 0.5696 GB, free: 10.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.646e-05/0.385, allocations: 51.59 kB / 0.5697 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.462e-05/0.385, allocations: 45.7 kB / 0.5697 GB, free: 10.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3852, allocations: 338.8 kB / 0.5701 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.3854, allocations: 153 kB / 0.5702 GB, free: 10.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.3857, allocations: 248.2 kB / 0.5704 GB, free: 9.957 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004411/0.3861, allocations: 366.6 kB / 0.5708 GB, free: 9.531 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3861, allocations: 4 kB / 0.5708 GB, free: 9.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006178/0.3868, allocations: 443.8 kB / 0.5712 GB, free: 9.051 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.391e-05/0.3868, allocations: 105 kB / 0.5713 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3869, allocations: 160 / 0.5713 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.3869, allocations: 4 kB / 0.5713 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.387, allocations: 27.92 kB / 0.5714 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.387, allocations: 7.984 kB / 0.5714 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.3871, allocations: 24.09 kB / 0.5714 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.3871, allocations: 19.94 kB / 0.5714 GB, free: 8.848 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.0002475/0.3874, allocations: 266.2 kB / 0.5717 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.3874, allocations: 35.8 kB / 0.5717 GB, free: 8.527 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004116/0.3879, allocations: 230.8 kB / 0.5719 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3879, allocations: 7.984 kB / 0.5719 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3879, allocations: 0 / 0.5719 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3879, allocations: 0 / 0.5719 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.3881, allocations: 209.1 kB / 0.5721 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3881, allocations: 4 kB / 0.5721 GB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.749e-05/0.3882, allocations: 11.94 kB / 0.5721 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3882, allocations: 0 / 0.5721 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.3882, allocations: 19.92 kB / 0.5722 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3882, allocations: 0 / 0.5722 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3882, allocations: 4 kB / 0.5722 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007655/0.389, allocations: 0.5354 MB / 0.5727 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-05/0.389, allocations: 27.75 kB / 0.5727 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.591e-05/0.3891, allocations: 15.94 kB / 0.5727 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.3892, allocations: 19.98 kB / 0.5727 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.948e-05/0.3893, allocations: 23.97 kB / 0.5728 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.3893, allocations: 12 kB / 0.5728 GB, free: 7.305 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002721/0.3896, allocations: 241.2 kB / 0.573 GB, free: 7.066 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3896, allocations: 0 / 0.573 GB, free: 7.066 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003341/0.3899, allocations: 63.94 kB / 0.5731 GB, free: 7.004 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 (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.001694/0.3916, allocations: 473.1 kB / 0.5735 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007277/0.3923, allocations: 0.5353 MB / 0.574 GB, free: 6.113 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3923, allocations: 4 kB / 0.574 GB, free: 6.109 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004177/0.3927, allocations: 367.1 kB / 0.5744 GB, free: 5.695 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.3931, allocations: 46.36 kB / 0.5744 GB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008795/0.394, allocations: 0.5373 MB / 0.575 GB, free: 5.059 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000155/0.3941, allocations: 153.6 kB / 0.5751 GB, free: 4.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.643e-05/0.3942, allocations: 22.48 kB / 0.5751 GB, free: 4.859 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.724e-05/0.3943, allocations: 23.42 kB / 0.5752 GB, free: 4.84 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3943, allocations: 0 / 0.5752 GB, free: 4.84 MB / 414.1 MB Notification: Performance of Templates: time 0.008481/0.4027, allocations: 3.814 MB / 0.5789 GB, free: 1.055 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] 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.41976479627192]