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.001227/0.001227, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002014/0.003242, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009545/0.0009545, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001037/0.001991, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.088/1.088, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1031/1.191, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.3017/0.3017, allocations: 32.8 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03187/0.3336, allocations: 12.53 MB / 289.3 MB, free: 8.68 MB / 282.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 2.324e-06/2.324e-06, allocations: 0 / 290.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.813e-05/3.046e-05, allocations: 7.297 kB / 290.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004263/0.004293, allocations: 1.985 MB / 292.6 MB, free: 6.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.006378, allocations: 1.175 MB / 293.8 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.006575, allocations: 11.94 kB / 293.8 MB, free: 5.137 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006368/0.007211, allocations: 167.5 kB / 293.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004481/0.007659, allocations: 191.1 kB / 294.1 MB, free: 4.785 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005164/0.008176, allocations: 164.2 kB / 294.3 MB, free: 4.625 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.0086, allocations: 275.3 kB / 294.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.00874, allocations: 26.38 kB / 294.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/0.009053, allocations: 200.4 kB / 294.8 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.009219, allocations: 103.7 kB / 294.9 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.247e-05/0.009252, allocations: 24 kB / 294.9 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.009471, allocations: 67.89 kB / 295 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.009582, allocations: 51.8 kB / 295 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.639e-05/0.009658, allocations: 55.88 kB / 295.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003765/0.01003, allocations: 211.2 kB / 295.3 MB, free: 3.629 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.352e-05/0.01006, allocations: 0 / 295.3 MB, free: 3.629 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.01006, allocations: 0 / 295.3 MB, free: 3.629 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.01008, allocations: 0 / 295.3 MB, free: 3.629 MB / 282.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.0009207/0.011, allocations: 0.6078 MB / 295.9 MB, free: 2.973 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.01105, allocations: 12.03 kB / 295.9 MB, free: 2.961 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.076e-05/0.01112, allocations: 40.84 kB / 295.9 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.01144, allocations: 197.6 kB / 296.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.01158, allocations: 178.8 kB / 296.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.0116, allocations: 12.38 kB / 296.3 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.01191, allocations: 224.3 kB / 296.5 MB, free: 2.223 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.01192, allocations: 0 / 296.5 MB, free: 2.223 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.01193, allocations: 7.984 kB / 296.5 MB, free: 2.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.01194, allocations: 4 kB / 296.5 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.01206, allocations: 139.8 kB / 296.7 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006259/0.01268, allocations: 418.1 kB / 297.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.01296, allocations: 251.6 kB / 297.3 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.68e-05/0.01306, allocations: 135.7 kB / 297.5 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.01308, allocations: 7.922 kB / 297.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004047/0.01349, allocations: 0.5047 MB / 298 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.746e-06/0.01349, allocations: 0 / 298 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005336/0.01402, allocations: 492.6 kB / 298.5 MB, free: 16 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.01414, allocations: 195.9 kB / 298.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.01434, allocations: 250.6 kB / 298.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.01436, allocations: 41.69 kB / 298.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/0.01443, allocations: 109.1 kB / 299 MB, free: 15.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.01449, allocations: 59.56 kB / 299.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.173e-05/0.01457, allocations: 49.67 kB / 299.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.01469, allocations: 342.7 kB / 299.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.0148, allocations: 119.9 kB / 299.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.01497, allocations: 220.2 kB / 299.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004816/0.01545, allocations: 341.1 kB / 300.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.01546, allocations: 4 kB / 300.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002894/0.01575, allocations: 340.3 kB / 300.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.546e-05/0.01582, allocations: 98.81 kB / 300.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.01583, allocations: 4 kB / 300.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.01585, allocations: 0 / 300.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.01595, allocations: 31.92 kB / 300.6 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.01596, allocations: 4 kB / 300.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.801e-05/0.01604, allocations: 27.81 kB / 300.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.01606, allocations: 12.22 kB / 300.7 MB, free: 13.52 MB / 298.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.000179/0.01624, allocations: 244.3 kB / 300.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.01628, allocations: 39.91 kB / 300.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002453/0.01653, allocations: 174.8 kB / 301.1 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.01653, allocations: 4 kB / 301.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.01654, allocations: 0 / 301.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.01655, allocations: 3.938 kB / 301.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.01672, allocations: 129.8 kB / 301.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.01672, allocations: 0 / 301.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.561e-05/0.01676, allocations: 19.92 kB / 301.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.0168, allocations: 27.81 kB / 301.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.0168, allocations: 0 / 301.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.01682, allocations: 12 kB / 301.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.01683, allocations: 4 kB / 301.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.01683, allocations: 4 kB / 301.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.01716, allocations: 431.4 kB / 301.7 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.01719, allocations: 8 kB / 301.7 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.958e-05/0.01726, allocations: 19.98 kB / 301.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.678e-05/0.01734, allocations: 23.92 kB / 301.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.01736, allocations: 15.98 kB / 301.8 MB, free: 12.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001089/0.01747, allocations: 97.59 kB / 301.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01747, allocations: 0 / 301.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002853/0.01776, allocations: 67.92 kB / 302 MB, free: 12.1 MB / 298.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.001592/0.01935, allocations: 0.566 MB / 302.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004268/0.01978, allocations: 497.7 kB / 303 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/0.01979, allocations: 4 kB / 303 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.02001, allocations: 356 kB / 303.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.0203, allocations: 91.38 kB / 303.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.02155, allocations: 0.5175 MB / 304 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.421e-05/0.02162, allocations: 87.97 kB / 304.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.268e-05/0.0217, allocations: 22.27 kB / 304.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001742/0.02188, allocations: 123.3 kB / 304.2 MB, free: 9.957 MB / 298.7 MB Notification: Performance of SimCode: time 2.725e-06/0.02188, allocations: 0 / 304.2 MB, free: 9.957 MB / 298.7 MB Notification: Performance of Templates: time 0.00824/0.03012, allocations: 3.928 MB / 308.1 MB, free: 6.094 MB / 298.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 -ignoreHideResult -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: 3.2123721288517118]