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.0008363/0.0008365, allocations: 91.44 kB / 17.35 MB, free: 6.027 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.0009307/0.0009309, allocations: 174.4 kB / 18.26 MB, free: 5.391 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.381/1.381, allocations: 223.2 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2006/0.2006, allocations: 44.25 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003288, allocations: 12 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1354, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.00226/0.1377, allocations: 1.588 MB / 473.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1393, allocations: 1.01 MB / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.72e-05/0.1394, allocations: 0 / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006025/0.14, allocations: 183.6 kB / 475 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002593/0.1403, allocations: 111.7 kB / 475.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.1408, allocations: 178.7 kB / 475.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003038/0.1411, allocations: 255.4 kB / 475.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.1412, allocations: 33.61 kB / 475.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001347/0.1413, allocations: 91.61 kB / 475.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.1415, allocations: 103.6 kB / 475.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.1415, allocations: 11.98 kB / 475.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1417, allocations: 47.98 kB / 475.8 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.954e-05/0.1418, allocations: 59.77 kB / 475.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1419, allocations: 133.1 kB / 476 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003041/0.1422, allocations: 259.3 kB / 476.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1422, allocations: 0 / 476.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1422, allocations: 0 / 476.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.1422, allocations: 3.938 kB / 476.3 MB, free: 9.289 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.0008722/0.1431, allocations: 0.6145 MB / 476.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1432, allocations: 8.031 kB / 476.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.412e-05/0.1432, allocations: 28.66 kB / 476.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.1436, allocations: 278.7 kB / 477.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.534e-05/0.1437, allocations: 93.67 kB / 477.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.1437, allocations: 19.94 kB / 477.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.1441, allocations: 162.7 kB / 477.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.1441, allocations: 0 / 477.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.1441, allocations: 8 kB / 477.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1441, allocations: 7.938 kB / 477.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.1444, allocations: 95.91 kB / 477.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008091/0.1452, allocations: 0.6024 MB / 478.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.1455, allocations: 183.9 kB / 478.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.1457, allocations: 90.48 kB / 478.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.1458, allocations: 8 kB / 478.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.1462, allocations: 433.1 kB / 478.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.1462, allocations: 0 / 478.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008266/0.1471, allocations: 454.4 kB / 479.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.1472, allocations: 217.6 kB / 479.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003361/0.1475, allocations: 316.9 kB / 479.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.1476, allocations: 33.7 kB / 479.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.1477, allocations: 132.7 kB / 480 MB, free: 5.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.434e-05/0.1478, allocations: 51.34 kB / 480.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.579e-05/0.1478, allocations: 37.7 kB / 480.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.148, allocations: 342.8 kB / 480.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.1481, allocations: 55.97 kB / 480.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.1483, allocations: 150.7 kB / 480.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.1487, allocations: 358.7 kB / 481 MB, free: 4.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1488, allocations: 4 kB / 481 MB, free: 4.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005714/0.1493, allocations: 358.6 kB / 481.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.461e-05/0.1494, allocations: 97.03 kB / 481.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.1494, allocations: 4 kB / 481.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.1495, allocations: 4 kB / 481.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.1496, allocations: 27.92 kB / 481.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.1496, allocations: 4.156 kB / 481.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.1497, allocations: 27.98 kB / 481.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.1498, allocations: 16 kB / 481.5 MB, free: 3.477 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.0002262/0.15, allocations: 261.5 kB / 481.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.15, allocations: 31.66 kB / 481.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.47e-05/0.1501, allocations: 29.7 kB / 481.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1501, allocations: 3.938 kB / 481.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1501, allocations: 0 / 481.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1501, allocations: 7.984 kB / 481.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.1504, allocations: 293.3 kB / 482.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1504, allocations: 0 / 482.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.009e-05/0.1505, allocations: 8 kB / 482.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.1505, allocations: 7.922 kB / 482.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.1505, allocations: 15.94 kB / 482.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1505, allocations: 0 / 482.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1505, allocations: 0 / 482.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006941/0.1512, allocations: 451.4 kB / 482.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.635e-05/0.1513, allocations: 104.8 kB / 482.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.1514, allocations: 8 kB / 482.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.1515, allocations: 23.98 kB / 482.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.516e-05/0.1516, allocations: 19.97 kB / 482.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.011e-05/0.1516, allocations: 16 kB / 482.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.1518, allocations: 236.4 kB / 483 MB, free: 1.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1519, allocations: 4 kB / 483 MB, free: 1.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.1522, allocations: 67.94 kB / 483.1 MB, free: 1.785 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.001005/0.1532, allocations: 425.4 kB / 483.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005735/0.1538, allocations: 397.9 kB / 483.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1538, allocations: 0 / 483.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.1542, allocations: 346.1 kB / 484.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1545, allocations: 56.38 kB / 484.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008099/0.1554, allocations: 0.497 MB / 484.8 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.1557, allocations: 0.7482 MB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.704e-05/0.1558, allocations: 37.78 kB / 485.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.342e-05/0.1559, allocations: 23.44 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1559, allocations: 0 / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Templates: time 0.007604/0.1635, allocations: 3.147 MB / 488.7 MB, free: 12.17 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