Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter") translateModel(Modelica.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter") [: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 3.2.3+maint.om/package.mo): time 0.00155/0.00155, allocations: 185.2 kB / 8.154 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205.2 MB / 213.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 89.89 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.283e-05/1.293e-05, allocations: 4 kB / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2374, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.3538, allocations: 75.7 MB / 437.5 MB, free: 10.37 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.3541, allocations: 63.97 kB / 437.6 MB, free: 10.31 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.009946/0.3641, allocations: 2.078 MB / 439.7 MB, free: 8.273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.3642, allocations: 4 kB / 439.7 MB, free: 8.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007721/0.365, allocations: 422.7 kB / 440.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.365, allocations: 8.031 kB / 440.1 MB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.205e-05/0.3651, allocations: 11.91 kB / 440.1 MB, free: 7.797 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.3654, allocations: 207.3 kB / 440.3 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.3655, allocations: 7.938 kB / 440.3 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.3655, allocations: 8 kB / 440.3 MB, free: 7.535 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001444/0.3657, allocations: 32 kB / 440.4 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.3659, allocations: 88.25 kB / 440.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.3659, allocations: 7.906 kB / 440.4 MB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.366, allocations: 0 / 440.4 MB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.366, allocations: 3.984 kB / 440.4 MB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008526/0.3668, allocations: 0.5111 MB / 441 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.367, allocations: 57.64 kB / 441 MB, free: 6.773 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.899e-05/0.3671, allocations: 31.39 kB / 441 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.3671, allocations: 0 / 441 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.3672, allocations: 40.81 kB / 441.1 MB, free: 6.695 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.3672, allocations: 0 / 441.1 MB, free: 6.695 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007312/0.3679, allocations: 334.1 kB / 441.4 MB, free: 6.316 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.368, allocations: 63.31 kB / 441.5 MB, free: 6.242 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.3682, allocations: 132.9 kB / 441.6 MB, free: 6.105 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.3682, allocations: 25.7 kB / 441.6 MB, free: 6.074 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/0.3683, allocations: 162.7 kB / 441.8 MB, free: 5.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.557e-05/0.3684, allocations: 39.45 kB / 441.8 MB, free: 5.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/0.3684, allocations: 0 / 441.8 MB, free: 5.871 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3685, allocations: 316 kB / 442.1 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.539e-05/0.3686, allocations: 28 kB / 442.2 MB, free: 5.527 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.3687, allocations: 52 kB / 442.2 MB, free: 5.465 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.529e-05/0.3688, allocations: 27.92 kB / 442.2 MB, free: 5.438 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3688, allocations: 3.906 kB / 442.2 MB, free: 5.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002615/0.3691, allocations: 97.62 kB / 442.3 MB, free: 5.332 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.3691, allocations: 4 kB / 442.3 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3691, allocations: 4.094 kB / 442.3 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3692, allocations: 8.875 kB / 442.4 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003198/0.3695, allocations: 39.97 kB / 442.4 MB, free: 5.277 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.3695, allocations: 7.906 kB / 442.4 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.3697, allocations: 19.98 kB / 442.4 MB, free: 5.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.3697, allocations: 4 kB / 442.4 MB, free: 5.246 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (positionSmoothed.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.32e-05/0.3698, allocations: 29.64 kB / 442.5 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.289e-05/0.3699, allocations: 11.91 kB / 442.5 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.785e-05/0.3699, allocations: 16.39 kB / 442.5 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.3699, allocations: 4 kB / 442.5 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.37, allocations: 4 kB / 442.5 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.37, allocations: 5.719 kB / 442.5 MB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007333/0.3707, allocations: 383.8 kB / 442.9 MB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3707, allocations: 4.031 kB / 442.9 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.3711, allocations: 31.98 kB / 442.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.3711, allocations: 0 / 442.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.3711, allocations: 4.75 kB / 442.9 MB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3712, allocations: 7.922 kB / 442.9 MB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3712, allocations: 4 kB / 442.9 MB, free: 4.699 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003713/0.3716, allocations: 230.5 kB / 443.1 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/0.3716, allocations: 92.91 kB / 443.2 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.3717, allocations: 5.125 kB / 443.2 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.3719, allocations: 19.98 kB / 443.3 MB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.372, allocations: 8.547 kB / 443.3 MB, free: 4.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.372, allocations: 4 kB / 443.3 MB, free: 4.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001032/0.3721, allocations: 108.9 kB / 443.4 MB, free: 4.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003055/0.3724, allocations: 19.94 kB / 443.4 MB, free: 4.18 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (v.u,limit_a.y,positionSmoothed.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0001568/0.3726, allocations: 99.25 kB / 443.5 MB, free: 4.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.3728, allocations: 63.03 kB / 443.6 MB, free: 4.012 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3728, allocations: 0 / 443.6 MB, free: 4.012 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.373, allocations: 39.94 kB / 443.6 MB, free: 3.973 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004916/0.3735, allocations: 33.69 kB / 443.6 MB, free: 3.941 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006275/0.3741, allocations: 226.8 kB / 443.9 MB, free: 3.688 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003645/0.3745, allocations: 0.7274 MB / 444.6 MB, free: 2.934 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.3745, allocations: 0 / 444.6 MB, free: 2.934 MB / 330.7 MB Notification: Performance of Templates: time 0.004575/0.3791, allocations: 1.605 MB / 446.2 MB, free: 1.359 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,limit_a.y,limit_v.y,positionSmoothed.y Variables in the result:a.u,a.y,aLimited,aMax,limit_a.Falling,limit_a.Rising,limit_a.Td,der(limit_a.y),limit_a.initType,limit_a.strict,limit_a.u,limit_a.val,limit_a.y,limit_a.y_start,limit_v.Falling,limit_v.Rising,limit_v.Td,der(limit_v.y),limit_v.initType,limit_v.strict,limit_v.u,limit_v.val,limit_v.y,limit_v.y_start,der(positionSmoothed.y),positionSmoothed.initType,positionSmoothed.k,positionSmoothed.local_reset,positionSmoothed.local_set,positionSmoothed.u,positionSmoothed.use_reset,positionSmoothed.use_set,positionSmoothed.y,positionSmoothed.y_start,positionStep.height,positionStep.offset,positionStep.startTime,positionStep.y,s,sSmoothed,time,der(v.u),v.u,v.y,vLimited,vMax