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.001368/0.001369, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001132/0.001132, allocations: 187 kB / 19.34 MB, free: 3.641 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.399/1.399, allocations: 222.9 MB / 243 MB, free: 15.15 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.2571/0.2571, allocations: 44.18 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.44 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1275, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003175/0.1307, allocations: 1.88 MB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.1326, allocations: 1.033 MB / 473.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1327, allocations: 7.938 kB / 473.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007273/0.1334, allocations: 183.4 kB / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.1338, allocations: 131.5 kB / 473.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004789/0.1343, allocations: 191.2 kB / 474.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003185/0.1346, allocations: 279.3 kB / 474.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.1347, allocations: 29.66 kB / 474.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.1349, allocations: 107.7 kB / 474.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.135, allocations: 115.5 kB / 474.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.1351, allocations: 16 kB / 474.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001432/0.1352, allocations: 67.95 kB / 474.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.921e-05/0.1353, allocations: 59.83 kB / 474.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1355, allocations: 119.4 kB / 474.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003415/0.1358, allocations: 279 kB / 475.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1358, allocations: 0 / 475.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1358, allocations: 0 / 475.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1359, allocations: 0 / 475.2 MB, free: 9.184 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.0009578/0.1368, allocations: 0.6561 MB / 475.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1369, allocations: 12.03 kB / 475.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.299e-05/0.1369, allocations: 28.66 kB / 475.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.1373, allocations: 278.7 kB / 476.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.339e-05/0.1374, allocations: 93.67 kB / 476.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.1375, allocations: 19.94 kB / 476.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.1378, allocations: 153 kB / 476.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1378, allocations: 11.94 kB / 476.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.1378, allocations: 4 kB / 476.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1378, allocations: 0 / 476.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002364/0.1381, allocations: 95.91 kB / 476.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000803/0.1389, allocations: 0.6024 MB / 477.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.1393, allocations: 171.9 kB / 477.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.1395, allocations: 90.55 kB / 477.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.1395, allocations: 7.938 kB / 477.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00042/0.1399, allocations: 437.1 kB / 477.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.1399, allocations: 0 / 477.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008365/0.1408, allocations: 450.2 kB / 478.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.1409, allocations: 221.6 kB / 478.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.1412, allocations: 312.9 kB / 478.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.1413, allocations: 33.7 kB / 478.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.388e-05/0.1414, allocations: 132.7 kB / 478.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.1414, allocations: 55.34 kB / 479 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.1415, allocations: 49.69 kB / 479 MB, free: 4.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1416, allocations: 342.8 kB / 479.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.1418, allocations: 55.97 kB / 479.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.142, allocations: 138.3 kB / 479.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.1424, allocations: 366.9 kB / 479.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1424, allocations: 0 / 479.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005627/0.143, allocations: 346.1 kB / 480.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.74e-05/0.1431, allocations: 97.09 kB / 480.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.1431, allocations: 160 / 480.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.1431, allocations: 8.219 kB / 480.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.1432, allocations: 27.86 kB / 480.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.1433, allocations: 8.359 kB / 480.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.1434, allocations: 19.92 kB / 480.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.1435, allocations: 12 kB / 480.4 MB, free: 3.359 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.0002297/0.1437, allocations: 265.7 kB / 480.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.275e-05/0.1438, allocations: 43.55 kB / 480.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.526e-05/0.1438, allocations: 25.72 kB / 480.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1438, allocations: 4 kB / 480.7 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.1438, allocations: 3.984 kB / 480.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1439, allocations: 0 / 480.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.1441, allocations: 289.4 kB / 481 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1441, allocations: 0 / 481 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.28e-05/0.1442, allocations: 15.92 kB / 481 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1442, allocations: 0 / 481 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.1442, allocations: 8 kB / 481.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.1442, allocations: 11.88 kB / 481.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1442, allocations: 4 kB / 481.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006383/0.1449, allocations: 439.1 kB / 481.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.976e-05/0.145, allocations: 104.8 kB / 481.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/0.145, allocations: 8 kB / 481.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.1451, allocations: 19.98 kB / 481.6 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.219e-05/0.1452, allocations: 19.98 kB / 481.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.1453, allocations: 23.92 kB / 481.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.1455, allocations: 228.5 kB / 481.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1455, allocations: 3.938 kB / 481.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003397/0.1459, allocations: 71.92 kB / 482 MB, free: 1.668 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.0009951/0.1469, allocations: 417.6 kB / 482.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005955/0.1475, allocations: 401.9 kB / 482.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1475, allocations: 0 / 482.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003772/0.1479, allocations: 334.1 kB / 483.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.1482, allocations: 64.27 kB / 483.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008245/0.1491, allocations: 457.7 kB / 483.6 MB, free: 84 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.1495, allocations: 0.7478 MB / 484.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.26e-05/0.1496, allocations: 34.16 kB / 484.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.1497, allocations: 19.44 kB / 484.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1497, allocations: 0 / 484.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Templates: time 0.007132/0.1568, allocations: 3.456 MB / 487.9 MB, free: 11.82 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches