Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002112/0.002112, allocations: 109.7 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.002262/0.002262, 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.609/2.609, allocations: 222.9 MB / 241.8 MB, free: 13.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.00199, allocations: 47.89 kB / 300.6 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1658, allocations: 49.46 MB / 350.1 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.006107/0.172, allocations: 1.941 MB / 352 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00344/0.1755, allocations: 1.142 MB / 353.2 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.1757, allocations: 3.938 kB / 353.2 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005595/0.1764, allocations: 59.8 kB / 353.2 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005237/0.1769, allocations: 79.72 kB / 353.3 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.1785, allocations: 234.9 kB / 353.5 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004519/0.1789, allocations: 163.5 kB / 353.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.1791, allocations: 41.52 kB / 353.7 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000213/0.1794, allocations: 63.7 kB / 353.8 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.1796, allocations: 75.62 kB / 353.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.042e-05/0.1797, allocations: 4 kB / 353.9 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002601/0.1799, allocations: 59.95 kB / 353.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.1801, allocations: 43.84 kB / 354 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.1803, allocations: 87.39 kB / 354 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004215/0.1807, allocations: 179.9 kB / 354.2 MB, free: 448 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1808, allocations: 0 / 354.2 MB, free: 448 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1808, allocations: 0 / 354.2 MB, free: 448 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.1808, allocations: 4 kB / 354.2 MB, free: 444 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001277/0.1821, allocations: 0.535 MB / 354.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.1821, allocations: 12.03 kB / 354.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1823, allocations: 20.66 kB / 354.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.1829, allocations: 291.5 kB / 355.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.1829, allocations: 4.375 kB / 355.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.183, allocations: 12.12 kB / 355.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.1836, allocations: 184.2 kB / 355.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1836, allocations: 0 / 355.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.1837, allocations: 4 kB / 355.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.1837, allocations: 0 / 355.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002284/0.184, allocations: 43.92 kB / 355.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009655/0.1849, allocations: 474.5 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000516/0.1855, allocations: 142.5 kB / 355.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.1857, allocations: 55.42 kB / 356 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.1858, allocations: 11.94 kB / 356 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003741/0.1862, allocations: 89.09 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.805e-06/0.1862, allocations: 3.938 kB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007585/0.1869, allocations: 169.5 kB / 356.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/0.1871, allocations: 192 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005959/0.1877, allocations: 334.6 kB / 356.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.1878, allocations: 29.64 kB / 356.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.188, allocations: 124.4 kB / 356.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.833e-05/0.188, allocations: 23.73 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-05/0.1881, allocations: 33.7 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.1884, allocations: 338.8 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.1885, allocations: 23.98 kB / 357.3 MB, free: 13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.1887, allocations: 91.7 kB / 357.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.1891, allocations: 97.08 kB / 357.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1891, allocations: 4 kB / 357.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004747/0.1896, allocations: 137.2 kB / 357.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.1896, allocations: 12.09 kB / 357.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1896, allocations: 4.312 kB / 357.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.1897, allocations: 0 / 357.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.1899, allocations: 31.92 kB / 357.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.1899, allocations: 0 / 357.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.1901, allocations: 11.94 kB / 357.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.1901, allocations: 4 kB / 357.7 MB, free: 12.56 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0002548/0.1904, allocations: 157.8 kB / 357.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.1906, allocations: 69.42 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.766e-05/0.1907, allocations: 29.75 kB / 358 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.1907, allocations: 3.984 kB / 358 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.1907, allocations: 7.984 kB / 358 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.1907, allocations: 3.938 kB / 358 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.1911, allocations: 249.5 kB / 358.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.1912, allocations: 4 kB / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.1913, allocations: 19.92 kB / 358.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.1913, allocations: 0 / 358.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.1913, allocations: 4 kB / 358.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1913, allocations: 4.062 kB / 358.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1914, allocations: 0 / 358.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004775/0.1918, allocations: 191.2 kB / 358.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.192, allocations: 108.9 kB / 358.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/0.1921, allocations: 7.984 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.1922, allocations: 8 kB / 358.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.967e-05/0.1923, allocations: 15.92 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.1924, allocations: 4 kB / 358.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004195/0.1928, allocations: 241.9 kB / 358.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1928, allocations: 3.938 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005501/0.1934, allocations: 43.89 kB / 358.9 MB, free: 11.3 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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.001744/0.1952, allocations: 425.2 kB / 359.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004189/0.1956, allocations: 87.77 kB / 359.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1956, allocations: 0 / 359.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.1958, allocations: 31.98 kB / 359.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007833/0.1966, allocations: 72.42 kB / 359.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.1979, allocations: 454 kB / 359.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005452/0.1984, allocations: 0.744 MB / 360.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1986, allocations: 23.42 kB / 360.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1986, allocations: 4 kB / 360.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Templates: time 0.01003/0.2086, allocations: 2.972 MB / 363.6 MB, free: 6.609 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches