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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 211 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 230.5 MB / 258.2 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 59.91 kB / 378.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3873, allocations: 53.41 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003625/0.3909, allocations: 1.706 MB / 433.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.3921, allocations: 0.522 MB / 434.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.3922, allocations: 7.938 kB / 434.2 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.3923, allocations: 15.8 kB / 434.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.3924, allocations: 31.78 kB / 434.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000194/0.3926, allocations: 43.89 kB / 434.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.3929, allocations: 119.6 kB / 434.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.393, allocations: 17.25 kB / 434.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.409e-05/0.3931, allocations: 47.78 kB / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.3932, allocations: 47.72 kB / 434.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.3932, allocations: 12 kB / 434.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.95e-05/0.3932, allocations: 8 kB / 434.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.3933, allocations: 23.91 kB / 434.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.792e-05/0.3934, allocations: 43.67 kB / 434.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.3935, allocations: 99.03 kB / 434.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3935, allocations: 0 / 434.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3936, allocations: 0 / 434.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.3936, allocations: 0 / 434.7 MB, free: 3.965 MB / 334.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.000656/0.3942, allocations: 355 kB / 435 MB, free: 3.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.3943, allocations: 12.03 kB / 435.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.497e-05/0.3943, allocations: 192 / 435.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.3943, allocations: 38.75 kB / 435.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.3944, allocations: 16.84 kB / 435.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.3947, allocations: 162.4 kB / 435.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.3947, allocations: 16.08 kB / 435.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.3947, allocations: 12 kB / 435.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.3951, allocations: 127 kB / 435.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3951, allocations: 4 kB / 435.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.3951, allocations: 4 kB / 435.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3951, allocations: 3.938 kB / 435.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.3953, allocations: 71.94 kB / 435.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008162/0.3961, allocations: 0.5194 MB / 436 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.3965, allocations: 130.4 kB / 436.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3966, allocations: 52.81 kB / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.3967, allocations: 0 / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.3967, allocations: 42.56 kB / 436.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 9.92e-07/0.3967, allocations: 0 / 436.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001204/0.3979, allocations: 449 kB / 436.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.398, allocations: 51.41 kB / 436.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.3981, allocations: 153.3 kB / 436.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.3981, allocations: 25.7 kB / 436.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.233e-05/0.3982, allocations: 112 kB / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.339e-05/0.3983, allocations: 51.56 kB / 437.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.707e-05/0.3983, allocations: 33.7 kB / 437.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3985, allocations: 326.8 kB / 437.4 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.3987, allocations: 51.95 kB / 437.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.3988, allocations: 93.89 kB / 437.6 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.3991, allocations: 127.4 kB / 437.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.91e-07/0.3991, allocations: 0 / 437.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003706/0.3995, allocations: 185.4 kB / 437.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3995, allocations: 11.94 kB / 437.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3995, allocations: 0 / 437.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.3996, allocations: 4 kB / 437.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3997, allocations: 35.97 kB / 437.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.3997, allocations: 3.938 kB / 437.9 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.829e-05/0.3998, allocations: 11.98 kB / 437.9 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.3998, allocations: 12.09 kB / 437.9 MB, free: 480 kB / 334.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 0.0001194/0.3999, allocations: 113.8 kB / 438.1 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.971e-05/0.4, allocations: 23.84 kB / 438.1 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.147e-05/0.4, allocations: 12.66 kB / 438.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.4, allocations: 4 kB / 438.1 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4, allocations: 0 / 438.1 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.4, allocations: 3.984 kB / 438.1 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008101/0.4009, allocations: 459.1 kB / 438.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.4009, allocations: 4 kB / 438.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.401, allocations: 43.89 kB / 438.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.401, allocations: 4.812 kB / 438.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.401, allocations: 4 kB / 438.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.401, allocations: 0 / 438.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.4011, allocations: 4 kB / 438.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.4017, allocations: 321 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.352e-05/0.4017, allocations: 15.84 kB / 438.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.4017, allocations: 15.88 kB / 438.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.4018, allocations: 12.03 kB / 439 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.4019, allocations: 11.98 kB / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.4019, allocations: 0 / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.402, allocations: 120 kB / 439.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.402, allocations: 4 kB / 439.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.4022, allocations: 20 kB / 439.1 MB, free: 15.21 MB / 350.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.0008772/0.4031, allocations: 0.8431 MB / 440 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003778/0.4035, allocations: 123.5 kB / 440.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4035, allocations: 3.938 kB / 440.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.4037, allocations: 63.89 kB / 440.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.4041, allocations: 31.97 kB / 440.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.4067, allocations: 1.944 MB / 442.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.4071, allocations: 0.7164 MB / 442.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.919e-05/0.4071, allocations: 13.42 kB / 442.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.061e-05/0.4072, allocations: 43.36 kB / 442.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4072, allocations: 0 / 442.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.433, allocations: 3.566 MB / 446.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.5, allocations: 14.86 kB / 446.5 MB, free: 7.801 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 14.124352040002123]