Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") [: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.001405/0.001405, allocations: 181.9 kB / 8.131 MB, free: 2.184 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.167/1.167, allocations: 221.4 MB / 229.9 MB, free: 3.055 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.0009531/0.0009531, allocations: 89.61 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.873e-06/6.883e-06, allocations: 0 / 336.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2097, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08078/0.2905, allocations: 76.51 MB / 463.4 MB, free: 10.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.2908, allocations: 75.89 kB / 463.5 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004177/0.295, allocations: 1.288 MB / 464.8 MB, free: 8.941 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.295, allocations: 4.719 kB / 464.8 MB, free: 8.938 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.0003153/0.2953, allocations: 358.3 kB / 465.1 MB, free: 8.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.2954, allocations: 12.03 kB / 465.2 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.196e-05/0.2954, allocations: 12.56 kB / 465.2 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.2956, allocations: 199.4 kB / 465.4 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.294e-06/0.2956, allocations: 0 / 465.4 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.2956, allocations: 4 kB / 465.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.606e-05/0.2957, allocations: 19.98 kB / 465.4 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.2959, allocations: 123.6 kB / 465.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.2959, allocations: 0 / 465.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.2959, allocations: 0 / 465.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.296, allocations: 1 kB / 465.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003588/0.2963, allocations: 343.3 kB / 465.8 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.874e-05/0.2964, allocations: 86.38 kB / 465.9 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.744e-05/0.2965, allocations: 43.48 kB / 466 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.2965, allocations: 0 / 466 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.2965, allocations: 47.12 kB / 466 MB, free: 7.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.2965, allocations: 0 / 466 MB, free: 7.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001852/0.2967, allocations: 65.53 kB / 466.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.2968, allocations: 136.5 kB / 466.2 MB, free: 7.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.936e-05/0.2969, allocations: 128.5 kB / 466.3 MB, free: 7.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.2969, allocations: 25.7 kB / 466.4 MB, free: 7.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.032e-05/0.297, allocations: 88.45 kB / 466.4 MB, free: 7.016 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.297, allocations: 8.469 kB / 466.5 MB, free: 7.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.297, allocations: 0 / 466.5 MB, free: 7.008 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.2971, allocations: 322.8 kB / 466.8 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.918e-05/0.2971, allocations: 8 kB / 466.8 MB, free: 6.676 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.117e-05/0.2971, allocations: 36.3 kB / 466.8 MB, free: 6.625 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.639e-05/0.2972, allocations: 11.98 kB / 466.8 MB, free: 6.613 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2972, allocations: 0.9375 kB / 466.8 MB, free: 6.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.92e-05/0.2973, allocations: 73.47 kB / 466.9 MB, free: 6.535 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.2973, allocations: 4 kB / 466.9 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2973, allocations: 4.5 kB / 466.9 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.165e-06/0.2973, allocations: 160 / 466.9 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.462e-05/0.2974, allocations: 16 kB / 466.9 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.2974, allocations: 7.031 kB / 466.9 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.397e-05/0.2975, allocations: 13.09 kB / 466.9 MB, free: 6.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.2975, allocations: 4 kB / 466.9 MB, free: 6.492 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 5.983e-05/0.2976, allocations: 101 kB / 467 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2977, allocations: 61.47 kB / 467.1 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.2977, allocations: 15.81 kB / 467.1 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.2977, allocations: 4 kB / 467.1 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.2977, allocations: 3.906 kB / 467.1 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2978, allocations: 0 / 467.1 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.2979, allocations: 154.2 kB / 467.3 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.298, allocations: 0 / 467.3 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-05/0.298, allocations: 12 kB / 467.3 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.298, allocations: 7.984 kB / 467.3 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2981, allocations: 0.9375 kB / 467.3 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2981, allocations: 3.938 kB / 467.3 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.2981, allocations: 11.91 kB / 467.3 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001742/0.2983, allocations: 288.4 kB / 467.6 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.2983, allocations: 93 kB / 467.7 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.2983, allocations: 4 kB / 467.7 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.2985, allocations: 3.984 kB / 467.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.2985, allocations: 4 kB / 467.7 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-06/0.2985, allocations: 4 kB / 467.7 MB, free: 5.625 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.527e-05/0.2986, allocations: 103.8 kB / 467.8 MB, free: 5.523 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.2988, allocations: 8 kB / 467.8 MB, free: 5.516 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 0.0001225/0.299, allocations: 99.19 kB / 467.9 MB, free: 5.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.894e-05/0.2991, allocations: 35.92 kB / 467.9 MB, free: 5.375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.2991, allocations: 3.938 kB / 467.9 MB, free: 5.371 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.876e-05/0.2991, allocations: 4 kB / 468 MB, free: 5.367 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.2994, allocations: 38.83 kB / 468 MB, free: 5.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002682/0.2997, allocations: 126.7 kB / 468.1 MB, free: 5.176 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.2999, allocations: 0.7169 MB / 468.8 MB, free: 4.434 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2999, allocations: 0 / 468.8 MB, free: 4.434 MB / 346.7 MB Notification: Performance of Templates: time 0.002388/0.3023, allocations: 0.6628 MB / 469.5 MB, free: 3.789 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.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