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.001806/0.001806, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002216/0.002216, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.612/1.612, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.2867/0.2867, allocations: 44.94 MB / 359.6 MB, free: 6.043 MB / 286.1 MB " [Timeout remaining time 179] 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.00241/0.00241, allocations: 63.91 kB / 0.4942 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3797, allocations: 65.48 MB / 0.5582 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003604/0.3833, allocations: 1.86 MB / 0.56 GB, free: 5.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.3857, allocations: 1.131 MB / 0.5611 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.3858, allocations: 4 kB / 0.5611 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007128/0.3865, allocations: 183.4 kB / 0.5613 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004498/0.3869, allocations: 179.3 kB / 0.5615 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.3874, allocations: 163.6 kB / 0.5616 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.3878, allocations: 279.3 kB / 0.5619 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.3879, allocations: 21.8 kB / 0.5619 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.388, allocations: 115.6 kB / 0.562 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.3882, allocations: 119.5 kB / 0.5621 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.036e-05/0.3883, allocations: 20 kB / 0.5621 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.3885, allocations: 63.97 kB / 0.5622 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.3886, allocations: 63.81 kB / 0.5623 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.3887, allocations: 91.47 kB / 0.5623 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004514/0.3891, allocations: 293.3 kB / 0.5626 GB, free: 2.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3891, allocations: 3.984 kB / 0.5626 GB, free: 2.895 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3891, allocations: 0 / 0.5626 GB, free: 2.895 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.902e-06/0.3891, allocations: 0 / 0.5626 GB, free: 2.895 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.001064/0.3902, allocations: 0.5933 MB / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3902, allocations: 15.92 kB / 0.5632 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.865e-05/0.3903, allocations: 32.8 kB / 0.5633 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.3907, allocations: 221.6 kB / 0.5635 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/0.3909, allocations: 170.8 kB / 0.5636 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.192e-05/0.3909, allocations: 19.94 kB / 0.5636 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.3913, allocations: 237.2 kB / 0.5639 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.3913, allocations: 0 / 0.5639 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.3913, allocations: 12 kB / 0.5639 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.3913, allocations: 7.938 kB / 0.5639 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/0.3917, allocations: 181 kB / 0.5641 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008268/0.3925, allocations: 0.5241 MB / 0.5646 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004103/0.3929, allocations: 248.9 kB / 0.5648 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.3931, allocations: 167.6 kB / 0.565 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.3931, allocations: 0 / 0.565 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006565/0.3938, allocations: 0.5149 MB / 0.5655 GB, free: 15.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.3938, allocations: 3.938 kB / 0.5655 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001049/0.3948, allocations: 0.6217 MB / 0.5661 GB, free: 14.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.395, allocations: 191.9 kB / 0.5663 GB, free: 14.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.3954, allocations: 329.8 kB / 0.5666 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.3954, allocations: 37.7 kB / 0.5666 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3955, allocations: 140.6 kB / 0.5668 GB, free: 14.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.606e-05/0.3956, allocations: 55.59 kB / 0.5668 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.133e-05/0.3957, allocations: 45.7 kB / 0.5669 GB, free: 14.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3958, allocations: 338.8 kB / 0.5672 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.3961, allocations: 149 kB / 0.5673 GB, free: 13.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.3963, allocations: 252.2 kB / 0.5676 GB, free: 13.26 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.3968, allocations: 370.6 kB / 0.5679 GB, free: 12.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3968, allocations: 0 / 0.5679 GB, free: 12.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006544/0.3975, allocations: 444 kB / 0.5683 GB, free: 12.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.3976, allocations: 105 kB / 0.5684 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3976, allocations: 4 kB / 0.5684 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3976, allocations: 4 kB / 0.5684 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.3977, allocations: 27.92 kB / 0.5685 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3977, allocations: 0 / 0.5685 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.3979, allocations: 27.88 kB / 0.5685 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.3979, allocations: 12 kB / 0.5685 GB, free: 12.16 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.0002654/0.3982, allocations: 262 kB / 0.5688 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.283e-05/0.3982, allocations: 35.8 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004342/0.3987, allocations: 238.9 kB / 0.569 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3987, allocations: 7.922 kB / 0.569 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3987, allocations: 0 / 0.569 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.3987, allocations: 7.984 kB / 0.569 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/0.399, allocations: 209.1 kB / 0.5692 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.399, allocations: 0 / 0.5692 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-05/0.399, allocations: 4 kB / 0.5692 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.399, allocations: 4 kB / 0.5692 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.042e-05/0.399, allocations: 19.92 kB / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.399, allocations: 4 kB / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.399, allocations: 0 / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007695/0.3998, allocations: 0.5279 MB / 0.5698 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.396e-05/0.3999, allocations: 27.81 kB / 0.5698 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.554e-05/0.3999, allocations: 15.94 kB / 0.5698 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.4, allocations: 15.98 kB / 0.5698 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.74e-05/0.4001, allocations: 19.97 kB / 0.5699 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.4001, allocations: 16 kB / 0.5699 GB, free: 10.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002797/0.4004, allocations: 245.2 kB / 0.5701 GB, free: 10.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4004, allocations: 4.094 kB / 0.5701 GB, free: 10.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.4008, allocations: 67.88 kB / 0.5702 GB, free: 10.3 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.001711/0.4025, allocations: 469.5 kB / 0.5706 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007359/0.4032, allocations: 0.5314 MB / 0.5711 GB, free: 9.418 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4032, allocations: 448 / 0.5711 GB, free: 9.418 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004175/0.4036, allocations: 371.2 kB / 0.5715 GB, free: 9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.404, allocations: 48.33 kB / 0.5715 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000957/0.4049, allocations: 0.5779 MB / 0.5721 GB, free: 8.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.4051, allocations: 141.1 kB / 0.5722 GB, free: 8.152 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.324e-05/0.4051, allocations: 31.44 kB / 0.5723 GB, free: 8.125 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4051, allocations: 0 / 0.5723 GB, free: 8.125 MB / 414.1 MB Notification: Performance of Templates: time 0.006334/0.4115, allocations: 3.656 MB / 0.5758 GB, free: 4.477 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.3879184150137]