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.001837/0.001837, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00242/0.00242, allocations: 214 kB / 23.73 MB, free: 4.16 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.594/1.594, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2429/0.2429, allocations: 44.93 MB / 358.8 MB, free: 6.047 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.0027/0.0027, allocations: 79.88 kB / 0.4935 GB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3979, allocations: 65.47 MB / 0.5574 GB, free: 7.449 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004794/0.4027, allocations: 1.864 MB / 0.5593 GB, free: 5.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003072/0.4058, allocations: 1.124 MB / 0.5604 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.4059, allocations: 3.938 kB / 0.5604 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009607/0.4069, allocations: 191.4 kB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005375/0.4074, allocations: 175.2 kB / 0.5607 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000489/0.4079, allocations: 175.3 kB / 0.5609 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003804/0.4083, allocations: 271.4 kB / 0.5611 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.4084, allocations: 17.8 kB / 0.5612 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.4086, allocations: 115.6 kB / 0.5613 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.4088, allocations: 123.5 kB / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.4089, allocations: 16 kB / 0.5614 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.4091, allocations: 67.95 kB / 0.5615 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.4092, allocations: 59.83 kB / 0.5615 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.4094, allocations: 99.45 kB / 0.5616 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005079/0.4099, allocations: 289.3 kB / 0.5619 GB, free: 2.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4099, allocations: 4 kB / 0.5619 GB, free: 2.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4099, allocations: 0 / 0.5619 GB, free: 2.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.4099, allocations: 0 / 0.5619 GB, free: 2.875 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.001531/0.4114, allocations: 0.5971 MB / 0.5625 GB, free: 2.223 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.257e-05/0.4115, allocations: 15.92 kB / 0.5625 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.4116, allocations: 32.8 kB / 0.5625 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005237/0.4121, allocations: 217.6 kB / 0.5627 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.4124, allocations: 170.8 kB / 0.5629 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.4124, allocations: 19.94 kB / 0.5629 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.4129, allocations: 245.2 kB / 0.5632 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.4129, allocations: 0 / 0.5632 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.4129, allocations: 8 kB / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.4129, allocations: 0 / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.4132, allocations: 181 kB / 0.5633 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009622/0.4142, allocations: 0.528 MB / 0.5638 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000467/0.4147, allocations: 249 kB / 0.5641 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.415, allocations: 155.6 kB / 0.5642 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.415, allocations: 4 kB / 0.5642 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006141/0.4156, allocations: 0.5193 MB / 0.5647 GB, free: 15.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.4156, allocations: 0 / 0.5647 GB, free: 15.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001033/0.4166, allocations: 0.614 MB / 0.5653 GB, free: 14.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.4168, allocations: 203.8 kB / 0.5655 GB, free: 14.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004409/0.4172, allocations: 329.8 kB / 0.5659 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.4172, allocations: 33.7 kB / 0.5659 GB, free: 14.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.4174, allocations: 132.6 kB / 0.566 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.4175, allocations: 51.58 kB / 0.5661 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.4176, allocations: 49.7 kB / 0.5661 GB, free: 14.06 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003064/0.4179, allocations: 342.8 kB / 0.5664 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.4181, allocations: 149 kB / 0.5666 GB, free: 13.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003079/0.4184, allocations: 260.1 kB / 0.5668 GB, free: 13.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004424/0.4188, allocations: 366.6 kB / 0.5672 GB, free: 12.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4188, allocations: 384 / 0.5672 GB, free: 12.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006497/0.4195, allocations: 443.5 kB / 0.5676 GB, free: 12.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.994e-05/0.4196, allocations: 101 kB / 0.5677 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.4196, allocations: 0 / 0.5677 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.4196, allocations: 4 kB / 0.5677 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.4197, allocations: 23.92 kB / 0.5677 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.4197, allocations: 4 kB / 0.5677 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.4199, allocations: 27.88 kB / 0.5678 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.4199, allocations: 12 kB / 0.5678 GB, free: 12.15 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.0002653/0.4202, allocations: 266.2 kB / 0.568 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.667e-05/0.4202, allocations: 35.8 kB / 0.5681 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004238/0.4206, allocations: 246.8 kB / 0.5683 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.4206, allocations: 4 kB / 0.5683 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.4207, allocations: 0 / 0.5683 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4207, allocations: 0 / 0.5683 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002929/0.4209, allocations: 209.1 kB / 0.5685 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.421, allocations: 3.984 kB / 0.5685 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.616e-05/0.421, allocations: 12 kB / 0.5685 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.421, allocations: 0 / 0.5685 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.421, allocations: 11.94 kB / 0.5685 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.421, allocations: 0 / 0.5685 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.421, allocations: 4 kB / 0.5685 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007494/0.4218, allocations: 0.5283 MB / 0.569 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.4218, allocations: 35.73 kB / 0.5691 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.702e-05/0.4219, allocations: 15.94 kB / 0.5691 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.422, allocations: 15.98 kB / 0.5691 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.4221, allocations: 23.98 kB / 0.5691 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.4221, allocations: 19.98 kB / 0.5691 GB, free: 10.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002732/0.4224, allocations: 241.2 kB / 0.5694 GB, free: 10.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4224, allocations: 0 / 0.5694 GB, free: 10.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003272/0.4227, allocations: 63.94 kB / 0.5694 GB, free: 10.29 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.001683/0.4244, allocations: 468.2 kB / 0.5699 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007164/0.4251, allocations: 0.5389 MB / 0.5704 GB, free: 9.402 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4251, allocations: 4 kB / 0.5704 GB, free: 9.398 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004226/0.4255, allocations: 363.4 kB / 0.5708 GB, free: 8.988 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.4259, allocations: 60.55 kB / 0.5708 GB, free: 8.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009896/0.4269, allocations: 0.5373 MB / 0.5713 GB, free: 8.336 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.427, allocations: 145.6 kB / 0.5715 GB, free: 8.168 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.27e-05/0.4271, allocations: 25.94 kB / 0.5715 GB, free: 8.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.016e-05/0.4272, allocations: 23.44 kB / 0.5715 GB, free: 8.121 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4272, allocations: 0 / 0.5715 GB, free: 8.121 MB / 414.1 MB Notification: Performance of Templates: time 0.008639/0.4358, allocations: 3.82 MB / 0.5753 GB, free: 4.34 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/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: 5.509938649833202]