Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.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.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 104.2 kB / 17.16 MB, free: 6.32 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.002329/0.002329, allocations: 190.9 kB / 18.08 MB, free: 5.41 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.112/2.112, allocations: 222.9 MB / 241.8 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002014, allocations: 42.81 kB / 300.6 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1831, allocations: 49.45 MB / 350.1 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.006608/0.1898, allocations: 1.956 MB / 352 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003518/0.1934, allocations: 1.146 MB / 353.2 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003055/0.1938, allocations: 7.938 kB / 353.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006012/0.1945, allocations: 55.8 kB / 353.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000431/0.1949, allocations: 87.7 kB / 353.3 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.1963, allocations: 228.3 kB / 353.5 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.1967, allocations: 171.5 kB / 353.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.1969, allocations: 25.56 kB / 353.7 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.1972, allocations: 75.56 kB / 353.8 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.1974, allocations: 91.61 kB / 353.9 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.902e-05/0.1974, allocations: 4 kB / 353.9 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000275/0.1977, allocations: 47.98 kB / 353.9 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.1979, allocations: 51.81 kB / 354 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.198, allocations: 75.42 kB / 354.1 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1985, allocations: 179.9 kB / 354.2 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.1985, allocations: 0 / 354.2 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1985, allocations: 0 / 354.2 MB, free: 420 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.1985, allocations: 4 kB / 354.2 MB, free: 416 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.001264/0.1998, allocations: 0.5428 MB / 354.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/0.1999, allocations: 12.03 kB / 354.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.2, allocations: 24.66 kB / 354.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006308/0.2007, allocations: 291.5 kB / 355.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.2007, allocations: 4.375 kB / 355.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.2008, allocations: 12.12 kB / 355.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006677/0.2015, allocations: 184.3 kB / 355.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.2015, allocations: 0 / 355.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.2015, allocations: 0 / 355.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.2016, allocations: 7.938 kB / 355.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002289/0.2018, allocations: 47.89 kB / 355.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009924/0.2028, allocations: 395.2 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.2033, allocations: 146.5 kB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.2035, allocations: 59.42 kB / 355.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.2036, allocations: 7.922 kB / 356 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003723/0.204, allocations: 79.39 kB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 3.256e-06/0.204, allocations: 0 / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007371/0.2047, allocations: 165.2 kB / 356.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/0.2049, allocations: 187.9 kB / 356.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006564/0.2056, allocations: 339.1 kB / 356.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.81e-05/0.2057, allocations: 25.7 kB / 356.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.2058, allocations: 140.2 kB / 356.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.108e-05/0.2059, allocations: 19.75 kB / 356.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.206, allocations: 33.7 kB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002372/0.2063, allocations: 342.7 kB / 357.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.2064, allocations: 23.98 kB / 357.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.2067, allocations: 96.58 kB / 357.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.2071, allocations: 109.9 kB / 357.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.2071, allocations: 0 / 357.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005007/0.2076, allocations: 133.3 kB / 357.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.2076, allocations: 8 kB / 357.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.2077, allocations: 3.984 kB / 357.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.924e-05/0.2077, allocations: 8.188 kB / 357.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.208, allocations: 19.98 kB / 357.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.16e-05/0.208, allocations: 7.938 kB / 357.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.2082, allocations: 11.92 kB / 357.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.2082, allocations: 8 kB / 357.7 MB, free: 12.58 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,table.y,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.0002589/0.2085, allocations: 146.1 kB / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.2087, allocations: 85.34 kB / 357.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.2088, allocations: 33.8 kB / 357.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2089, allocations: 0 / 357.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.2089, allocations: 4 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2089, allocations: 3.938 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003902/0.2093, allocations: 249.6 kB / 358.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2093, allocations: 0 / 358.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.2095, allocations: 23.92 kB / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2095, allocations: 0 / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.2095, allocations: 4 kB / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2095, allocations: 0 / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2095, allocations: 0 / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000478/0.21, allocations: 195.1 kB / 358.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.2103, allocations: 116.8 kB / 358.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.591e-05/0.2103, allocations: 0 / 358.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.2105, allocations: 11.98 kB / 358.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.007e-05/0.2106, allocations: 8 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.179e-05/0.2106, allocations: 11.92 kB / 358.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004128/0.211, allocations: 245.9 kB / 358.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2111, allocations: 0 / 358.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005229/0.2116, allocations: 36 kB / 358.8 MB, free: 11.32 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,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.001746/0.2133, allocations: 433.2 kB / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004431/0.2138, allocations: 87.83 kB / 359.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.2138, allocations: 4 kB / 359.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.214, allocations: 27.98 kB / 359.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007849/0.2148, allocations: 79.73 kB / 359.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.216, allocations: 470 kB / 359.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005359/0.2166, allocations: 0.7478 MB / 360.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.64e-05/0.2167, allocations: 19.44 kB / 360.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2167, allocations: 0 / 360.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Templates: time 0.009262/0.226, allocations: 3.07 MB / 363.7 MB, free: 6.512 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches