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.001042/0.001042, allocations: 96.78 kB / 15.7 MB, free: 468 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.001378/0.001378, allocations: 169.4 kB / 16.58 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.4 MB / 222.8 MB, free: 5.594 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.5477/0.5477, allocations: 43.58 MB / 314.6 MB, free: 8.77 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.0006342/0.0006344, allocations: 12 kB / 383.9 MB, free: 7.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1748, allocations: 58.86 MB / 442.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002636/0.1775, allocations: 1.557 MB / 444.4 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.179, allocations: 0.8903 MB / 445.3 MB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.1791, allocations: 0 / 445.3 MB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006861/0.1798, allocations: 171.6 kB / 445.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.1801, allocations: 103.6 kB / 445.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004128/0.1806, allocations: 147.8 kB / 445.7 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1809, allocations: 231.3 kB / 445.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.181, allocations: 37.64 kB / 445.9 MB, free: 9.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.1812, allocations: 99.66 kB / 446 MB, free: 9.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.1813, allocations: 107.5 kB / 446.1 MB, free: 9.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.1814, allocations: 8 kB / 446.1 MB, free: 9.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.1815, allocations: 47.98 kB / 446.2 MB, free: 9.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.083e-05/0.1816, allocations: 51.81 kB / 446.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.208e-05/0.1817, allocations: 73.56 kB / 446.3 MB, free: 9.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002787/0.182, allocations: 199.8 kB / 446.5 MB, free: 9.301 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.182, allocations: 0 / 446.5 MB, free: 9.301 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.182, allocations: 0 / 446.5 MB, free: 9.301 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.182, allocations: 0 / 446.5 MB, free: 9.301 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.001015/0.183, allocations: 0.6298 MB / 447.1 MB, free: 8.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.1831, allocations: 8.031 kB / 447.1 MB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.004e-05/0.1832, allocations: 27.72 kB / 447.2 MB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.1836, allocations: 269.6 kB / 447.4 MB, free: 8.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.1837, allocations: 97.02 kB / 447.5 MB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.1837, allocations: 19.94 kB / 447.5 MB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003305/0.1841, allocations: 161.5 kB / 447.7 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1841, allocations: 0 / 447.7 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.1841, allocations: 11.94 kB / 447.7 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.1841, allocations: 0 / 447.7 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.1844, allocations: 95.88 kB / 447.8 MB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008656/0.1853, allocations: 0.6064 MB / 448.4 MB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.1856, allocations: 179.9 kB / 448.6 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1858, allocations: 98.48 kB / 448.7 MB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.1858, allocations: 0 / 448.7 MB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004668/0.1863, allocations: 433.2 kB / 449.1 MB, free: 6.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.1863, allocations: 0 / 449.1 MB, free: 6.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008521/0.1872, allocations: 450.3 kB / 449.5 MB, free: 5.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/0.1873, allocations: 217.6 kB / 449.8 MB, free: 5.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003617/0.1877, allocations: 316.9 kB / 450.1 MB, free: 5.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.1878, allocations: 33.7 kB / 450.1 MB, free: 5.293 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.1879, allocations: 136.6 kB / 450.2 MB, free: 5.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.732e-05/0.1879, allocations: 51.34 kB / 450.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.188, allocations: 4 kB / 450.3 MB, free: 5.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1881, allocations: 342.8 kB / 450.6 MB, free: 4.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.1883, allocations: 60.16 kB / 450.7 MB, free: 4.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.1885, allocations: 150.5 kB / 450.8 MB, free: 4.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.1887, allocations: 149.8 kB / 451 MB, free: 4.352 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1887, allocations: 32 / 451 MB, free: 4.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005015/0.1892, allocations: 358.1 kB / 451.3 MB, free: 3.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.999e-05/0.1893, allocations: 97.09 kB / 451.4 MB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1893, allocations: 3.984 kB / 451.4 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.1894, allocations: 4 kB / 451.4 MB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1895, allocations: 16.22 kB / 451.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.1895, allocations: 11.94 kB / 451.5 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.1896, allocations: 31.83 kB / 451.5 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.1897, allocations: 8 kB / 451.5 MB, free: 3.789 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,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002628/0.1899, allocations: 265.7 kB / 451.8 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.837e-05/0.19, allocations: 39.61 kB / 451.8 MB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.18e-05/0.1901, allocations: 29.7 kB / 451.8 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1901, allocations: 4 kB / 451.8 MB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.1901, allocations: 0 / 451.8 MB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1901, allocations: 0 / 451.8 MB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/0.1904, allocations: 297.3 kB / 452.1 MB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1904, allocations: 0 / 452.1 MB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.567e-05/0.1904, allocations: 4 kB / 452.1 MB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1904, allocations: 7.891 kB / 452.1 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.1905, allocations: 15.98 kB / 452.1 MB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1905, allocations: 4 kB / 452.1 MB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1905, allocations: 0 / 452.1 MB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006446/0.1911, allocations: 439.5 kB / 452.6 MB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.1912, allocations: 104.8 kB / 452.7 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.441e-05/0.1913, allocations: 15.95 kB / 452.7 MB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.1914, allocations: 27.98 kB / 452.7 MB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-05/0.1915, allocations: 15.98 kB / 452.7 MB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.1915, allocations: 11.98 kB / 452.8 MB, free: 2.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002438/0.1918, allocations: 232.4 kB / 453 MB, free: 2.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1918, allocations: 0 / 453 MB, free: 2.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.1921, allocations: 71.84 kB / 453 MB, free: 2.094 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001088/0.1932, allocations: 438.9 kB / 453.5 MB, free: 1.695 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005518/0.1938, allocations: 389.9 kB / 453.9 MB, free: 1.277 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1938, allocations: 0 / 453.9 MB, free: 1.277 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003656/0.1942, allocations: 342.6 kB / 454.2 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.1945, allocations: 64.28 kB / 454.3 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008703/0.1954, allocations: 484.6 kB / 454.7 MB, free: 348 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2439/0.4394, allocations: 0.7432 MB / 455.5 MB, free: 46.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002/0.4396, allocations: 29.92 kB / 455.5 MB, free: 46.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.02e-05/0.4397, allocations: 23.25 kB / 455.5 MB, free: 46.02 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4397, allocations: 0.5938 kB / 455.5 MB, free: 46.02 MB / 382.1 MB Notification: Performance of Templates: time 0.006723/0.4464, allocations: 3.043 MB / 458.6 MB, free: 45.87 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