Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_0_0_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.001116/0.001115, allocations: 105.8 kB / 16.51 MB, free: 6.707 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.001115/0.001115, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 43.23 kB / 300.1 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0874/0.08849, allocations: 49.44 MB / 349.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002709/0.09123, allocations: 1.729 MB / 351.2 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007538/0.09201, allocations: 478.8 kB / 351.7 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.09213, allocations: 4 kB / 351.7 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.09225, allocations: 11.86 kB / 351.7 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.051e-05/0.09236, allocations: 23.86 kB / 351.7 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.09255, allocations: 39.95 kB / 351.8 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.09271, allocations: 115.6 kB / 351.9 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.09283, allocations: 25.11 kB / 351.9 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.864e-05/0.09289, allocations: 43.72 kB / 351.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.205e-05/0.09298, allocations: 43.78 kB / 352 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.09301, allocations: 4 kB / 352 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.796e-05/0.09303, allocations: 7.938 kB / 352 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.539e-05/0.09306, allocations: 15.92 kB / 352 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.206e-05/0.09312, allocations: 51.61 kB / 352.1 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.09323, allocations: 79.92 kB / 352.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.09325, allocations: 7.984 kB / 352.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09325, allocations: 0 / 352.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.09326, allocations: 0 / 352.2 MB, free: 2.055 MB / 286.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.0005281/0.0938, allocations: 430.9 kB / 352.6 MB, free: 1.586 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.09385, allocations: 12.03 kB / 352.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.854e-05/0.0939, allocations: 34.75 kB / 352.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.09394, allocations: 12.84 kB / 352.6 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.09415, allocations: 223.3 kB / 352.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.09418, allocations: 12 kB / 352.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.09421, allocations: 12 kB / 352.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.09448, allocations: 124.2 kB / 353 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.09451, allocations: 3.906 kB / 353 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.09453, allocations: 4 kB / 353 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.09454, allocations: 7.938 kB / 353 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.09474, allocations: 71.94 kB / 353.1 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006404/0.09539, allocations: 0.5477 MB / 353.6 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.09573, allocations: 130.4 kB / 353.8 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.09588, allocations: 56.83 kB / 353.8 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.0959, allocations: 7.984 kB / 353.8 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.09593, allocations: 38.5 kB / 353.9 MB, free: 168 kB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.09594, allocations: 0 / 353.9 MB, free: 168 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001103/0.09705, allocations: 0.5063 MB / 354.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.09709, allocations: 51.41 kB / 354.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.09723, allocations: 152.1 kB / 354.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.09725, allocations: 26.08 kB / 354.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.015e-05/0.09733, allocations: 127.7 kB / 354.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.09737, allocations: 47.28 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/0.09742, allocations: 29.72 kB / 354.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.09753, allocations: 326.8 kB / 355.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.09769, allocations: 47.95 kB / 355.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.09786, allocations: 91.33 kB / 355.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.09815, allocations: 132.9 kB / 355.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.09817, allocations: 4 kB / 355.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003662/0.09854, allocations: 181.2 kB / 355.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.09857, allocations: 8 kB / 355.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.09858, allocations: 0 / 355.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.0986, allocations: 0 / 355.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.09877, allocations: 40.06 kB / 355.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.09879, allocations: 7.938 kB / 355.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.586e-05/0.09888, allocations: 15.98 kB / 355.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.0989, allocations: 4 kB / 355.6 MB, free: 14.27 MB / 302.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.473e-05/0.099, allocations: 117.8 kB / 355.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.093e-05/0.09904, allocations: 15.84 kB / 355.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.171e-05/0.09909, allocations: 16.7 kB / 355.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.0991, allocations: 7.984 kB / 355.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.09911, allocations: 4 kB / 355.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.09912, allocations: 0 / 355.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007126/0.09984, allocations: 495.9 kB / 356.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.09986, allocations: 4 kB / 356.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.1, allocations: 35.91 kB / 356.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.1, allocations: 0 / 356.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.1001, allocations: 4 kB / 356.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1001, allocations: 0 / 356.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1001, allocations: 0 / 356.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005185/0.1006, allocations: 324.9 kB / 356.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.1006, allocations: 92.95 kB / 356.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.1007, allocations: 8 kB / 356.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.1008, allocations: 15.98 kB / 356.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/0.1008, allocations: 11.92 kB / 356.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.1009, allocations: 8 kB / 356.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.27e-05/0.1009, allocations: 114.9 kB / 356.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1009, allocations: 0 / 356.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002492/0.1012, allocations: 20.09 kB / 356.9 MB, free: 12.88 MB / 302.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.000806/0.102, allocations: 0.862 MB / 357.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003443/0.1024, allocations: 127.5 kB / 357.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1024, allocations: 0 / 357.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.1025, allocations: 64.22 kB / 357.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004754/0.103, allocations: 43.91 kB / 358 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.1054, allocations: 1.966 MB / 360 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.1057, allocations: 0.7087 MB / 360.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.248e-05/0.1057, allocations: 13.42 kB / 360.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/0.1058, allocations: 35.44 kB / 360.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1058, allocations: 0 / 360.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.1223, allocations: 3.011 MB / 363.7 MB, free: 5.984 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.1226, allocations: 185.4 kB / 363.9 MB, free: 5.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/1.906, allocations: 4 kB / 363.9 MB, free: 5.73 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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