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.0008958/0.0008955, allocations: 93.97 kB / 17.3 MB, free: 6.391 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.001059/0.001059, allocations: 174.6 kB / 18.2 MB, free: 5.551 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.475/1.475, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0006759/0.000676, allocations: 12 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09422/0.09491, allocations: 47.57 MB / 329 MB, free: 3.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.001875/0.09683, allocations: 1.378 MB / 330.4 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000796/0.09765, allocations: 0.5193 MB / 330.9 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.925e-05/0.09774, allocations: 0 / 330.9 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.746e-05/0.09784, allocations: 7.875 kB / 331 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.64e-05/0.09794, allocations: 23.84 kB / 331 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001464/0.09809, allocations: 35.97 kB / 331 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.09826, allocations: 115.5 kB / 331.1 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.09838, allocations: 28.91 kB / 331.1 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.441e-05/0.09844, allocations: 35.73 kB / 331.2 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.191e-05/0.09854, allocations: 39.77 kB / 331.2 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.09856, allocations: 4 kB / 331.2 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.543e-05/0.09858, allocations: 4 kB / 331.2 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.09861, allocations: 15.88 kB / 331.2 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.893e-05/0.09868, allocations: 73.36 kB / 331.3 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.09881, allocations: 91.84 kB / 331.4 MB, free: 1.293 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.09882, allocations: 0 / 331.4 MB, free: 1.293 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.09883, allocations: 0 / 331.4 MB, free: 1.293 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.09884, allocations: 0 / 331.4 MB, free: 1.293 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.0005366/0.09938, allocations: 419 kB / 331.8 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.09943, allocations: 12.03 kB / 331.8 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.615e-05/0.09949, allocations: 42.73 kB / 331.9 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.09953, allocations: 12.84 kB / 331.9 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.0998, allocations: 216.6 kB / 332.1 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.09983, allocations: 8.375 kB / 332.1 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.09987, allocations: 11.94 kB / 332.1 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003123/0.1002, allocations: 144.1 kB / 332.3 MB, free: 344 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.1002, allocations: 7.922 kB / 332.3 MB, free: 336 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.1002, allocations: 0 / 332.3 MB, free: 336 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.1003, allocations: 4 kB / 332.3 MB, free: 332 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.1005, allocations: 79.94 kB / 332.3 MB, free: 252 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007454/0.1012, allocations: 0.5518 MB / 332.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.1016, allocations: 158.4 kB / 333.1 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.1018, allocations: 64.83 kB / 333.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.1018, allocations: 0 / 333.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.1018, allocations: 38.56 kB / 333.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 9.82e-07/0.1018, allocations: 3.938 kB / 333.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001231/0.1031, allocations: 0.5681 MB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.1031, allocations: 51.41 kB / 333.8 MB, free: 14.67 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.1033, allocations: 154.2 kB / 333.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.1033, allocations: 29.69 kB / 334 MB, free: 14.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.519e-05/0.1034, allocations: 108 kB / 334.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.1034, allocations: 43.36 kB / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.1035, allocations: 21.7 kB / 334.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1036, allocations: 330.8 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.1038, allocations: 55.95 kB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.104, allocations: 99.33 kB / 334.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.1043, allocations: 147.4 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.1043, allocations: 3.938 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004/0.1047, allocations: 205.4 kB / 334.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1047, allocations: 7.938 kB / 335 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1047, allocations: 0 / 335 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.1048, allocations: 4 kB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1049, allocations: 39.97 kB / 335 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.1049, allocations: 3.938 kB / 335 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.653e-05/0.105, allocations: 24.05 kB / 335 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1051, allocations: 8 kB / 335 MB, free: 13.35 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 9.648e-05/0.1052, allocations: 113.8 kB / 335.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.1052, allocations: 11.84 kB / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.1052, allocations: 16.72 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1053, allocations: 0 / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1053, allocations: 4 kB / 335.2 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.1053, allocations: 12.86 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007725/0.1061, allocations: 0.5155 MB / 335.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1061, allocations: 4.062 kB / 335.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.1062, allocations: 43.92 kB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1062, allocations: 4.078 kB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.1063, allocations: 3.938 kB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1063, allocations: 4 kB / 335.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1063, allocations: 0 / 335.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005887/0.1069, allocations: 352.9 kB / 336.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.776e-05/0.1069, allocations: 88.92 kB / 336.2 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.107, allocations: 4 kB / 336.2 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.1071, allocations: 24.03 kB / 336.2 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/0.1072, allocations: 11.97 kB / 336.2 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.1072, allocations: 7.938 kB / 336.2 MB, free: 12.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001301/0.1073, allocations: 115.9 kB / 336.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1073, allocations: 0 / 336.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.1076, allocations: 23.94 kB / 336.4 MB, free: 11.89 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.0009351/0.1085, allocations: 0.8819 MB / 337.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003643/0.1089, allocations: 144 kB / 337.4 MB, free: 10.83 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1089, allocations: 0 / 337.4 MB, free: 10.83 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.1091, allocations: 75.89 kB / 337.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.1095, allocations: 44.09 kB / 337.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.112, allocations: 2.051 MB / 339.6 MB, free: 8.555 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.1123, allocations: 0.7167 MB / 340.3 MB, free: 7.812 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.934e-05/0.1124, allocations: 13.42 kB / 340.3 MB, free: 7.801 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.901e-05/0.1124, allocations: 39.36 kB / 340.3 MB, free: 7.762 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1124, allocations: 0 / 340.3 MB, free: 7.762 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01207/0.1245, allocations: 2.931 MB / 343.3 MB, free: 4.836 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/0.1247, allocations: 193.9 kB / 343.5 MB, free: 4.57 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/1.861, allocations: 0 / 343.5 MB, free: 4.57 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