Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00192/0.001921, allocations: 110.2 kB / 17.17 MB, free: 6.344 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.002423/0.002423, allocations: 194.9 kB / 18.08 MB, free: 5.441 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.135/2.135, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 47.39 kB / 300.6 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1639, allocations: 49.45 MB / 350.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.006563/0.1706, allocations: 1.964 MB / 352 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003381/0.174, allocations: 1.06 MB / 353.1 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002949/0.1744, allocations: 7.938 kB / 353.1 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.1755, allocations: 139.7 kB / 353.2 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005847/0.1762, allocations: 107.7 kB / 353.3 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.1774, allocations: 186.9 kB / 353.5 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004592/0.1779, allocations: 187.4 kB / 353.7 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.1781, allocations: 37.66 kB / 353.7 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.1783, allocations: 79.62 kB / 353.8 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.1786, allocations: 71.58 kB / 353.9 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.183e-05/0.1786, allocations: 4 kB / 353.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.1789, allocations: 51.97 kB / 353.9 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.1791, allocations: 35.84 kB / 354 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.1792, allocations: 71.53 kB / 354 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.1796, allocations: 159.9 kB / 354.2 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.221e-05/0.1797, allocations: 3.984 kB / 354.2 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1797, allocations: 0 / 354.2 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1797, allocations: 0 / 354.2 MB, free: 0.6953 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001609/0.1813, allocations: 0.5157 MB / 354.7 MB, free: 128 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.32e-05/0.1814, allocations: 8.031 kB / 354.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.1816, allocations: 24.66 kB / 354.7 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006648/0.1823, allocations: 266.8 kB / 355 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.1823, allocations: 12.38 kB / 355 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.1824, allocations: 8.125 kB / 355 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/0.183, allocations: 171.6 kB / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.183, allocations: 0 / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.1831, allocations: 0 / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.1831, allocations: 4 kB / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.1833, allocations: 43.91 kB / 355.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009244/0.1843, allocations: 379.1 kB / 355.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005227/0.1848, allocations: 134.5 kB / 355.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.185, allocations: 55.36 kB / 355.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.863e-05/0.1851, allocations: 4 kB / 355.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002885/0.1854, allocations: 79.33 kB / 355.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.985e-06/0.1854, allocations: 0 / 355.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007244/0.1862, allocations: 161.2 kB / 356 MB, free: 14.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/0.1863, allocations: 158.6 kB / 356.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005507/0.1869, allocations: 273 kB / 356.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.187, allocations: 29.7 kB / 356.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.1871, allocations: 116.4 kB / 356.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.432e-05/0.1872, allocations: 19.8 kB / 356.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.1873, allocations: 45.55 kB / 356.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002238/0.1876, allocations: 330.8 kB / 357 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.1877, allocations: 19.98 kB / 357 MB, free: 13.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.1879, allocations: 87.66 kB / 357.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003154/0.1883, allocations: 93.97 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1883, allocations: 0 / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004414/0.1887, allocations: 129.3 kB / 357.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.1888, allocations: 8 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.1888, allocations: 0 / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.74e-05/0.1889, allocations: 8.188 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.189, allocations: 12.3 kB / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.1891, allocations: 7.938 kB / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.1893, allocations: 15.88 kB / 357.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.1893, allocations: 11.98 kB / 357.4 MB, free: 13.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,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.0002713/0.1896, allocations: 142.7 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.1898, allocations: 73.36 kB / 357.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.557e-05/0.1899, allocations: 25.8 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.1899, allocations: 4 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.669e-06/0.19, allocations: 0 / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.19, allocations: 7.922 kB / 357.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004192/0.1904, allocations: 229.7 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1904, allocations: 0 / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.925e-05/0.1905, allocations: 15.92 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/0.1905, allocations: 3.984 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.1906, allocations: 4 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.1906, allocations: 3.938 kB / 357.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.1906, allocations: 0 / 357.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005012/0.1911, allocations: 175.3 kB / 358 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.1913, allocations: 112.8 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.287e-05/0.1914, allocations: 3.938 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.1915, allocations: 7.984 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.1916, allocations: 12 kB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.848e-05/0.1917, allocations: 7.938 kB / 358.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003766/0.1921, allocations: 196.5 kB / 358.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1921, allocations: 0 / 358.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005448/0.1927, allocations: 31.98 kB / 358.4 MB, free: 12 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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.001758/0.1944, allocations: 422.8 kB / 358.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000437/0.1949, allocations: 79.84 kB / 358.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.1949, allocations: 0 / 358.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.1951, allocations: 27.98 kB / 358.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008364/0.1959, allocations: 76.31 kB / 359 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.1972, allocations: 413.6 kB / 359.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006569/0.1978, allocations: 0.7322 MB / 360.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.282e-05/0.1979, allocations: 23.42 kB / 360.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.362e-06/0.198, allocations: 0 / 360.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of Templates: time 0.009887/0.2079, allocations: 2.763 MB / 362.9 MB, free: 7.586 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches