Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001777/0.001777, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.00105, allocations: 95.75 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.182e-06/6.332e-06, allocations: 0 / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09168/0.0917, allocations: 51.48 MB / 394.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2362/0.3279, allocations: 77.05 MB / 471.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001842/0.3281, allocations: 83.98 kB / 471.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003752/0.3319, allocations: 1.284 MB / 473 MB, free: 13.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.3319, allocations: 0 / 473 MB, free: 13.67 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.0002601/0.3322, allocations: 358.1 kB / 473.4 MB, free: 13.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.3322, allocations: 8.031 kB / 473.4 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.3324, allocations: 19.38 kB / 473.4 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.3325, allocations: 196.7 kB / 473.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.988e-06/0.3326, allocations: 0 / 473.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.3326, allocations: 4 kB / 473.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.542e-05/0.3327, allocations: 15.62 kB / 473.6 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.3328, allocations: 96.84 kB / 473.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3328, allocations: 0 / 473.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-06/0.3329, allocations: 0 / 473.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.3329, allocations: 4 kB / 473.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002613/0.3331, allocations: 250.6 kB / 474 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.3e-05/0.3332, allocations: 40.58 kB / 474 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.007e-05/0.3332, allocations: 13.59 kB / 474 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.3332, allocations: 8.062 kB / 474 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.086e-05/0.3332, allocations: 30.56 kB / 474.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.041e-06/0.3332, allocations: 0 / 474.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001316/0.3334, allocations: 52.17 kB / 474.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.3334, allocations: 81.8 kB / 474.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.737e-05/0.3335, allocations: 121.4 kB / 474.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.894e-06/0.3335, allocations: 33.12 kB / 474.3 MB, free: 12.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.922e-05/0.3335, allocations: 87.95 kB / 474.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.064e-05/0.3336, allocations: 3.906 kB / 474.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.3336, allocations: 0 / 474.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.997e-05/0.3336, allocations: 317.3 kB / 474.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.07e-05/0.3336, allocations: 4 kB / 474.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.318e-05/0.3336, allocations: 17.28 kB / 474.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.704e-05/0.3337, allocations: 11.75 kB / 474.8 MB, free: 11.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3337, allocations: 4 kB / 474.8 MB, free: 11.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.061e-05/0.3337, allocations: 44.67 kB / 474.8 MB, free: 11.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.3338, allocations: 4 kB / 474.8 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3338, allocations: 10.17 kB / 474.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.3338, allocations: 0 / 474.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.518e-05/0.3339, allocations: 4 kB / 474.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3339, allocations: 3.234 kB / 474.8 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.808e-05/0.3339, allocations: 8.062 kB / 474.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.3339, allocations: 0 / 474.8 MB, free: 11.76 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.694e-05/0.334, allocations: 112.8 kB / 475 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.758e-05/0.334, allocations: 33.61 kB / 475 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/0.3341, allocations: 14.64 kB / 475 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3341, allocations: 0 / 475 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3341, allocations: 6.312 kB / 475 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3341, allocations: 4.031 kB / 475 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.3342, allocations: 140.8 kB / 475.2 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3342, allocations: 0 / 475.2 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.681e-05/0.3342, allocations: 11.33 kB / 475.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3343, allocations: 3.906 kB / 475.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.3343, allocations: 0 / 475.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3343, allocations: 0 / 475.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3343, allocations: 0 / 475.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.372e-05/0.3344, allocations: 168.3 kB / 475.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.3344, allocations: 91.92 kB / 475.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.3344, allocations: 3.469 kB / 475.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.707e-05/0.3345, allocations: 4 kB / 475.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.3346, allocations: 7.844 kB / 475.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.3346, allocations: 0 / 475.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.611e-05/0.3346, allocations: 116 kB / 475.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002213/0.3348, allocations: 4 kB / 475.6 MB, free: 11.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.192e-05/0.3349, allocations: 98.67 kB / 475.6 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.333e-05/0.335, allocations: 8 kB / 475.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.335, allocations: 0 / 475.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.257e-05/0.335, allocations: 7.75 kB / 475.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.3353, allocations: 20.16 kB / 475.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002062/0.3355, allocations: 94.56 kB / 475.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.3357, allocations: 0.7051 MB / 476.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3357, allocations: 0 / 476.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of Templates: time 0.002025/0.3377, allocations: 0.5061 MB / 477 MB, free: 9.797 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time