Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") [: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 trunk/package.mo): time 0.00125/0.00125, allocations: 205.4 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009162/0.0009163, allocations: 94.92 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.577e-06/8.617e-06, allocations: 4 kB / 343.1 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09588, allocations: 51.48 MB / 394.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2304/0.3264, allocations: 77.07 MB / 471.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.3266, allocations: 77.78 kB / 471.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003984/0.3306, allocations: 1.292 MB / 473.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.3306, allocations: 0 / 473.1 MB, free: 13.92 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003104/0.331, allocations: 354.2 kB / 473.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.331, allocations: 8.031 kB / 473.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.3312, allocations: 27.28 kB / 473.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.3314, allocations: 197 kB / 473.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.3314, allocations: 4 kB / 473.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.3314, allocations: 0 / 473.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.278e-05/0.3315, allocations: 19.19 kB / 473.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.3317, allocations: 103.1 kB / 473.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3317, allocations: 0 / 473.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.3317, allocations: 4 kB / 473.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3318, allocations: 0 / 473.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002949/0.3321, allocations: 255.6 kB / 474 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.652e-05/0.3321, allocations: 61.86 kB / 474.1 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.334e-05/0.3322, allocations: 29.64 kB / 474.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3322, allocations: 0 / 474.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.3322, allocations: 42.5 kB / 474.1 MB, free: 12.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.3322, allocations: 0 / 474.1 MB, free: 12.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000158/0.3324, allocations: 60.22 kB / 474.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.3324, allocations: 106.2 kB / 474.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.3325, allocations: 130.5 kB / 474.4 MB, free: 12.44 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.157e-06/0.3325, allocations: 25.8 kB / 474.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/0.3326, allocations: 91.47 kB / 474.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.3326, allocations: 7.688 kB / 474.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-06/0.3326, allocations: 0 / 474.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.122e-05/0.3326, allocations: 314 kB / 474.9 MB, free: 12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.344e-05/0.3327, allocations: 10.97 kB / 474.9 MB, free: 12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.871e-05/0.3327, allocations: 26.5 kB / 474.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.179e-05/0.3327, allocations: 11.94 kB / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3327, allocations: 0 / 474.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.327e-05/0.3328, allocations: 56.77 kB / 475 MB, free: 11.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.3328, allocations: 5.875 kB / 475 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3328, allocations: 6.266 kB / 475 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3328, allocations: 0 / 475 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.961e-05/0.3329, allocations: 15.55 kB / 475 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3329, allocations: 0 / 475 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.491e-05/0.333, allocations: 7.906 kB / 475 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.333, allocations: 7.375 kB / 475 MB, free: 11.87 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 4.037e-05/0.3331, allocations: 101 kB / 475.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.3331, allocations: 49.05 kB / 475.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.51e-05/0.3332, allocations: 15 kB / 475.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3332, allocations: 4.062 kB / 475.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3332, allocations: 4 kB / 475.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3332, allocations: 3.906 kB / 475.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.3333, allocations: 150.9 kB / 475.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3333, allocations: 4 kB / 475.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.199e-05/0.3334, allocations: 11.98 kB / 475.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3334, allocations: 0 / 475.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.3334, allocations: 3.328 kB / 475.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3334, allocations: 4 kB / 475.4 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3334, allocations: 0 / 475.4 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.987e-05/0.3335, allocations: 194.8 kB / 475.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-05/0.3336, allocations: 91.72 kB / 475.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.3336, allocations: 3.328 kB / 475.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.572e-05/0.3337, allocations: 8 kB / 475.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.3337, allocations: 0 / 475.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.3337, allocations: 11.84 kB / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.991e-05/0.3338, allocations: 104.5 kB / 475.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.334, allocations: 4 kB / 475.8 MB, free: 11.08 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 (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 0.0001058/0.3341, allocations: 98.56 kB / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.88e-05/0.3342, allocations: 24.84 kB / 475.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3342, allocations: 5.562 kB / 475.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.29e-05/0.3343, allocations: 0 / 475.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.3345, allocations: 29.09 kB / 475.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002616/0.3348, allocations: 104.3 kB / 476 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.335, allocations: 0.7091 MB / 476.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.335, allocations: 4.25 kB / 476.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of Templates: time 0.002273/0.3373, allocations: 0.5761 MB / 477.3 MB, free: 9.793 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result: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