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.001515/0.001515, allocations: 79.92 kB / 20.72 MB, free: 3.77 MB / 18.57 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.001127/0.001127, allocations: 169 kB / 24.14 MB, free: 364 kB / 18.57 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 0.8771/0.8771, allocations: 158.6 MB / 186 MB, free: 2.77 MB / 170.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.1702/0.1702, allocations: 32.38 MB / 270.7 MB, free: 14.6 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.132e-06/1.132e-06, allocations: 0 / 299.1 MB, free: 2.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.158e-05/1.271e-05, allocations: 2.312 kB / 299.1 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002744/0.002757, allocations: 1.952 MB / 301.1 MB, free: 212 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1244/0.1272, allocations: 0.9526 MB / 302 MB, free: 19.2 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.1273, allocations: 5.031 kB / 302 MB, free: 19.19 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006811/0.128, allocations: 186.5 kB / 302.2 MB, free: 19.17 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.1283, allocations: 137.2 kB / 302.3 MB, free: 19.15 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004021/0.1287, allocations: 169.2 kB / 302.5 MB, free: 19.13 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.129, allocations: 269.8 kB / 302.8 MB, free: 19.1 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.963e-05/0.1291, allocations: 19.92 kB / 302.8 MB, free: 19.1 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.1293, allocations: 155.4 kB / 302.9 MB, free: 19.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1295, allocations: 96.88 kB / 303 MB, free: 19.08 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.906e-05/0.1295, allocations: 17.34 kB / 303 MB, free: 19.08 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.1297, allocations: 72.89 kB / 303.1 MB, free: 19.07 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.839e-05/0.1298, allocations: 70.81 kB / 303.2 MB, free: 19.06 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.832e-05/0.1299, allocations: 65.8 kB / 303.2 MB, free: 19.05 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.1302, allocations: 229.2 kB / 303.5 MB, free: 19.01 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1302, allocations: 1 kB / 303.5 MB, free: 19.01 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1302, allocations: 1.656 kB / 303.5 MB, free: 19.01 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1302, allocations: 0 / 303.5 MB, free: 19.01 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.0005839/0.1308, allocations: 0.5547 MB / 304 MB, free: 18.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.1308, allocations: 9.156 kB / 304 MB, free: 18.54 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.1309, allocations: 33.17 kB / 304.1 MB, free: 18.54 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.1311, allocations: 208.7 kB / 304.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.952e-05/0.1311, allocations: 170.8 kB / 304.4 MB, free: 18.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.1312, allocations: 12.47 kB / 304.4 MB, free: 18.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.1314, allocations: 223.9 kB / 304.7 MB, free: 17.99 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.1314, allocations: 1.281 kB / 304.7 MB, free: 17.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.1314, allocations: 5.219 kB / 304.7 MB, free: 17.99 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.902e-06/0.1314, allocations: 3.391 kB / 304.7 MB, free: 17.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.712e-05/0.1315, allocations: 145 kB / 304.8 MB, free: 17.88 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004056/0.1319, allocations: 413.2 kB / 305.2 MB, free: 17.54 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.1321, allocations: 252.1 kB / 305.5 MB, free: 17.32 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.689e-05/0.1321, allocations: 136.4 kB / 305.6 MB, free: 17.2 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.1322, allocations: 3.688 kB / 305.6 MB, free: 17.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002558/0.1324, allocations: 0.4925 MB / 306.1 MB, free: 16.72 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.1324, allocations: 3.594 kB / 306.1 MB, free: 16.72 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003151/0.1327, allocations: 470.2 kB / 306.6 MB, free: 16.39 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.1328, allocations: 192.7 kB / 306.7 MB, free: 16.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.1329, allocations: 252.8 kB / 307 MB, free: 16.03 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.133, allocations: 34.34 kB / 307 MB, free: 16 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.517e-05/0.133, allocations: 117.9 kB / 307.1 MB, free: 15.9 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.524e-05/0.133, allocations: 53.64 kB / 307.2 MB, free: 15.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.1331, allocations: 52.27 kB / 307.2 MB, free: 15.85 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.449e-05/0.1331, allocations: 343 kB / 307.6 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.953e-05/0.1332, allocations: 114.9 kB / 307.7 MB, free: 15.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.979e-05/0.1333, allocations: 215 kB / 307.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.1334, allocations: 321.4 kB / 308.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1334, allocations: 1.281 kB / 308.2 MB, free: 14.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002067/0.1336, allocations: 341.8 kB / 308.6 MB, free: 14.67 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.1337, allocations: 98.2 kB / 308.6 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1337, allocations: 5.438 kB / 308.7 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1337, allocations: 3.875 kB / 308.7 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.703e-05/0.1338, allocations: 23.25 kB / 308.7 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1338, allocations: 5.469 kB / 308.7 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.196e-05/0.1339, allocations: 31.88 kB / 308.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.1339, allocations: 11.06 kB / 308.7 MB, free: 14.55 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 9.978e-05/0.134, allocations: 242.5 kB / 309 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.193e-05/0.134, allocations: 36.55 kB / 309 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.1342, allocations: 168.4 kB / 309.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1342, allocations: 2.375 kB / 309.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1342, allocations: 1.922 kB / 309.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1342, allocations: 5.641 kB / 309.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.1343, allocations: 131.2 kB / 309.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1343, allocations: 5.312 kB / 309.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.323e-05/0.1344, allocations: 8.641 kB / 309.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1344, allocations: 1.125 kB / 309.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.1344, allocations: 12.28 kB / 309.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1344, allocations: 1.281 kB / 309.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1344, allocations: 0.9375 kB / 309.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002591/0.1346, allocations: 418.8 kB / 309.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.5e-05/0.1347, allocations: 24.58 kB / 309.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.1347, allocations: 14.77 kB / 309.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.617e-05/0.1348, allocations: 15.09 kB / 309.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.1348, allocations: 25.69 kB / 309.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.1348, allocations: 11.3 kB / 309.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.1349, allocations: 93 kB / 309.9 MB, free: 13.74 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1349, allocations: 0 / 309.9 MB, free: 13.74 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002284/0.1352, allocations: 68.72 kB / 310 MB, free: 13.73 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.00104/0.1362, allocations: 0.5325 MB / 310.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002933/0.1365, allocations: 489.7 kB / 311 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.1365, allocations: 2.156 kB / 311 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.1367, allocations: 351.5 kB / 311.3 MB, free: 12.71 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.1368, allocations: 64.67 kB / 311.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005094/0.1374, allocations: 0.4952 MB / 311.9 MB, free: 12.33 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.332e-05/0.1374, allocations: 88.47 kB / 312 MB, free: 12.26 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.677e-05/0.1375, allocations: 24.42 kB / 312 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.1376, allocations: 125.1 kB / 312.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1376, allocations: 0 / 312.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of Templates: time 0.005941/0.1436, allocations: 3.82 MB / 316 MB, free: 10.98 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 -s gbode -gbm=radauIIA3 -emit_protected -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.1066445680335164]