Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.BackSample") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 183.1 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 221.4 MB / 229.9 MB, free: 3.086 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008905/0.0008905, allocations: 92.84 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.013e-06/7.113e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.1987, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08031/0.279, allocations: 76.43 MB / 463.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.2793, allocations: 84.48 kB / 463.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004019/0.2833, allocations: 1.295 MB / 464.7 MB, free: 9.039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.2833, allocations: 0 / 464.7 MB, free: 9.039 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000322/0.2837, allocations: 369.9 kB / 465.1 MB, free: 8.637 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.2837, allocations: 11.97 kB / 465.1 MB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.356e-05/0.2837, allocations: 15.81 kB / 465.1 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.2839, allocations: 196.5 kB / 465.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-06/0.2839, allocations: 0 / 465.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.284, allocations: 4 kB / 465.3 MB, free: 8.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.251e-05/0.284, allocations: 23.98 kB / 465.3 MB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.2842, allocations: 122.6 kB / 465.5 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.2843, allocations: 0 / 465.5 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.2843, allocations: 4 kB / 465.5 MB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2843, allocations: 0 / 465.5 MB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003122/0.2846, allocations: 272 kB / 465.7 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.159e-05/0.2847, allocations: 87.2 kB / 465.8 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.784e-05/0.2848, allocations: 43.5 kB / 465.9 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.2848, allocations: 7.922 kB / 465.9 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.829e-05/0.2848, allocations: 34.56 kB / 465.9 MB, free: 7.664 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.2848, allocations: 0 / 465.9 MB, free: 7.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001648/0.285, allocations: 65.53 kB / 466 MB, free: 7.594 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.2851, allocations: 136.6 kB / 466.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.2852, allocations: 132.3 kB / 466.2 MB, free: 7.289 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.2852, allocations: 29.64 kB / 466.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.502e-05/0.2852, allocations: 90.3 kB / 466.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.382e-05/0.2853, allocations: 7.891 kB / 466.4 MB, free: 7.152 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-06/0.2853, allocations: 0 / 466.4 MB, free: 7.152 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.2854, allocations: 322.8 kB / 466.7 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.489e-05/0.2854, allocations: 0 / 466.7 MB, free: 6.828 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.262e-05/0.2855, allocations: 49.14 kB / 466.7 MB, free: 6.762 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.541e-05/0.2855, allocations: 12 kB / 466.7 MB, free: 6.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2855, allocations: 0 / 466.7 MB, free: 6.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001004/0.2856, allocations: 65.47 kB / 466.8 MB, free: 6.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.2856, allocations: 11.28 kB / 466.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2856, allocations: 0 / 466.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.935e-06/0.2856, allocations: 0 / 466.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.362e-05/0.2857, allocations: 15.98 kB / 466.8 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.2857, allocations: 4.188 kB / 466.8 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.346e-05/0.2858, allocations: 11.91 kB / 466.8 MB, free: 6.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.2858, allocations: 10.31 kB / 466.8 MB, free: 6.633 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 6.291e-05/0.2859, allocations: 111.6 kB / 467 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/0.286, allocations: 61.53 kB / 467 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.714e-05/0.286, allocations: 19.64 kB / 467 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.286, allocations: 0 / 467 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.286, allocations: 4.094 kB / 467 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2861, allocations: 4.75 kB / 467 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.2862, allocations: 150.2 kB / 467.2 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2862, allocations: 3.984 kB / 467.2 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.769e-05/0.2863, allocations: 12 kB / 467.2 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.2863, allocations: 3.984 kB / 467.2 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.2863, allocations: 7.844 kB / 467.2 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2863, allocations: 4 kB / 467.2 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.2863, allocations: 3.984 kB / 467.2 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001581/0.2865, allocations: 221.3 kB / 467.4 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.518e-05/0.2866, allocations: 93 kB / 467.5 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.2866, allocations: 4.875 kB / 467.5 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.553e-05/0.2867, allocations: 4 kB / 467.5 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.2867, allocations: 7.984 kB / 467.5 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.2867, allocations: 4 kB / 467.5 MB, free: 5.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.399e-05/0.2868, allocations: 110.1 kB / 467.7 MB, free: 5.715 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000229/0.287, allocations: 7.906 kB / 467.7 MB, free: 5.707 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 9.581e-05/0.2871, allocations: 95.25 kB / 467.8 MB, free: 5.602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.847e-05/0.2872, allocations: 35.94 kB / 467.8 MB, free: 5.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.2872, allocations: 0 / 467.8 MB, free: 5.566 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.414e-05/0.2873, allocations: 11.92 kB / 467.8 MB, free: 5.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.2875, allocations: 39.83 kB / 467.8 MB, free: 5.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002646/0.2878, allocations: 119.8 kB / 468 MB, free: 5.371 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.2881, allocations: 0.723 MB / 468.7 MB, free: 4.621 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2881, allocations: 0 / 468.7 MB, free: 4.621 MB / 346.7 MB Notification: Performance of Templates: time 0.002479/0.2906, allocations: 0.7408 MB / 469.4 MB, free: 3.902 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time