Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001082/0.001081, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 225.5 MB / 234.4 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008834/0.0008833, allocations: 97.95 kB / 286.4 MB, free: 12.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.76e-06/5.891e-06, allocations: 0 / 343.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2041, allocations: 51.48 MB / 394.6 MB, free: 33.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08981/0.294, allocations: 77.32 MB / 471.9 MB, free: 3.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.2943, allocations: 77.08 kB / 472 MB, free: 3.672 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004625/0.299, allocations: 1.39 MB / 473.4 MB, free: 2.293 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.299, allocations: 4 kB / 473.4 MB, free: 2.289 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.0003413/0.2994, allocations: 358.2 kB / 473.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2994, allocations: 12.03 kB / 473.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.2995, allocations: 31.8 kB / 473.8 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.2998, allocations: 191.5 kB / 474 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.2998, allocations: 0.6562 kB / 474 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.2998, allocations: 7.938 kB / 474 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.431e-05/0.2999, allocations: 23.98 kB / 474 MB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.3001, allocations: 115.9 kB / 474.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.3001, allocations: 0 / 474.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.3001, allocations: 0 / 474.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3002, allocations: 3.906 kB / 474.1 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003852/0.3005, allocations: 351.3 kB / 474.5 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.867e-05/0.3007, allocations: 90.5 kB / 474.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.304e-05/0.3007, allocations: 39.33 kB / 474.6 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.3007, allocations: 4 kB / 474.6 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.3008, allocations: 34.56 kB / 474.6 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 5.1e-06/0.3008, allocations: 4 kB / 474.6 MB, free: 0.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002135/0.301, allocations: 73.41 kB / 474.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.3011, allocations: 129.4 kB / 474.8 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.3012, allocations: 133.5 kB / 475 MB, free: 476 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.3012, allocations: 25.7 kB / 475 MB, free: 444 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.82e-05/0.3013, allocations: 84.45 kB / 475.1 MB, free: 356 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.3013, allocations: 11.91 kB / 475.1 MB, free: 344 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-06/0.3013, allocations: 0 / 475.1 MB, free: 344 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3014, allocations: 318.8 kB / 475.4 MB, free: 16 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.3015, allocations: 4 kB / 475.4 MB, free: 12 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.142e-05/0.3015, allocations: 40.3 kB / 475.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.138e-05/0.3015, allocations: 20.48 kB / 475.5 MB, free: 15.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3016, allocations: 0 / 475.5 MB, free: 15.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.916e-05/0.3017, allocations: 65.53 kB / 475.5 MB, free: 15.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.3017, allocations: 4 kB / 475.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3017, allocations: 4 kB / 475.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.3017, allocations: 0 / 475.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.145e-05/0.3018, allocations: 24.08 kB / 475.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3018, allocations: 0 / 475.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.93e-05/0.3019, allocations: 7.906 kB / 475.6 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.3019, allocations: 4 kB / 475.6 MB, free: 15.82 MB / 362.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 6.068e-05/0.302, allocations: 113.9 kB / 475.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.3021, allocations: 49.59 kB / 475.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.3021, allocations: 11.75 kB / 475.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.3021, allocations: 11.97 kB / 475.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3021, allocations: 0 / 475.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3021, allocations: 0 / 475.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002198/0.3024, allocations: 154.2 kB / 475.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3024, allocations: 4 kB / 475.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.597e-05/0.3024, allocations: 15.92 kB / 475.9 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.3025, allocations: 4 kB / 475.9 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.3025, allocations: 0 / 475.9 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3025, allocations: 3.906 kB / 475.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3025, allocations: 4.125 kB / 475.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001781/0.3027, allocations: 290.7 kB / 476.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.339e-05/0.3027, allocations: 96.94 kB / 476.3 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.3028, allocations: 7.984 kB / 476.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.3029, allocations: 7.938 kB / 476.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.429e-05/0.3029, allocations: 0 / 476.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.3029, allocations: 8 kB / 476.3 MB, free: 14.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.162e-05/0.303, allocations: 103.8 kB / 476.4 MB, free: 14.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002596/0.3033, allocations: 8 kB / 476.4 MB, free: 14.84 MB / 362.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.0001238/0.3034, allocations: 103.2 kB / 476.5 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.963e-05/0.3035, allocations: 27.94 kB / 476.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3035, allocations: 0 / 476.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.863e-05/0.3035, allocations: 8 kB / 476.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.3038, allocations: 27.86 kB / 476.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002699/0.3041, allocations: 126.7 kB / 476.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002586/0.3044, allocations: 0.7114 MB / 477.4 MB, free: 13.77 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3044, allocations: 0 / 477.4 MB, free: 13.77 MB / 362.7 MB Notification: Performance of Templates: time 0.002507/0.3069, allocations: 0.6562 MB / 478.1 MB, free: 13.13 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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