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.001946/0.001946, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002172/0.002172, allocations: 216.9 kB / 22.99 MB, free: 4.977 MB / 14.72 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.647/1.647, allocations: 207.7 MB / 233.8 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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.268/0.268, allocations: 44.27 MB / 330.3 MB, free: 9.301 MB / 270.1 MB " [Timeout remaining time 179] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002322/0.002322, allocations: 69.5 kB / 468 MB, free: 3.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1383, allocations: 61.05 MB / 0.5166 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003736/0.1421, allocations: 1.846 MB / 0.5184 GB, free: 4.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.1438, allocations: 0.9209 MB / 0.5193 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1439, allocations: 4 kB / 0.5193 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007652/0.1447, allocations: 195.4 kB / 0.5195 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003337/0.145, allocations: 135.4 kB / 0.5197 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.1455, allocations: 179.6 kB / 0.5198 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000366/0.1458, allocations: 267.3 kB / 0.5201 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.146, allocations: 25.72 kB / 0.5201 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.1462, allocations: 115.6 kB / 0.5202 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.1463, allocations: 111.6 kB / 0.5203 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.1464, allocations: 20 kB / 0.5203 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.1466, allocations: 63.95 kB / 0.5204 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.933e-05/0.1467, allocations: 71.75 kB / 0.5205 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.1468, allocations: 87.53 kB / 0.5206 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000404/0.1472, allocations: 278.9 kB / 0.5208 GB, free: 2.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1472, allocations: 4 kB / 0.5208 GB, free: 2.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1472, allocations: 0 / 0.5208 GB, free: 2.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1472, allocations: 4 kB / 0.5208 GB, free: 2.359 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.001001/0.1482, allocations: 0.5856 MB / 0.5214 GB, free: 1.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1482, allocations: 11.97 kB / 0.5214 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.035e-05/0.1483, allocations: 28.8 kB / 0.5214 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.1487, allocations: 209.2 kB / 0.5216 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.1488, allocations: 170.8 kB / 0.5218 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.538e-05/0.1489, allocations: 27.88 kB / 0.5218 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004101/0.1493, allocations: 241.2 kB / 0.5221 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1493, allocations: 0 / 0.5221 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.1493, allocations: 8 kB / 0.5221 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.1493, allocations: 0 / 0.5221 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.1496, allocations: 181 kB / 0.5222 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008465/0.1505, allocations: 0.5201 MB / 0.5227 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004435/0.1509, allocations: 253 kB / 0.523 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.1511, allocations: 159.6 kB / 0.5231 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.1512, allocations: 4 kB / 0.5231 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005795/0.1517, allocations: 0.5099 MB / 0.5236 GB, free: 15.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.382e-06/0.1517, allocations: 0 / 0.5236 GB, free: 15.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001061/0.1528, allocations: 0.6217 MB / 0.5242 GB, free: 14.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.1529, allocations: 187.9 kB / 0.5244 GB, free: 14.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/0.1533, allocations: 325 kB / 0.5247 GB, free: 13.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.1534, allocations: 33.7 kB / 0.5248 GB, free: 13.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.1535, allocations: 132.6 kB / 0.5249 GB, free: 13.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.1536, allocations: 51.62 kB / 0.5249 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.872e-05/0.1536, allocations: 49.7 kB / 0.525 GB, free: 13.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.1538, allocations: 342.8 kB / 0.5253 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.154, allocations: 137.1 kB / 0.5254 GB, free: 13.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/0.1543, allocations: 260.1 kB / 0.5257 GB, free: 12.78 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005159/0.1549, allocations: 371 kB / 0.5261 GB, free: 12.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1549, allocations: 0 / 0.5261 GB, free: 12.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006595/0.1555, allocations: 443.4 kB / 0.5265 GB, free: 11.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.005e-05/0.1556, allocations: 101 kB / 0.5266 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1556, allocations: 4 kB / 0.5266 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.1556, allocations: 0 / 0.5266 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1557, allocations: 23.92 kB / 0.5266 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1558, allocations: 4 kB / 0.5266 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.1559, allocations: 27.88 kB / 0.5266 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.1559, allocations: 12.22 kB / 0.5266 GB, free: 11.69 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.0002544/0.1562, allocations: 269.9 kB / 0.5269 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.569e-05/0.1562, allocations: 35.8 kB / 0.5269 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004317/0.1567, allocations: 246.8 kB / 0.5272 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.1567, allocations: 4 kB / 0.5272 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1567, allocations: 0 / 0.5272 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1567, allocations: 0 / 0.5272 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.1569, allocations: 205.1 kB / 0.5274 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1569, allocations: 0 / 0.5274 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.934e-05/0.157, allocations: 15.98 kB / 0.5274 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.157, allocations: 8 kB / 0.5274 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.157, allocations: 11.94 kB / 0.5274 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.157, allocations: 0 / 0.5274 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.157, allocations: 0 / 0.5274 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008099/0.1578, allocations: 0.5284 MB / 0.5279 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/0.1578, allocations: 19.86 kB / 0.5279 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/0.1579, allocations: 19.92 kB / 0.528 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.158, allocations: 16 kB / 0.528 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.677e-05/0.1581, allocations: 27.95 kB / 0.528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/0.1581, allocations: 12 kB / 0.528 GB, free: 10.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.1584, allocations: 236.4 kB / 0.5282 GB, free: 9.918 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1584, allocations: 0 / 0.5282 GB, free: 9.918 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.1587, allocations: 75.81 kB / 0.5283 GB, free: 9.844 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.001782/0.1605, allocations: 462.5 kB / 0.5287 GB, free: 9.434 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007538/0.1613, allocations: 0.543 MB / 0.5293 GB, free: 8.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1613, allocations: 0 / 0.5293 GB, free: 8.816 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004532/0.1617, allocations: 367.2 kB / 0.5296 GB, free: 8.402 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.1621, allocations: 48.17 kB / 0.5297 GB, free: 8.359 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009253/0.163, allocations: 0.5449 MB / 0.5302 GB, free: 7.762 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.1632, allocations: 144.9 kB / 0.5303 GB, free: 7.598 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.3e-05/0.1632, allocations: 22.02 kB / 0.5304 GB, free: 7.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.1633, allocations: 27.42 kB / 0.5304 GB, free: 7.551 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1633, allocations: 0 / 0.5304 GB, free: 7.551 MB / 414.1 MB Notification: Performance of Templates: time 0.008791/0.1721, allocations: 3.772 MB / 0.5341 GB, free: 3.789 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.673643132671714]