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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 104.1 kB / 17.64 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 192 kB / 18.55 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2066/0.2066, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 64.27 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1255, allocations: 60.82 MB / 469.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003745/0.1293, allocations: 1.869 MB / 471.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1312, allocations: 1.037 MB / 472.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.1313, allocations: 3.938 kB / 472.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006596/0.1319, allocations: 179.5 kB / 472.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.1323, allocations: 135.5 kB / 472.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004591/0.1327, allocations: 195.2 kB / 472.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003059/0.133, allocations: 275.3 kB / 472.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.1332, allocations: 37.66 kB / 473 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.1333, allocations: 103.7 kB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.1335, allocations: 119.6 kB / 473.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.1335, allocations: 16 kB / 473.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.1337, allocations: 63.91 kB / 473.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.917e-05/0.1338, allocations: 55.83 kB / 473.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.1339, allocations: 111.5 kB / 473.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003367/0.1343, allocations: 279.4 kB / 473.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1343, allocations: 4 kB / 473.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1343, allocations: 0 / 473.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1343, allocations: 3.938 kB / 473.7 MB, free: 9.895 MB / 350.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.0009183/0.1352, allocations: 0.6494 MB / 474.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1353, allocations: 12.03 kB / 474.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.169e-05/0.1353, allocations: 28.66 kB / 474.4 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.1357, allocations: 270.8 kB / 474.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.161e-05/0.1358, allocations: 93.67 kB / 474.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.1358, allocations: 23.92 kB / 474.8 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.1361, allocations: 162.7 kB / 474.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1361, allocations: 0 / 474.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.1362, allocations: 7.938 kB / 474.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1362, allocations: 4 kB / 474.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.1364, allocations: 95.88 kB / 475 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008403/0.1373, allocations: 0.5946 MB / 475.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000317/0.1376, allocations: 179.9 kB / 475.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.1378, allocations: 94.53 kB / 475.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.1378, allocations: 8 kB / 475.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004494/0.1383, allocations: 437 kB / 476.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.422e-06/0.1383, allocations: 0 / 476.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008199/0.1391, allocations: 454.5 kB / 476.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.1392, allocations: 209.6 kB / 477 MB, free: 6.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003201/0.1396, allocations: 320.9 kB / 477.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/0.1396, allocations: 29.7 kB / 477.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1397, allocations: 140.7 kB / 477.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.64e-05/0.1398, allocations: 51.34 kB / 477.5 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.097e-05/0.1398, allocations: 49.7 kB / 477.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.14, allocations: 338.8 kB / 477.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.1401, allocations: 59.97 kB / 477.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.1403, allocations: 138.3 kB / 478.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.1407, allocations: 354.7 kB / 478.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1407, allocations: 0 / 478.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005547/0.1412, allocations: 358 kB / 478.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.251e-05/0.1413, allocations: 93.09 kB / 478.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1413, allocations: 7.984 kB / 478.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.1413, allocations: 4 kB / 478.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.944e-05/0.1415, allocations: 16.22 kB / 478.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1415, allocations: 7.938 kB / 478.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.1416, allocations: 27.92 kB / 478.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.1416, allocations: 12 kB / 478.9 MB, free: 4.074 MB / 350.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.0002218/0.1419, allocations: 257.7 kB / 479.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.1419, allocations: 43.56 kB / 479.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/0.142, allocations: 25.7 kB / 479.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.142, allocations: 11.88 kB / 479.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.142, allocations: 4 kB / 479.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.142, allocations: 0 / 479.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.1423, allocations: 289.4 kB / 479.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1423, allocations: 0 / 479.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.841e-05/0.1423, allocations: 11.94 kB / 479.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1423, allocations: 0 / 479.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.1423, allocations: 15.98 kB / 479.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1424, allocations: 0 / 479.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1424, allocations: 0 / 479.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005908/0.143, allocations: 451 kB / 480 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.143, allocations: 104.8 kB / 480.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.1431, allocations: 12 kB / 480.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.1432, allocations: 15.98 kB / 480.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.409e-05/0.1433, allocations: 19.98 kB / 480.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.1433, allocations: 12 kB / 480.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002166/0.1435, allocations: 236.4 kB / 480.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1435, allocations: 0 / 480.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003063/0.1438, allocations: 67.94 kB / 480.5 MB, free: 2.395 MB / 350.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,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * 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.0009564/0.1448, allocations: 431.6 kB / 480.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.1454, allocations: 409.9 kB / 481.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1454, allocations: 4 kB / 481.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003234/0.1457, allocations: 334.1 kB / 481.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.1461, allocations: 63.84 kB / 481.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007889/0.1469, allocations: 453.7 kB / 482.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.1472, allocations: 0.7516 MB / 482.9 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.1473, allocations: 29.95 kB / 482.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.909e-05/0.1473, allocations: 19.44 kB / 482.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1473, allocations: 0 / 482.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of Templates: time 0.007787/0.1551, allocations: 3.453 MB / 486.4 MB, free: 12.52 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (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) 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) Reference file matches