Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.00119/0.00119, allocations: 76.19 kB / 9.911 MB, free: 0.7773 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001623/0.002813, allocations: 447.8 kB / 10.35 MB, free: 348 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.001038/0.001038, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001285/0.002323, allocations: 463.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.025/1.025, allocations: 158.6 MB / 171 MB, free: 2.184 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1891/1.214, allocations: 49.5 MB / 220.5 MB, free: 5.27 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1434/0.1434, allocations: 32.35 MB / 253.6 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02334/0.1667, allocations: 12.3 MB / 265.9 MB, free: 7.82 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 267.2 MB, free: 6.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.176e-05/2.321e-05, allocations: 2.312 kB / 267.2 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002385/0.002408, allocations: 1.96 MB / 269.2 MB, free: 4.562 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.003605, allocations: 0.9671 MB / 270.1 MB, free: 3.586 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.003723, allocations: 0 / 270.1 MB, free: 3.586 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005316/0.004254, allocations: 179.4 kB / 270.3 MB, free: 3.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002694/0.004524, allocations: 143.3 kB / 270.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.004949, allocations: 163.6 kB / 270.6 MB, free: 3.109 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.005267, allocations: 275.2 kB / 270.9 MB, free: 2.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.005373, allocations: 26.45 kB / 270.9 MB, free: 2.812 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.005595, allocations: 187.6 kB / 271.1 MB, free: 2.629 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.005758, allocations: 99.75 kB / 271.2 MB, free: 2.531 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.005786, allocations: 16 kB / 271.2 MB, free: 2.516 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.005936, allocations: 71.89 kB / 271.3 MB, free: 2.445 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.415e-05/0.00601, allocations: 51.84 kB / 271.3 MB, free: 2.395 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.511e-05/0.006075, allocations: 55.88 kB / 271.4 MB, free: 2.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.006341, allocations: 211.2 kB / 271.6 MB, free: 2.133 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.765e-05/0.006359, allocations: 0 / 271.6 MB, free: 2.133 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.00636, allocations: 4 kB / 271.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.006376, allocations: 0 / 271.6 MB, free: 2.129 MB / 266.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.0007301/0.007106, allocations: 0.5994 MB / 272.2 MB, free: 1.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.00714, allocations: 12.03 kB / 272.2 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.382e-05/0.007194, allocations: 32.91 kB / 272.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.007429, allocations: 197.5 kB / 272.4 MB, free: 1.215 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.339e-05/0.007523, allocations: 174.8 kB / 272.6 MB, free: 1.008 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.007546, allocations: 16.38 kB / 272.6 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.007774, allocations: 224.4 kB / 272.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.007783, allocations: 4 kB / 272.8 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.007796, allocations: 8 kB / 272.8 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.007805, allocations: 3.938 kB / 272.8 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.775e-05/0.007902, allocations: 139.9 kB / 273 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004475/0.00835, allocations: 422 kB / 273.4 MB, free: 132 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.008566, allocations: 255.6 kB / 273.6 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.328e-05/0.008659, allocations: 143.6 kB / 273.8 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.008678, allocations: 4 kB / 273.8 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003478/0.009026, allocations: 0.5008 MB / 274.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.492e-06/0.009027, allocations: 4 kB / 274.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004372/0.009464, allocations: 496.1 kB / 274.8 MB, free: 14.51 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.009577, allocations: 187.9 kB / 275 MB, free: 14.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.009778, allocations: 246.7 kB / 275.2 MB, free: 14.03 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.009799, allocations: 29.7 kB / 275.2 MB, free: 14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.855e-05/0.009857, allocations: 121 kB / 275.3 MB, free: 13.87 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.843e-05/0.009906, allocations: 55.61 kB / 275.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.336e-05/0.009969, allocations: 49.67 kB / 275.4 MB, free: 13.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.01007, allocations: 342.7 kB / 275.8 MB, free: 13.42 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.868e-05/0.01015, allocations: 115.9 kB / 275.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.01027, allocations: 220.2 kB / 276.1 MB, free: 13.01 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.01048, allocations: 340.5 kB / 276.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.01049, allocations: 4 kB / 276.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002477/0.01073, allocations: 342.4 kB / 276.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.574e-05/0.0108, allocations: 97.09 kB / 276.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.01081, allocations: 4 kB / 276.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.01082, allocations: 224 / 276.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-05/0.01091, allocations: 31.92 kB / 276.9 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.01091, allocations: 4 kB / 276.9 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.114e-05/0.011, allocations: 31.81 kB / 276.9 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.01101, allocations: 8 kB / 277 MB, free: 12.04 MB / 282.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.0001455/0.01115, allocations: 236.3 kB / 277.2 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/0.01119, allocations: 35.97 kB / 277.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/0.01138, allocations: 174.7 kB / 277.4 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.01139, allocations: 4 kB / 277.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.01139, allocations: 8 kB / 277.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.0114, allocations: 7.922 kB / 277.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.01157, allocations: 137.7 kB / 277.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.01158, allocations: 0 / 277.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.515e-05/0.01161, allocations: 8 kB / 277.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.01164, allocations: 19.86 kB / 277.6 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.01164, allocations: 4 kB / 277.6 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.01166, allocations: 11.98 kB / 277.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01166, allocations: 0 / 277.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.01166, allocations: 0 / 277.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.01197, allocations: 430.4 kB / 278 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.01201, allocations: 16 kB / 278 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.999e-05/0.01207, allocations: 15.98 kB / 278 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.01213, allocations: 19.97 kB / 278.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.01215, allocations: 8 kB / 278.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.519e-05/0.01224, allocations: 93.61 kB / 278.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01224, allocations: 0 / 278.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002284/0.01246, allocations: 71.86 kB / 278.2 MB, free: 10.64 MB / 282.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.001187/0.01365, allocations: 0.5802 MB / 278.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003368/0.01399, allocations: 497 kB / 279.3 MB, free: 9.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.014, allocations: 4 kB / 279.3 MB, free: 9.477 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001786/0.01418, allocations: 356 kB / 279.6 MB, free: 9.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/0.01441, allocations: 92.83 kB / 279.7 MB, free: 8.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008224/0.01523, allocations: 0.5128 MB / 280.2 MB, free: 8.418 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.846e-05/0.01529, allocations: 87.97 kB / 280.3 MB, free: 8.309 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.222e-05/0.01536, allocations: 29.77 kB / 280.4 MB, free: 8.277 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.01551, allocations: 123.3 kB / 280.5 MB, free: 8.156 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01551, allocations: 0 / 280.5 MB, free: 8.156 MB / 282.7 MB Notification: Performance of Templates: time 0.006496/0.02201, allocations: 3.85 MB / 284.3 MB, free: 4.297 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.0081467758864164]