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.001329/0.001329, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001733/0.001733, allocations: 214.2 kB / 24.52 MB, free: 3.918 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.562/1.562, allocations: 230.5 MB / 258.2 MB, free: 7.777 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.002026/0.002026, allocations: 55.91 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3831, allocations: 53.41 MB / 431.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.004402/0.3875, allocations: 1.656 MB / 433.6 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.389, allocations: 494.8 kB / 434 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.3891, allocations: 3.938 kB / 434 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.3893, allocations: 19.8 kB / 434.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.3895, allocations: 23.8 kB / 434.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.3898, allocations: 47.94 kB / 434.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.3901, allocations: 115.6 kB / 434.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.3902, allocations: 25.09 kB / 434.3 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3903, allocations: 39.8 kB / 434.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.3905, allocations: 55.69 kB / 434.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.3905, allocations: 12 kB / 434.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.189e-05/0.3905, allocations: 8 kB / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.967e-05/0.3906, allocations: 15.88 kB / 434.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.672e-05/0.3906, allocations: 35.8 kB / 434.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.3909, allocations: 97.34 kB / 434.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.697e-05/0.3909, allocations: 3.984 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3909, allocations: 0 / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3909, allocations: 0 / 434.5 MB, free: 3.809 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.0007945/0.3917, allocations: 353.8 kB / 434.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.456e-05/0.3918, allocations: 16.03 kB / 434.9 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.125e-05/0.3918, allocations: 4.141 kB / 434.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.479e-05/0.3918, allocations: 42.69 kB / 434.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.442e-05/0.3919, allocations: 8.891 kB / 434.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.3923, allocations: 166.2 kB / 435.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.3924, allocations: 12.12 kB / 435.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.998e-05/0.3924, allocations: 8 kB / 435.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.3928, allocations: 134.9 kB / 435.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3928, allocations: 4 kB / 435.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.3928, allocations: 0 / 435.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.3928, allocations: 0 / 435.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000225/0.393, allocations: 67.94 kB / 435.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009692/0.394, allocations: 0.5 MB / 435.8 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003771/0.3944, allocations: 134.4 kB / 436 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.3945, allocations: 52.81 kB / 436 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.3946, allocations: 7.984 kB / 436 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/0.3946, allocations: 34.56 kB / 436.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.3946, allocations: 3.938 kB / 436.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001268/0.3959, allocations: 444.9 kB / 436.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.3959, allocations: 55.41 kB / 436.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.3961, allocations: 157.3 kB / 436.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.3961, allocations: 25.7 kB / 436.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.3962, allocations: 112 kB / 436.8 MB, free: 1.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.3963, allocations: 51.56 kB / 436.9 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.95e-05/0.3964, allocations: 30.64 kB / 436.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3965, allocations: 326.8 kB / 437.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.3967, allocations: 47.91 kB / 437.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.3969, allocations: 91.45 kB / 437.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.3972, allocations: 139.3 kB / 437.5 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.3972, allocations: 0 / 437.5 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004081/0.3976, allocations: 180.5 kB / 437.7 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3976, allocations: 7.938 kB / 437.7 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3976, allocations: 3.938 kB / 437.7 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.3976, allocations: 4 kB / 437.7 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3978, allocations: 43.84 kB / 437.7 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.3978, allocations: 3.984 kB / 437.7 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.382e-05/0.3979, allocations: 20.08 kB / 437.8 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.3979, allocations: 4 kB / 437.8 MB, free: 328 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.0001329/0.3981, allocations: 121.8 kB / 437.9 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.3981, allocations: 19.83 kB / 437.9 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.3981, allocations: 12.72 kB / 437.9 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3982, allocations: 0 / 437.9 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3982, allocations: 0 / 437.9 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3982, allocations: 0 / 437.9 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008724/0.399, allocations: 463.1 kB / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.399, allocations: 0 / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.3992, allocations: 31.92 kB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.648e-06/0.3992, allocations: 7.984 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.3992, allocations: 0 / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3992, allocations: 0 / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.3992, allocations: 8.062 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006183/0.3999, allocations: 324.9 kB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.3999, allocations: 11.91 kB / 438.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.3999, allocations: 8 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.4, allocations: 12.03 kB / 438.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.546e-05/0.4001, allocations: 19.97 kB / 438.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.4001, allocations: 0 / 438.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.4002, allocations: 120 kB / 438.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4002, allocations: 0 / 438.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000267/0.4005, allocations: 16 kB / 438.9 MB, free: 15.08 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.0009201/0.4014, allocations: 0.8467 MB / 439.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003852/0.4018, allocations: 119.9 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.4018, allocations: 4.094 kB / 439.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.402, allocations: 68.16 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.4024, allocations: 46.25 kB / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.4054, allocations: 1.929 MB / 441.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.4055, allocations: 102.2 kB / 442 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.495e-05/0.4056, allocations: 17.59 kB / 442 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.449e-05/0.4057, allocations: 39.42 kB / 442.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4057, allocations: 0 / 442.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.4344, allocations: 3.701 MB / 445.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.53, allocations: 8.062 kB / 445.8 MB, free: 8.172 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.184842891991138]