Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") [: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.001552/0.001552, allocations: 184.5 kB / 8.134 MB, free: 2.199 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.259/1.259, allocations: 221.4 MB / 229.9 MB, free: 2.992 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.0008455/0.0008455, allocations: 96.2 kB / 280.8 MB, free: 1.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.324e-05/1.325e-05, allocations: 7.938 kB / 336.5 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2004, allocations: 50.39 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08551/0.286, allocations: 77.78 MB / 464.7 MB, free: 9.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.2863, allocations: 79.89 kB / 464.8 MB, free: 8.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006333/0.2926, allocations: 2.065 MB / 466.8 MB, free: 6.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.2927, allocations: 7.984 kB / 466.8 MB, free: 6.875 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004338/0.2931, allocations: 418.2 kB / 467.3 MB, free: 6.422 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2932, allocations: 12.03 kB / 467.3 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.04e-05/0.2932, allocations: 19.72 kB / 467.3 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.2935, allocations: 231.7 kB / 467.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.2935, allocations: 4 kB / 467.5 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.2936, allocations: 10.16 kB / 467.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001156/0.2937, allocations: 48.36 kB / 467.6 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003635/0.2941, allocations: 243.5 kB / 467.8 MB, free: 5.793 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.2941, allocations: 0 / 467.8 MB, free: 5.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.2941, allocations: 0 / 467.8 MB, free: 5.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.2941, allocations: 4 kB / 467.8 MB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004483/0.2946, allocations: 400.1 kB / 468.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.2949, allocations: 250.4 kB / 468.4 MB, free: 5.039 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.295, allocations: 88.38 kB / 468.5 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.295, allocations: 4 kB / 468.5 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.2951, allocations: 38.5 kB / 468.6 MB, free: 4.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.553e-06/0.2951, allocations: 4 kB / 468.6 MB, free: 4.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002879/0.2954, allocations: 130.4 kB / 468.7 MB, free: 4.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.2955, allocations: 195.9 kB / 468.9 MB, free: 4.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.2956, allocations: 150.4 kB / 469 MB, free: 4.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.2956, allocations: 29.7 kB / 469.1 MB, free: 4.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.2957, allocations: 88.12 kB / 469.2 MB, free: 4.234 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.2957, allocations: 16.69 kB / 469.2 MB, free: 4.219 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/0.2957, allocations: 0 / 469.2 MB, free: 4.219 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.2958, allocations: 336.2 kB / 469.5 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.128e-05/0.2959, allocations: 12 kB / 469.5 MB, free: 3.871 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.352e-05/0.296, allocations: 121.7 kB / 469.6 MB, free: 3.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.299e-05/0.296, allocations: 31.95 kB / 469.7 MB, free: 3.672 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.296, allocations: 4 kB / 469.7 MB, free: 3.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001897/0.2962, allocations: 137.6 kB / 469.8 MB, free: 3.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.2962, allocations: 4 kB / 469.8 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2962, allocations: 4.844 kB / 469.8 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2963, allocations: 4 kB / 469.8 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2964, allocations: 39.83 kB / 469.9 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.2964, allocations: 5.797 kB / 469.9 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.2965, allocations: 11.98 kB / 469.9 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.2966, allocations: 12.72 kB / 469.9 MB, free: 3.449 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 7.882e-05/0.2966, allocations: 116.8 kB / 470 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.2968, allocations: 117.5 kB / 470.1 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.078e-05/0.2969, allocations: 13.41 kB / 470.1 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2969, allocations: 4 kB / 470.1 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2969, allocations: 0 / 470.1 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2969, allocations: 4 kB / 470.1 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.2971, allocations: 187.7 kB / 470.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2972, allocations: 4 kB / 470.3 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.2973, allocations: 47.94 kB / 470.4 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.2973, allocations: 0 / 470.4 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.2974, allocations: 4 kB / 470.4 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.2974, allocations: 7.891 kB / 470.4 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2974, allocations: 0 / 470.4 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002782/0.2977, allocations: 363.9 kB / 470.7 MB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.684e-05/0.2977, allocations: 120.7 kB / 470.9 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.2978, allocations: 4 kB / 470.9 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.298, allocations: 16.55 kB / 470.9 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.298, allocations: 3.938 kB / 470.9 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.298, allocations: 4 kB / 470.9 MB, free: 2.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.173e-05/0.2981, allocations: 128.1 kB / 471 MB, free: 2.207 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003139/0.2984, allocations: 16 kB / 471 MB, free: 2.191 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (17): * Single equations (assignments): 17 * 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.0001103/0.2985, allocations: 103.3 kB / 471.1 MB, free: 2.082 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001559/0.2987, allocations: 79.88 kB / 471.2 MB, free: 2.004 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2987, allocations: 0 / 471.2 MB, free: 2.004 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.939e-05/0.2987, allocations: 7.984 kB / 471.2 MB, free: 1.996 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.2992, allocations: 87.95 kB / 471.3 MB, free: 1.914 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009221/0.3001, allocations: 329.3 kB / 471.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002828/0.3004, allocations: 0.7511 MB / 472.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3004, allocations: 384 / 472.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of Templates: time 0.003843/0.3043, allocations: 1.442 MB / 473.8 MB, free: 15.38 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,hold1.y,// shiftSample1.y Variables in the result:hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.y,hold1.yMax,hold1.yMin,hold1.y_start,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