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.0008195/0.0008195, allocations: 102.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008691/0.0008691, allocations: 186.5 kB / 16.92 MB, free: 6.918 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.985/1.985, allocations: 205.4 MB / 223.1 MB, free: 5.754 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.5735/0.5735, allocations: 43.58 MB / 315 MB, free: 8.723 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.0006312/0.0006312, allocations: 16 kB / 384.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1803, allocations: 58.88 MB / 443.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002993/0.1833, allocations: 1.592 MB / 445 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.1857, allocations: 0.9327 MB / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.1859, allocations: 3.938 kB / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008492/0.1868, allocations: 175.6 kB / 446.2 MB, free: 9.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004418/0.1872, allocations: 119.6 kB / 446.3 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006455/0.1879, allocations: 147.8 kB / 446.4 MB, free: 9.695 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004919/0.1884, allocations: 255.3 kB / 446.7 MB, free: 9.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.1886, allocations: 37.66 kB / 446.7 MB, free: 9.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.1888, allocations: 91.67 kB / 446.8 MB, free: 9.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.1891, allocations: 111.5 kB / 446.9 MB, free: 9.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.1891, allocations: 8 kB / 446.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002026/0.1893, allocations: 43.98 kB / 446.9 MB, free: 9.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.1894, allocations: 63.75 kB / 447 MB, free: 9.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.1896, allocations: 125.1 kB / 447.1 MB, free: 8.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005551/0.1902, allocations: 263.3 kB / 447.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1902, allocations: 0 / 447.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1902, allocations: 0 / 447.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.1902, allocations: 4 kB / 447.4 MB, free: 8.707 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.00161/0.1919, allocations: 0.6145 MB / 448 MB, free: 8.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.751e-05/0.1919, allocations: 8.031 kB / 448 MB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.1921, allocations: 32.66 kB / 448 MB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006426/0.1928, allocations: 286.6 kB / 448.3 MB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.1929, allocations: 89.67 kB / 448.4 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.53e-05/0.193, allocations: 19.94 kB / 448.4 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.1935, allocations: 153 kB / 448.6 MB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.1935, allocations: 3.938 kB / 448.6 MB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.1936, allocations: 12 kB / 448.6 MB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1936, allocations: 0 / 448.6 MB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.1939, allocations: 95.91 kB / 448.7 MB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.1952, allocations: 0.618 MB / 449.3 MB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.1957, allocations: 175.9 kB / 449.5 MB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002044/0.1959, allocations: 94.55 kB / 449.6 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.223e-05/0.196, allocations: 0 / 449.6 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005661/0.1965, allocations: 437.1 kB / 450 MB, free: 5.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.744e-06/0.1966, allocations: 0 / 450 MB, free: 5.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009885/0.1975, allocations: 450.2 kB / 450.4 MB, free: 5.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/0.1978, allocations: 225.6 kB / 450.7 MB, free: 5.047 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004482/0.1982, allocations: 316.9 kB / 451 MB, free: 4.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.302e-05/0.1983, allocations: 33.7 kB / 451 MB, free: 4.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.1984, allocations: 136.6 kB / 451.1 MB, free: 4.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.102e-05/0.1985, allocations: 51.36 kB / 451.2 MB, free: 4.504 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.1986, allocations: 29.7 kB / 451.2 MB, free: 4.469 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.1988, allocations: 338.8 kB / 451.5 MB, free: 4.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.199, allocations: 63.97 kB / 451.6 MB, free: 4.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.1992, allocations: 142.2 kB / 451.7 MB, free: 3.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005093/0.1998, allocations: 370.5 kB / 452.1 MB, free: 3.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.1998, allocations: 0 / 452.1 MB, free: 3.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005771/0.2004, allocations: 342.6 kB / 452.4 MB, free: 3.102 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.885e-05/0.2005, allocations: 101.2 kB / 452.5 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.2005, allocations: 4 kB / 452.5 MB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.2005, allocations: 4 kB / 452.6 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2007, allocations: 23.92 kB / 452.6 MB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.2007, allocations: 4 kB / 452.6 MB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.2008, allocations: 36.14 kB / 452.6 MB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.2009, allocations: 8 kB / 452.6 MB, free: 2.906 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.0002755/0.2012, allocations: 273.4 kB / 452.9 MB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.023e-05/0.2012, allocations: 39.64 kB / 452.9 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.308e-05/0.2013, allocations: 21.72 kB / 452.9 MB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.2013, allocations: 4 kB / 453 MB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.2013, allocations: 0 / 453 MB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.2013, allocations: 3.984 kB / 453 MB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003249/0.2017, allocations: 285.5 kB / 453.2 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2017, allocations: 0 / 453.2 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.275e-05/0.2017, allocations: 7.984 kB / 453.2 MB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.2017, allocations: 3.938 kB / 453.2 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.2018, allocations: 12 kB / 453.3 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.2018, allocations: 7.938 kB / 453.3 MB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.2018, allocations: 3.938 kB / 453.3 MB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006945/0.2025, allocations: 443.4 kB / 453.7 MB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.2026, allocations: 108.8 kB / 453.8 MB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.882e-05/0.2027, allocations: 12 kB / 453.8 MB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.2028, allocations: 19.98 kB / 453.8 MB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.2029, allocations: 19.97 kB / 453.9 MB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.203, allocations: 16 kB / 453.9 MB, free: 1.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.2033, allocations: 232.4 kB / 454.1 MB, free: 1.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2033, allocations: 0 / 454.1 MB, free: 1.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004318/0.2038, allocations: 67.94 kB / 454.2 MB, free: 1.215 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.001366/0.2051, allocations: 451 kB / 454.6 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007489/0.2059, allocations: 390.2 kB / 455 MB, free: 388 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.2059, allocations: 4.125 kB / 455 MB, free: 384 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.2064, allocations: 346.1 kB / 455.3 MB, free: 0 / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.268/0.4745, allocations: 46.69 kB / 455.4 MB, free: 46.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000996/0.4755, allocations: 0.493 MB / 455.9 MB, free: 46.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.4757, allocations: 0.7498 MB / 456.6 MB, free: 45.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.4758, allocations: 28.92 kB / 456.6 MB, free: 45.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.424e-05/0.4759, allocations: 22.31 kB / 456.7 MB, free: 45.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4759, allocations: 0 / 456.7 MB, free: 45.55 MB / 382.1 MB Notification: Performance of Templates: time 0.006765/0.4827, allocations: 3.14 MB / 459.8 MB, free: 45.39 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