Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009751/0.0009751, allocations: 107.8 kB / 17.16 MB, free: 6.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 194 kB / 18.08 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.163/1.163, allocations: 205.1 MB / 223.9 MB, free: 12.52 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 47.92 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07233/0.07342, allocations: 46.61 MB / 326.7 MB, free: 4.82 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002544/0.076, allocations: 1.728 MB / 328.4 MB, free: 3.074 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006832/0.0767, allocations: 0.5153 MB / 328.9 MB, free: 2.551 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.617e-05/0.07678, allocations: 11.94 kB / 328.9 MB, free: 2.539 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.07689, allocations: 7.922 kB / 328.9 MB, free: 2.531 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.785e-05/0.07698, allocations: 19.86 kB / 329 MB, free: 2.512 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001356/0.07712, allocations: 39.95 kB / 329 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.07727, allocations: 111.5 kB / 329.1 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.555e-05/0.07737, allocations: 28.89 kB / 329.1 MB, free: 2.336 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.622e-05/0.07742, allocations: 43.78 kB / 329.2 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.601e-05/0.07751, allocations: 47.7 kB / 329.2 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.07753, allocations: 4 kB / 329.2 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.654e-05/0.07755, allocations: 4 kB / 329.2 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.07758, allocations: 15.94 kB / 329.2 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.07762, allocations: 47.67 kB / 329.3 MB, free: 2.176 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.662e-05/0.07773, allocations: 87.86 kB / 329.4 MB, free: 2.09 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.07774, allocations: 3.984 kB / 329.4 MB, free: 2.086 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.07774, allocations: 0 / 329.4 MB, free: 2.086 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.835e-06/0.07775, allocations: 0 / 329.4 MB, free: 2.086 MB / 270.1 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.0004808/0.07824, allocations: 431 kB / 329.8 MB, free: 1.617 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.07828, allocations: 12.03 kB / 329.8 MB, free: 1.605 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.079e-05/0.07831, allocations: 34.75 kB / 329.9 MB, free: 1.562 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.427e-05/0.07835, allocations: 20.75 kB / 329.9 MB, free: 1.543 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.07854, allocations: 212.6 kB / 330.1 MB, free: 1.297 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.07856, allocations: 4.375 kB / 330.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.07859, allocations: 15.94 kB / 330.1 MB, free: 1.277 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.07884, allocations: 132.1 kB / 330.2 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.07886, allocations: 7.906 kB / 330.2 MB, free: 1.125 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.07887, allocations: 4 kB / 330.2 MB, free: 1.121 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.07888, allocations: 0 / 330.2 MB, free: 1.121 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.07907, allocations: 71.88 kB / 330.3 MB, free: 1.051 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005889/0.07966, allocations: 0.5515 MB / 330.9 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.07997, allocations: 126.5 kB / 331 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.08011, allocations: 64.8 kB / 331 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.08012, allocations: 0 / 331 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.08015, allocations: 38.56 kB / 331.1 MB, free: 200 kB / 270.1 MB Notification: Performance of pre-optimization done (n=10): time 1.983e-06/0.08016, allocations: 0 / 331.1 MB, free: 200 kB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.000974/0.08113, allocations: 0.5096 MB / 331.6 MB, free: 15.63 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.08117, allocations: 55.41 kB / 331.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.08129, allocations: 158.1 kB / 331.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.08131, allocations: 25.7 kB / 331.8 MB, free: 15.37 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.663e-05/0.08137, allocations: 115.9 kB / 331.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.194e-05/0.08141, allocations: 47.34 kB / 332 MB, free: 15.21 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.08146, allocations: 25.72 kB / 332 MB, free: 15.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.302e-05/0.08155, allocations: 330.8 kB / 332.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.08169, allocations: 51.89 kB / 332.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.08185, allocations: 79.39 kB / 332.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.08212, allocations: 135.3 kB / 332.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.08213, allocations: 0 / 332.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000328/0.08246, allocations: 173.4 kB / 332.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.08248, allocations: 11.94 kB / 332.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.08249, allocations: 0 / 332.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.08251, allocations: 4.875 kB / 332.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.08267, allocations: 43.91 kB / 332.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.08268, allocations: 4 kB / 332.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.08276, allocations: 12.08 kB / 332.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.08277, allocations: 8 kB / 332.9 MB, free: 14.3 MB / 286.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.587e-05/0.08285, allocations: 117.8 kB / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.08289, allocations: 15.84 kB / 333 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.688e-05/0.08293, allocations: 16.7 kB / 333 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.08294, allocations: 4 kB / 333 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.08295, allocations: 0 / 333 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.08296, allocations: 3.938 kB / 333 MB, free: 14.13 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006493/0.08361, allocations: 495.9 kB / 333.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.08363, allocations: 7.938 kB / 333.5 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.08379, allocations: 40.03 kB / 333.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.0838, allocations: 0 / 333.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.08381, allocations: 8 kB / 333.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.08382, allocations: 0 / 333.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.08382, allocations: 0 / 333.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004797/0.08431, allocations: 320.9 kB / 333.9 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.262e-05/0.08436, allocations: 92.95 kB / 333.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.08439, allocations: 4 kB / 334 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.0845, allocations: 15.98 kB / 334 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.08455, allocations: 7.984 kB / 334 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.08456, allocations: 8 kB / 334 MB, free: 13.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.908e-05/0.08463, allocations: 115.2 kB / 334.1 MB, free: 12.94 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08464, allocations: 0 / 334.1 MB, free: 12.94 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.08488, allocations: 23.94 kB / 334.1 MB, free: 12.91 MB / 286.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007095/0.08559, allocations: 0.8506 MB / 335 MB, free: 12.03 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.08592, allocations: 136 kB / 335.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.08593, allocations: 0 / 335.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.08609, allocations: 71.83 kB / 335.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.08649, allocations: 31.55 kB / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.08867, allocations: 1.981 MB / 337.2 MB, free: 9.711 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.08891, allocations: 0.7126 MB / 337.9 MB, free: 8.973 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.145e-05/0.08896, allocations: 13.42 kB / 337.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.681e-05/0.08904, allocations: 35.44 kB / 337.9 MB, free: 8.926 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08904, allocations: 3.938 kB / 337.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.1006, allocations: 3.011 MB / 341 MB, free: 5.883 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.1008, allocations: 186.6 kB / 341.1 MB, free: 5.625 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.745, allocations: 3.938 kB / 341.1 MB, free: 5.621 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_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.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.y,limit_v.y_start,positionSmoothed.initType,positionSmoothed.k,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