Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.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: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008109/0.0008109, allocations: 100.3 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.0002104, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1954, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.001257/0.1967, allocations: 1.366 MB / 409.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005842/0.1972, allocations: 492.5 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.839e-05/0.1973, allocations: 0.75 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.336e-05/0.1974, allocations: 7.938 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.94e-05/0.1975, allocations: 20.89 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001142/0.1976, allocations: 35.95 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.1978, allocations: 113.3 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.142e-05/0.1979, allocations: 21.98 kB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.069e-05/0.1979, allocations: 39.78 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.314e-05/0.198, allocations: 44.31 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.198, allocations: 4.781 kB / 410.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.395e-05/0.198, allocations: 4 kB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.496e-05/0.198, allocations: 12.91 kB / 410.3 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.609e-05/0.1981, allocations: 65.44 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.138e-05/0.1982, allocations: 57.14 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1982, allocations: 4.656 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1982, allocations: 0 / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.1982, allocations: 0.9375 kB / 410.4 MB, free: 25.4 MB / 298.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.0003975/0.1986, allocations: 427.4 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.1986, allocations: 8.031 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.717e-05/0.1987, allocations: 42.73 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.709e-05/0.1987, allocations: 16.75 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.1988, allocations: 208 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1989, allocations: 4.375 kB / 411.1 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.1989, allocations: 15.92 kB / 411.1 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.1991, allocations: 148 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1992, allocations: 0 / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1992, allocations: 0 / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1992, allocations: 4 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.1994, allocations: 87.8 kB / 411.3 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005131/0.1999, allocations: 0.5555 MB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.2002, allocations: 150.5 kB / 412 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.2004, allocations: 68.81 kB / 412.1 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.2004, allocations: 4.125 kB / 412.1 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.277e-05/0.2004, allocations: 34.56 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.2004, allocations: 0 / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009689/0.2014, allocations: 0.5616 MB / 412.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.786e-05/0.2014, allocations: 51.41 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.453e-05/0.2015, allocations: 156.6 kB / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.2015, allocations: 25.7 kB / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.623e-05/0.2015, allocations: 111.9 kB / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.2016, allocations: 51.56 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-06/0.2016, allocations: 4 kB / 413.1 MB, free: 22.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.008e-05/0.2016, allocations: 326.8 kB / 413.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.2018, allocations: 59.89 kB / 413.5 MB, free: 22.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/0.2019, allocations: 95.39 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.2022, allocations: 151.3 kB / 413.7 MB, free: 21.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.2022, allocations: 4 kB / 413.7 MB, free: 21.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003245/0.2025, allocations: 193.5 kB / 413.9 MB, free: 21.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.2025, allocations: 11.94 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.2026, allocations: 0 / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.2026, allocations: 0 / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.2027, allocations: 51.84 kB / 414 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2027, allocations: 0 / 414 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.757e-05/0.2028, allocations: 24.05 kB / 414 MB, free: 21.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.2028, allocations: 4 kB / 414 MB, free: 21.5 MB / 298.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 () * Number of clocked 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 6.14e-05/0.2029, allocations: 125.8 kB / 414.1 MB, free: 21.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.2029, allocations: 15.75 kB / 414.1 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.203, allocations: 16.7 kB / 414.2 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.203, allocations: 3.984 kB / 414.2 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.203, allocations: 0 / 414.2 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.203, allocations: 4 kB / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005888/0.2036, allocations: 0.5155 MB / 414.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2036, allocations: 8.062 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.2038, allocations: 35.97 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.2038, allocations: 0 / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.2038, allocations: 4 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2038, allocations: 0 / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2038, allocations: 0 / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.2043, allocations: 356.2 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.369e-05/0.2043, allocations: 88.92 kB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.2043, allocations: 12.03 kB / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.2044, allocations: 19.98 kB / 415.2 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.2045, allocations: 7.984 kB / 415.2 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.2045, allocations: 12 kB / 415.2 MB, free: 20.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.592e-05/0.2045, allocations: 115.3 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2045, allocations: 0 / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002195/0.2048, allocations: 23.94 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (v.u,positionSmoothed.y,a.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0005904/0.2054, allocations: 0.8741 MB / 416.2 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003075/0.2057, allocations: 159.9 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.2057, allocations: 0 / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.2058, allocations: 67.91 kB / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.2062, allocations: 37.53 kB / 416.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.2074, allocations: 0.9883 MB / 417.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.76e-05/0.2076, allocations: 0.7165 MB / 418.2 MB, free: 17.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.844e-05/0.2076, allocations: 39.42 kB / 418.2 MB, free: 17.02 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2076, allocations: 0 / 418.2 MB, free: 17.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.489/2.696, allocations: 1.997 MB / 420.2 MB, free: 15.02 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","../files/Modelica_trunk_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,der(a.u),der(limit_a.y),der(limit_v.y),der(positionSmoothed.y),der(v.u),limit_a.Falling,limit_a.Rising,limit_a.Td,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,limit_v.initType,limit_v.strict,limit_v.u,limit_v.val,limit_v.y,limit_v.y_start,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,v.u,v.y,vLimited,vMax