Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001643/0.001643, allocations: 192.1 kB / 8.533 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.299/1.299, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008403/0.0008403, allocations: 97.88 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.394e-06, allocations: 4 kB / 343.1 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09024, allocations: 51.48 MB / 394.6 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2306/0.3209, allocations: 77.24 MB / 471.9 MB, free: 14.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.3211, allocations: 74.38 kB / 471.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004109/0.3252, allocations: 1.415 MB / 473.4 MB, free: 13.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.3253, allocations: 3.984 kB / 473.4 MB, free: 13.41 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.0002603/0.3255, allocations: 361.2 kB / 473.7 MB, free: 13.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.3256, allocations: 11.97 kB / 473.7 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001327/0.3257, allocations: 31.23 kB / 473.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.3259, allocations: 192.4 kB / 473.9 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.3259, allocations: 0 / 473.9 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.3259, allocations: 7.938 kB / 473.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.077e-05/0.326, allocations: 22.53 kB / 474 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.3262, allocations: 128.4 kB / 474.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.3262, allocations: 0 / 474.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.3262, allocations: 0 / 474.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.3262, allocations: 0 / 474.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002648/0.3265, allocations: 270.5 kB / 474.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.798e-05/0.3266, allocations: 83.45 kB / 474.4 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.77e-05/0.3266, allocations: 41.5 kB / 474.5 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.3266, allocations: 11.92 kB / 474.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.187e-05/0.3267, allocations: 33.84 kB / 474.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.3267, allocations: 0 / 474.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001559/0.3268, allocations: 71.53 kB / 474.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.3269, allocations: 132.3 kB / 474.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.521e-05/0.327, allocations: 129.6 kB / 474.9 MB, free: 11.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.127e-06/0.327, allocations: 33.64 kB / 474.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.335e-05/0.327, allocations: 84.27 kB / 475 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.327, allocations: 7.234 kB / 475 MB, free: 11.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-06/0.327, allocations: 0 / 475 MB, free: 11.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.745e-05/0.3271, allocations: 322 kB / 475.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.729e-05/0.3271, allocations: 10.73 kB / 475.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.263e-05/0.3272, allocations: 37.03 kB / 475.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.478e-05/0.3272, allocations: 18.44 kB / 475.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3272, allocations: 0 / 475.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.723e-05/0.3273, allocations: 71.58 kB / 475.4 MB, free: 11.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.798e-06/0.3273, allocations: 4 kB / 475.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3273, allocations: 0 / 475.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3273, allocations: 4 kB / 475.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.473e-05/0.3274, allocations: 15.47 kB / 475.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.3274, allocations: 7.906 kB / 475.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.978e-05/0.3275, allocations: 6.5 kB / 475.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.3275, allocations: 4 kB / 475.5 MB, free: 11.18 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 3.982e-05/0.3276, allocations: 109.5 kB / 475.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.758e-05/0.3276, allocations: 68.23 kB / 475.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.544e-05/0.3277, allocations: 14.92 kB / 475.7 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.3277, allocations: 12.03 kB / 475.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3277, allocations: 0 / 475.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3277, allocations: 0 / 475.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.3278, allocations: 154.7 kB / 475.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3278, allocations: 0 / 475.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.099e-05/0.3279, allocations: 15.42 kB / 475.8 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3279, allocations: 3.906 kB / 475.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.3279, allocations: 4 kB / 475.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3279, allocations: 0 / 475.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3279, allocations: 4 kB / 475.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000111/0.3281, allocations: 224.1 kB / 476.1 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.3281, allocations: 88.34 kB / 476.1 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.3281, allocations: 12.12 kB / 476.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.968e-05/0.3282, allocations: 0 / 476.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.3283, allocations: 4 kB / 476.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.3283, allocations: 7.625 kB / 476.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.612e-05/0.3283, allocations: 109.5 kB / 476.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002321/0.3286, allocations: 8 kB / 476.3 MB, free: 10.34 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 8.292e-05/0.3286, allocations: 95.25 kB / 476.4 MB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.293e-05/0.3287, allocations: 35.44 kB / 476.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3287, allocations: 0 / 476.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.278e-05/0.3288, allocations: 2.062 kB / 476.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.329, allocations: 42.97 kB / 476.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002477/0.3293, allocations: 127.6 kB / 476.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.3295, allocations: 0.7198 MB / 477.3 MB, free: 9.324 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3295, allocations: 0 / 477.3 MB, free: 9.324 MB / 346.7 MB Notification: Performance of Templates: time 0.002354/0.3318, allocations: 0.7325 MB / 478 MB, free: 8.93 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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