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: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009442/0.0009442, allocations: 175.1 kB / 16.72 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.000699/0.000699, allocations: 108 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002854/0.0002855, allocations: 8 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2024, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.001594/0.204, allocations: 1.35 MB / 376.5 MB, free: 44.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000733/0.2048, allocations: 0.496 MB / 377 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.275e-05/0.2049, allocations: 2.312 kB / 377 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.513e-05/0.205, allocations: 11.86 kB / 377 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.941e-05/0.2051, allocations: 18.03 kB / 377.1 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001385/0.2052, allocations: 37.98 kB / 377.1 MB, free: 43.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.2054, allocations: 99.36 kB / 377.2 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.2055, allocations: 31.61 kB / 377.2 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.746e-05/0.2055, allocations: 32.23 kB / 377.3 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.927e-05/0.2056, allocations: 41.81 kB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.2056, allocations: 3.75 kB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.646e-05/0.2057, allocations: 3.812 kB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.907e-05/0.2057, allocations: 18.47 kB / 377.3 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.474e-05/0.2057, allocations: 67.69 kB / 377.4 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.071e-05/0.2058, allocations: 63.45 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2058, allocations: 0.9375 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2058, allocations: 0 / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.2059, allocations: 4 kB / 377.5 MB, free: 43.65 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.0004281/0.2063, allocations: 412.4 kB / 377.9 MB, free: 43.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2063, allocations: 9.688 kB / 377.9 MB, free: 43.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.277e-05/0.2064, allocations: 41.59 kB / 377.9 MB, free: 43.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.348e-05/0.2064, allocations: 19.16 kB / 377.9 MB, free: 43.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.2066, allocations: 212 kB / 378.1 MB, free: 42.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.2066, allocations: 12.78 kB / 378.1 MB, free: 42.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.2066, allocations: 13.81 kB / 378.2 MB, free: 42.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.2069, allocations: 138.6 kB / 378.3 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.2069, allocations: 3.938 kB / 378.3 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.207, allocations: 5.625 kB / 378.3 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.207, allocations: 6.516 kB / 378.3 MB, free: 42.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002065/0.2072, allocations: 92.25 kB / 378.4 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005806/0.2078, allocations: 0.5486 MB / 379 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.2081, allocations: 155.9 kB / 379.1 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.2083, allocations: 68.16 kB / 379.2 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.2083, allocations: 5.25 kB / 379.2 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.298e-05/0.2083, allocations: 31.91 kB / 379.2 MB, free: 42.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.2083, allocations: 0 / 379.2 MB, free: 42.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001013/0.2093, allocations: 0.559 MB / 379.8 MB, free: 41.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.133e-05/0.2094, allocations: 52.59 kB / 379.8 MB, free: 41.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.834e-05/0.2095, allocations: 152.1 kB / 380 MB, free: 41.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.022e-05/0.2095, allocations: 30.98 kB / 380 MB, free: 41.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.935e-05/0.2095, allocations: 109.2 kB / 380.1 MB, free: 41.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.595e-05/0.2096, allocations: 48.55 kB / 380.2 MB, free: 41.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-06/0.2096, allocations: 3.938 kB / 380.2 MB, free: 41.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.252e-05/0.2096, allocations: 323.1 kB / 380.5 MB, free: 41.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.2098, allocations: 64.77 kB / 380.5 MB, free: 40.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.2099, allocations: 90.08 kB / 380.6 MB, free: 40.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.2102, allocations: 158 kB / 380.8 MB, free: 40.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.2102, allocations: 0 / 380.8 MB, free: 40.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003655/0.2106, allocations: 192.7 kB / 381 MB, free: 40.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2106, allocations: 17.48 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2106, allocations: 1.25 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2107, allocations: 1.25 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.2108, allocations: 40.52 kB / 381 MB, free: 40.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.2108, allocations: 1.938 kB / 381 MB, free: 40.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.032e-05/0.2109, allocations: 20.67 kB / 381 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.2109, allocations: 12.92 kB / 381.1 MB, free: 40.71 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.661e-05/0.211, allocations: 122.5 kB / 381.2 MB, free: 40.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.211, allocations: 17.22 kB / 381.2 MB, free: 40.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.43e-05/0.2111, allocations: 18.75 kB / 381.2 MB, free: 40.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2111, allocations: 1.531 kB / 381.2 MB, free: 40.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.2111, allocations: 1.219 kB / 381.2 MB, free: 40.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2111, allocations: 0 / 381.2 MB, free: 40.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006662/0.2118, allocations: 0.5246 MB / 381.7 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.2118, allocations: 1.469 kB / 381.7 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.212, allocations: 37.23 kB / 381.8 MB, free: 40.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.212, allocations: 1.125 kB / 381.8 MB, free: 40.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.212, allocations: 9.094 kB / 381.8 MB, free: 40.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.212, allocations: 2.688 kB / 381.8 MB, free: 40.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.212, allocations: 3.984 kB / 381.8 MB, free: 40.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000493/0.2125, allocations: 348.6 kB / 382.1 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.754e-05/0.2125, allocations: 88.89 kB / 382.2 MB, free: 39.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.2126, allocations: 1.375 kB / 382.2 MB, free: 39.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.2127, allocations: 20.44 kB / 382.2 MB, free: 39.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.801e-05/0.2127, allocations: 16.7 kB / 382.3 MB, free: 39.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.2127, allocations: 3.938 kB / 382.3 MB, free: 39.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.823e-05/0.2128, allocations: 118.6 kB / 382.4 MB, free: 39.63 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2128, allocations: 0 / 382.4 MB, free: 39.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002304/0.2131, allocations: 24.69 kB / 382.4 MB, free: 39.62 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.000647/0.2137, allocations: 0.8729 MB / 383.3 MB, free: 38.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003442/0.2141, allocations: 140.9 kB / 383.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2141, allocations: 4.188 kB / 383.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.2142, allocations: 77.36 kB / 383.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.2146, allocations: 39.11 kB / 383.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.2161, allocations: 1.011 MB / 384.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.2162, allocations: 0.7062 MB / 385.2 MB, free: 37.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.456e-05/0.2163, allocations: 39.33 kB / 385.3 MB, free: 37.28 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2163, allocations: 5.125 kB / 385.3 MB, free: 37.28 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.403/2.62, allocations: 1.998 MB / 387.3 MB, free: 36.05 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_SlewRateLimiter.fmu > 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,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