Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.HoldWithDAeffects2,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.HoldWithDAeffects2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,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.HoldWithDAeffects2") [: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.001551/0.001551, allocations: 183.9 kB / 8.135 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.235/1.235, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009095/0.0009098, allocations: 105.6 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.843e-06/7.114e-06, allocations: 0 / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2072, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08521/0.2925, allocations: 77.78 MB / 464.7 MB, free: 9.016 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.2928, allocations: 79.88 kB / 464.8 MB, free: 8.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006805/0.2996, allocations: 2.126 MB / 466.9 MB, free: 6.832 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.2996, allocations: 3.938 kB / 466.9 MB, free: 6.828 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.0004422/0.3001, allocations: 422.2 kB / 467.3 MB, free: 6.371 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.3001, allocations: 8.031 kB / 467.3 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.956e-05/0.3002, allocations: 20.84 kB / 467.3 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.3005, allocations: 235.7 kB / 467.6 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.3005, allocations: 7.938 kB / 467.6 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.3005, allocations: 4 kB / 467.6 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001117/0.3006, allocations: 48.36 kB / 467.6 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.301, allocations: 233.8 kB / 467.9 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.301, allocations: 3.938 kB / 467.9 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.301, allocations: 0 / 467.9 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3011, allocations: 11.91 kB / 467.9 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004446/0.3015, allocations: 404 kB / 468.3 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.3018, allocations: 252.2 kB / 468.5 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.302, allocations: 92.52 kB / 468.6 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.302, allocations: 7.984 kB / 468.6 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.302, allocations: 45.16 kB / 468.7 MB, free: 4.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.302, allocations: 0 / 468.7 MB, free: 4.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0002873/0.3023, allocations: 125.4 kB / 468.8 MB, free: 4.691 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.3024, allocations: 187.8 kB / 469 MB, free: 4.465 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.3026, allocations: 150.4 kB / 469.1 MB, free: 4.309 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.3026, allocations: 29.7 kB / 469.1 MB, free: 4.273 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.093e-05/0.3026, allocations: 88.5 kB / 469.2 MB, free: 4.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.3027, allocations: 15.89 kB / 469.2 MB, free: 4.164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.3027, allocations: 96 / 469.2 MB, free: 4.164 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.497e-05/0.3028, allocations: 330.8 kB / 469.6 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.447e-05/0.3028, allocations: 19.94 kB / 469.6 MB, free: 3.812 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.245e-05/0.3029, allocations: 127.5 kB / 469.7 MB, free: 3.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.03e-05/0.303, allocations: 35.95 kB / 469.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.303, allocations: 4 kB / 469.8 MB, free: 3.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002244/0.3032, allocations: 141.9 kB / 469.9 MB, free: 3.449 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.3032, allocations: 4 kB / 469.9 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3033, allocations: 4 kB / 469.9 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3033, allocations: 15.84 kB / 469.9 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.3034, allocations: 31.98 kB / 469.9 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.3035, allocations: 10.86 kB / 470 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.3036, allocations: 31.83 kB / 470 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.3036, allocations: 8 kB / 470 MB, free: 3.348 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.912e-05/0.3037, allocations: 106 kB / 470.1 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.3039, allocations: 117.5 kB / 470.2 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.161e-05/0.3039, allocations: 17.41 kB / 470.2 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.3039, allocations: 4 kB / 470.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3039, allocations: 0 / 470.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.304, allocations: 12.64 kB / 470.2 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.3042, allocations: 190 kB / 470.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3042, allocations: 4 kB / 470.4 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.3044, allocations: 39.89 kB / 470.5 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3044, allocations: 1.188 kB / 470.5 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3044, allocations: 7.984 kB / 470.5 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3044, allocations: 3.938 kB / 470.5 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.3044, allocations: 11.88 kB / 470.5 MB, free: 2.793 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002592/0.3047, allocations: 367.9 kB / 470.9 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.034e-05/0.3048, allocations: 108.9 kB / 471 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.895e-05/0.3048, allocations: 4 kB / 471 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.305, allocations: 11.98 kB / 471 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.698e-05/0.305, allocations: 4 kB / 471 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.305, allocations: 4.938 kB / 471 MB, free: 2.234 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.467e-05/0.3051, allocations: 132.1 kB / 471.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003164/0.3054, allocations: 19.94 kB / 471.1 MB, free: 2.086 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 (18): * Single equations (assignments): 18 * 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.0001043/0.3055, allocations: 99.19 kB / 471.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001932/0.3057, allocations: 95.05 kB / 471.3 MB, free: 1.891 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3057, allocations: 1.062 kB / 471.3 MB, free: 1.891 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.947e-05/0.3058, allocations: 7.938 kB / 471.3 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.3062, allocations: 88.78 kB / 471.4 MB, free: 1.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004219/0.3066, allocations: 197.3 kB / 471.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.3069, allocations: 0.7547 MB / 472.4 MB, free: 0.793 MB / 346.7 MB Notification: Performance of SimCode: time 1.353e-06/0.307, allocations: 0 / 472.4 MB, free: 0.793 MB / 346.7 MB Notification: Performance of Templates: time 0.003854/0.3108, allocations: 1.496 MB / 473.9 MB, free: 15.33 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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