Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008444/0.0008444, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009802/0.0009802, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.7 MB / 246.8 MB, free: 11.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002265/0.0002264, allocations: 4 kB / 307.8 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08081/0.08105, allocations: 51.53 MB / 359.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.001786/0.08287, allocations: 1.386 MB / 360.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000897/0.0838, allocations: 0.5027 MB / 361.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.997e-05/0.08392, allocations: 7.938 kB / 361.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.426e-05/0.08402, allocations: 15.86 kB / 361.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.736e-05/0.08412, allocations: 19.84 kB / 361.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001631/0.08429, allocations: 35.97 kB / 361.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.08447, allocations: 107.6 kB / 361.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.0846, allocations: 33.08 kB / 361.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.672e-05/0.08466, allocations: 27.86 kB / 361.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.935e-05/0.08475, allocations: 47.66 kB / 361.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.08477, allocations: 4 kB / 361.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.433e-05/0.08479, allocations: 4 kB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.08482, allocations: 11.92 kB / 361.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.752e-05/0.08489, allocations: 77.36 kB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.085, allocations: 75.91 kB / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.08501, allocations: 0 / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.08501, allocations: 0 / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.08503, allocations: 4 kB / 361.7 MB, free: 10.85 MB / 302.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.0005231/0.08556, allocations: 423 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.0856, allocations: 8.031 kB / 362.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.031e-05/0.08565, allocations: 38.75 kB / 362.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.355e-05/0.08568, allocations: 12.84 kB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.08592, allocations: 216.6 kB / 362.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.08594, allocations: 8.375 kB / 362.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.08598, allocations: 23.83 kB / 362.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.08627, allocations: 138.4 kB / 362.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.08629, allocations: 3.938 kB / 362.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.0863, allocations: 7.984 kB / 362.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.08632, allocations: 4 kB / 362.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.08654, allocations: 79.89 kB / 362.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007076/0.08725, allocations: 0.5556 MB / 363.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003676/0.08763, allocations: 154.4 kB / 363.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.0878, allocations: 68.81 kB / 363.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.128e-05/0.08782, allocations: 4 kB / 363.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.08786, allocations: 34.56 kB / 363.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.08786, allocations: 0 / 363.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001098/0.08897, allocations: 0.5564 MB / 364 MB, free: 8.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.931e-05/0.08901, allocations: 59.41 kB / 364.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.08914, allocations: 153.5 kB / 364.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.08916, allocations: 29.7 kB / 364.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.777e-05/0.08923, allocations: 112 kB / 364.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.08927, allocations: 43.36 kB / 364.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.0893, allocations: 17.72 kB / 364.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.08942, allocations: 330.8 kB / 364.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.0896, allocations: 59.97 kB / 364.8 MB, free: 7.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.08977, allocations: 99.33 kB / 364.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.0901, allocations: 155.3 kB / 365.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.09011, allocations: 0 / 365.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000398/0.09051, allocations: 204.6 kB / 365.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.09054, allocations: 7.938 kB / 365.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.09055, allocations: 4.094 kB / 365.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.09056, allocations: 4 kB / 365.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.09073, allocations: 39.97 kB / 365.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.09074, allocations: 0 / 365.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.403e-05/0.09083, allocations: 23.98 kB / 365.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-06/0.09085, allocations: 8 kB / 365.3 MB, free: 6.906 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.399e-05/0.09095, allocations: 125.7 kB / 365.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.618e-05/0.09099, allocations: 11.84 kB / 365.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.091e-05/0.09104, allocations: 16.7 kB / 365.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.09104, allocations: 0 / 365.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.09105, allocations: 0 / 365.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.09106, allocations: 0 / 365.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007491/0.09181, allocations: 0.5281 MB / 366 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.09183, allocations: 0 / 366 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.092, allocations: 44.03 kB / 366.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.09201, allocations: 0 / 366.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.09202, allocations: 3.938 kB / 366.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.09203, allocations: 4 kB / 366.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.09204, allocations: 0 / 366.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005472/0.09259, allocations: 357 kB / 366.4 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.09265, allocations: 96.95 kB / 366.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.09267, allocations: 4 kB / 366.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.09279, allocations: 15.98 kB / 366.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.09284, allocations: 19.92 kB / 366.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.09285, allocations: 8 kB / 366.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.916e-05/0.09292, allocations: 108.5 kB / 366.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09293, allocations: 4 kB / 366.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002347/0.09317, allocations: 23.94 kB / 366.7 MB, free: 5.438 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.0007749/0.09395, allocations: 0.874 MB / 367.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003586/0.09432, allocations: 151.9 kB / 367.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.09433, allocations: 0 / 367.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.0945, allocations: 76.08 kB / 367.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.09489, allocations: 34.48 kB / 367.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.09712, allocations: 2.045 MB / 369.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.09741, allocations: 0.7048 MB / 370.6 MB, free: 1.379 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.134e-05/0.09747, allocations: 13.42 kB / 370.6 MB, free: 1.367 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.94e-05/0.09754, allocations: 43.42 kB / 370.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.09755, allocations: 0 / 370.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.146/0.2436, allocations: 2.903 MB / 373.5 MB, free: 19.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001469/0.2437, allocations: 187.7 kB / 373.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/1.92, allocations: 0 / 373.7 MB, free: 18.8 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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