Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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) 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001873/0.001874, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.089/2.089, allocations: 222.9 MB / 241.8 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 51.17 kB / 300.6 MB, free: 6.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1801, allocations: 49.44 MB / 350.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.004733/0.1849, allocations: 1.496 MB / 351.6 MB, free: 3.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004014/0.1853, allocations: 99.69 kB / 351.6 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.431e-05/0.1854, allocations: 0 / 351.6 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.018e-05/0.1855, allocations: 3.938 kB / 351.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.054e-05/0.1856, allocations: 0 / 351.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.186, allocations: 27.91 kB / 351.7 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.685e-05/0.1861, allocations: 12 kB / 351.7 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.1862, allocations: 19.92 kB / 351.7 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.226e-05/0.1863, allocations: 7.938 kB / 351.7 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.848e-05/0.1864, allocations: 15.92 kB / 351.7 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.1864, allocations: 4 kB / 351.7 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.356e-05/0.1864, allocations: 0 / 351.7 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.311e-05/0.1865, allocations: 7.922 kB / 351.7 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.986e-05/0.1865, allocations: 11.94 kB / 351.8 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.1867, allocations: 15.97 kB / 351.8 MB, free: 3.086 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1867, allocations: 0 / 351.8 MB, free: 3.086 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1867, allocations: 0 / 351.8 MB, free: 3.086 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.1867, allocations: 4 kB / 351.8 MB, free: 3.082 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006752/0.1874, allocations: 351.7 kB / 352.1 MB, free: 2.688 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.646e-05/0.1875, allocations: 8.031 kB / 352.1 MB, free: 2.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.607e-05/0.1876, allocations: 8.844 kB / 352.1 MB, free: 2.672 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.1879, allocations: 168.4 kB / 352.3 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.1879, allocations: 384 / 352.3 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.1879, allocations: 8.375 kB / 352.3 MB, free: 2.461 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.1885, allocations: 115.8 kB / 352.4 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.1885, allocations: 192 / 352.4 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.1885, allocations: 3.938 kB / 352.4 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1886, allocations: 0 / 352.4 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.1887, allocations: 23.92 kB / 352.4 MB, free: 2.309 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002356/0.1889, allocations: 157.7 kB / 352.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.1892, allocations: 54.59 kB / 352.7 MB, free: 2.043 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.1893, allocations: 24.83 kB / 352.7 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.1894, allocations: 0 / 352.7 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/0.1894, allocations: 34.55 kB / 352.7 MB, free: 1.973 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 3.377e-06/0.1894, allocations: 0 / 352.7 MB, free: 1.973 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003503/0.1898, allocations: 81.48 kB / 352.8 MB, free: 1.887 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.1899, allocations: 59.41 kB / 352.9 MB, free: 1.816 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.19, allocations: 105.8 kB / 353 MB, free: 1.703 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.19, allocations: 25.7 kB / 353 MB, free: 1.672 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.1901, allocations: 80.14 kB / 353.1 MB, free: 1.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.1901, allocations: 8 kB / 353.1 MB, free: 1.582 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.1902, allocations: 9.719 kB / 353.1 MB, free: 1.566 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1904, allocations: 322.8 kB / 353.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.568e-05/0.1904, allocations: 0 / 353.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.923e-05/0.1905, allocations: 27.44 kB / 353.4 MB, free: 1.203 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.798e-05/0.1905, allocations: 35.38 kB / 353.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1906, allocations: 256 / 353.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001273/0.1907, allocations: 65.47 kB / 353.5 MB, free: 1.086 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.1907, allocations: 4 kB / 353.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.1907, allocations: 11.94 kB / 353.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.1908, allocations: 0 / 353.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.021e-05/0.1909, allocations: 12 kB / 353.5 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.1909, allocations: 3.984 kB / 353.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.229e-05/0.1909, allocations: 0 / 353.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.191, allocations: 4 kB / 353.6 MB, free: 1.051 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001426/0.1911, allocations: 113.9 kB / 353.7 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.1913, allocations: 61.62 kB / 353.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.023e-05/0.1914, allocations: 11.83 kB / 353.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1914, allocations: 0 / 353.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.1914, allocations: 0 / 353.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1914, allocations: 4.328 kB / 353.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.1916, allocations: 153.7 kB / 353.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1916, allocations: 0 / 353.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.592e-05/0.1917, allocations: 7.984 kB / 353.9 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1917, allocations: 4 kB / 353.9 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/0.1918, allocations: 15.92 kB / 353.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1918, allocations: 0 / 353.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1918, allocations: 0 / 353.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002108/0.192, allocations: 88.95 kB / 354 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.1921, allocations: 77.11 kB / 354.1 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.1921, allocations: 3.938 kB / 354.1 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.043e-05/0.1921, allocations: 11.94 kB / 354.1 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.066e-05/0.1922, allocations: 0 / 354.1 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.391e-06/0.1922, allocations: 3.938 kB / 354.1 MB, free: 404 kB / 286.1 MB Notification: Performance of sorting global known variables: time 6.756e-05/0.1923, allocations: 87.27 kB / 354.2 MB, free: 316 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1923, allocations: 4 kB / 354.2 MB, free: 312 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.1927, allocations: 0 / 354.2 MB, free: 312 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000167/0.1928, allocations: 103.4 kB / 354.3 MB, free: 200 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.193, allocations: 28.11 kB / 354.3 MB, free: 172 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.193, allocations: 0 / 354.3 MB, free: 172 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.31e-07/0.193, allocations: 0 / 354.3 MB, free: 172 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003801/0.1934, allocations: 26.59 kB / 354.3 MB, free: 148 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004949/0.1939, allocations: 145.6 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.1943, allocations: 0.6809 MB / 355.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.1944, allocations: 11.5 kB / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1944, allocations: 4 kB / 355.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of Templates: time 0.002887/0.1973, allocations: 0.5467 MB / 355.7 MB, free: 14.7 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches