Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.000968/0.0009682, allocations: 184.2 kB / 8.136 MB, free: 2.207 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.131/1.131, allocations: 221.4 MB / 229.9 MB, free: 3.047 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.000904/0.0009038, allocations: 91.22 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.376e-06/8.416e-06, allocations: 4 kB / 336.5 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1825, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07747/0.26, allocations: 76.25 MB / 463.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.2602, allocations: 79.89 kB / 463.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.00371/0.2639, allocations: 1.183 MB / 464.4 MB, free: 9.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.2639, allocations: 4.844 kB / 464.4 MB, free: 9.367 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.0003122/0.2643, allocations: 346.4 kB / 464.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.2643, allocations: 8.031 kB / 464.8 MB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.2643, allocations: 7.906 kB / 464.8 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.2645, allocations: 198.7 kB / 465 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.545e-06/0.2645, allocations: 0.5 kB / 465 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.2646, allocations: 7.984 kB / 465 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.782e-05/0.2646, allocations: 23.98 kB / 465 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.2648, allocations: 85.69 kB / 465.1 MB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.2648, allocations: 6.375 kB / 465.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.233e-06/0.2648, allocations: 0 / 465.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.2648, allocations: 3.984 kB / 465.1 MB, free: 8.594 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002859/0.2651, allocations: 255.4 kB / 465.3 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.31e-05/0.2652, allocations: 37.22 kB / 465.4 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.171e-05/0.2652, allocations: 9.719 kB / 465.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.2652, allocations: 12 kB / 465.4 MB, free: 8.223 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.2653, allocations: 30.56 kB / 465.4 MB, free: 8.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.2653, allocations: 0 / 465.4 MB, free: 8.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001311/0.2654, allocations: 49.59 kB / 465.5 MB, free: 8.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.2654, allocations: 77.11 kB / 465.6 MB, free: 8.035 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.627e-05/0.2655, allocations: 130.7 kB / 465.7 MB, free: 7.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.2656, allocations: 25.7 kB / 465.7 MB, free: 7.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.124e-05/0.2656, allocations: 88.12 kB / 465.8 MB, free: 7.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.216e-05/0.2656, allocations: 7.906 kB / 465.8 MB, free: 7.773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-06/0.2656, allocations: 0 / 465.8 MB, free: 7.773 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.2657, allocations: 310.8 kB / 466.1 MB, free: 7.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.373e-05/0.2657, allocations: 8 kB / 466.1 MB, free: 7.453 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.628e-05/0.2658, allocations: 13.72 kB / 466.1 MB, free: 7.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.603e-05/0.2658, allocations: 4.062 kB / 466.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2658, allocations: 3.938 kB / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.028e-05/0.2659, allocations: 53.53 kB / 466.2 MB, free: 7.367 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.2659, allocations: 4 kB / 466.2 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2659, allocations: 4 kB / 466.2 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.2659, allocations: 0 / 466.2 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.676e-05/0.266, allocations: 7.984 kB / 466.2 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.266, allocations: 2.984 kB / 466.2 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.986e-05/0.266, allocations: 8 kB / 466.2 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-06/0.2661, allocations: 0 / 466.2 MB, free: 7.344 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 5.38e-05/0.2661, allocations: 108.9 kB / 466.3 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.321e-05/0.2662, allocations: 34.36 kB / 466.3 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.872e-05/0.2662, allocations: 15.58 kB / 466.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.2662, allocations: 0 / 466.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2662, allocations: 4.75 kB / 466.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2662, allocations: 4.031 kB / 466.4 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.2664, allocations: 146.2 kB / 466.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2664, allocations: 1.75 kB / 466.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.164e-05/0.2664, allocations: 11.94 kB / 466.5 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2664, allocations: 0 / 466.5 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.2665, allocations: 3.906 kB / 466.5 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.2665, allocations: 3.984 kB / 466.5 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2665, allocations: 0.9375 kB / 466.5 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000105/0.2666, allocations: 158 kB / 466.7 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.568e-05/0.2666, allocations: 93 kB / 466.8 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.2667, allocations: 3.984 kB / 466.8 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.661e-05/0.2667, allocations: 4 kB / 466.8 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.32e-05/0.2668, allocations: 3.906 kB / 466.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.2668, allocations: 0 / 466.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.612e-05/0.2668, allocations: 110.6 kB / 466.9 MB, free: 6.566 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002118/0.2671, allocations: 8 kB / 466.9 MB, free: 6.559 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 7.777e-05/0.2671, allocations: 95.25 kB / 467 MB, free: 6.453 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.853e-05/0.2672, allocations: 19.86 kB / 467 MB, free: 6.434 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2672, allocations: 0 / 467 MB, free: 6.434 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.178e-05/0.2672, allocations: 4 kB / 467 MB, free: 6.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.2674, allocations: 13.81 kB / 467 MB, free: 6.418 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002155/0.2677, allocations: 108.4 kB / 467.1 MB, free: 6.281 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.2679, allocations: 0.7036 MB / 467.9 MB, free: 5.551 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2679, allocations: 0 / 467.9 MB, free: 5.551 MB / 346.7 MB Notification: Performance of Templates: time 0.002078/0.27, allocations: 0.5216 MB / 468.4 MB, free: 5.047 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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