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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_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_3.2.3_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006327/0.006327, allocations: 100 kB / 15.87 MB, free: 6.309 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.001472/0.001473, allocations: 195.3 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.1 MB / 222.6 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3785/0.3785, allocations: 43.5 MB / 313.5 MB, free: 8.285 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 59.91 kB / 382 MB, free: 8.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1544, allocations: 57.78 MB / 439.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004197/0.1587, allocations: 1.95 MB / 441.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.1604, allocations: 0.9599 MB / 442.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1605, allocations: 0 / 442.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006986/0.1612, allocations: 175.6 kB / 442.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.1615, allocations: 119.6 kB / 443 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.162, allocations: 147.8 kB / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003121/0.1623, allocations: 255.3 kB / 443.4 MB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.1625, allocations: 37.66 kB / 443.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.1627, allocations: 99.61 kB / 443.5 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.1629, allocations: 111.6 kB / 443.6 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.591e-05/0.163, allocations: 8 kB / 443.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.1632, allocations: 47.98 kB / 443.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.1633, allocations: 63.7 kB / 443.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.1634, allocations: 103.4 kB / 443.9 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.1638, allocations: 267.4 kB / 444.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.1638, allocations: 0 / 444.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1638, allocations: 4 kB / 444.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.1638, allocations: 0 / 444.1 MB, free: 10.28 MB / 382.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.001161/0.165, allocations: 0.6572 MB / 444.8 MB, free: 9.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1651, allocations: 12.03 kB / 444.8 MB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.795e-05/0.1651, allocations: 28.66 kB / 444.8 MB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.1655, allocations: 286.6 kB / 445.1 MB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.1656, allocations: 93.67 kB / 445.2 MB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.1656, allocations: 19.92 kB / 445.2 MB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003511/0.166, allocations: 157 kB / 445.4 MB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.166, allocations: 0 / 445.4 MB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.1661, allocations: 8 kB / 445.4 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1661, allocations: 0 / 445.4 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.1663, allocations: 95.88 kB / 445.5 MB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009719/0.1673, allocations: 0.5947 MB / 446.1 MB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.1677, allocations: 183.9 kB / 446.2 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.1678, allocations: 98.47 kB / 446.3 MB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.604e-05/0.1679, allocations: 8 kB / 446.3 MB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004625/0.1684, allocations: 429 kB / 446.8 MB, free: 7.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.202e-06/0.1684, allocations: 0 / 446.8 MB, free: 7.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008508/0.1692, allocations: 454.2 kB / 447.2 MB, free: 6.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.1694, allocations: 213.6 kB / 447.4 MB, free: 6.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003377/0.1697, allocations: 313 kB / 447.7 MB, free: 6.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.1698, allocations: 33.7 kB / 447.8 MB, free: 6.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1699, allocations: 140.6 kB / 447.9 MB, free: 6.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.734e-05/0.1699, allocations: 47.34 kB / 447.9 MB, free: 6.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/0.17, allocations: 49.7 kB / 448 MB, free: 6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1701, allocations: 346.8 kB / 448.3 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.1703, allocations: 55.97 kB / 448.4 MB, free: 5.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1705, allocations: 142.2 kB / 448.5 MB, free: 5.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.1709, allocations: 358.7 kB / 448.9 MB, free: 5.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1709, allocations: 0 / 448.9 MB, free: 5.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005253/0.1714, allocations: 346.6 kB / 449.2 MB, free: 4.641 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.83e-05/0.1715, allocations: 97.09 kB / 449.3 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1715, allocations: 7.984 kB / 449.3 MB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.1716, allocations: 4 kB / 449.3 MB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.1717, allocations: 20.16 kB / 449.3 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1717, allocations: 4 kB / 449.3 MB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1718, allocations: 31.77 kB / 449.4 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.1719, allocations: 12 kB / 449.4 MB, free: 4.449 MB / 382.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.000255/0.1721, allocations: 269.4 kB / 449.6 MB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.1722, allocations: 31.66 kB / 449.7 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.682e-05/0.1723, allocations: 29.7 kB / 449.7 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.1723, allocations: 7.938 kB / 449.7 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.1723, allocations: 0 / 449.7 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1723, allocations: 4 kB / 449.7 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.1726, allocations: 289.4 kB / 450 MB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1726, allocations: 0 / 450 MB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.01e-05/0.1726, allocations: 11.88 kB / 450 MB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1726, allocations: 4 kB / 450 MB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.1727, allocations: 11.98 kB / 450 MB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1727, allocations: 0 / 450 MB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1727, allocations: 0 / 450 MB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000604/0.1733, allocations: 439.6 kB / 450.5 MB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.1733, allocations: 104.8 kB / 450.6 MB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.1734, allocations: 12 kB / 450.6 MB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.1735, allocations: 15.98 kB / 450.6 MB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.437e-05/0.1736, allocations: 23.92 kB / 450.6 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.1737, allocations: 16 kB / 450.6 MB, free: 3.066 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.1739, allocations: 236.4 kB / 450.9 MB, free: 2.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1739, allocations: 0 / 450.9 MB, free: 2.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.1742, allocations: 63.94 kB / 450.9 MB, free: 2.77 MB / 382.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.00106/0.1753, allocations: 444.3 kB / 451.3 MB, free: 2.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005644/0.1758, allocations: 397.8 kB / 451.7 MB, free: 1.941 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1758, allocations: 0 / 451.7 MB, free: 1.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.1762, allocations: 338.1 kB / 452.1 MB, free: 1.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/0.1766, allocations: 52.34 kB / 452.1 MB, free: 1.523 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000811/0.1774, allocations: 0.4917 MB / 452.6 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.1778, allocations: 0.7598 MB / 453.4 MB, free: 216 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.1779, allocations: 33.83 kB / 453.4 MB, free: 184 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.178, allocations: 19.44 kB / 453.4 MB, free: 164 kB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.178, allocations: 0 / 453.4 MB, free: 164 kB / 382.1 MB Notification: Performance of Templates: time 0.2376/0.4156, allocations: 3.148 MB / 456.6 MB, free: 48.33 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile (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) 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches