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.001078/0.001078, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 55.62 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1046, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002817/0.1074, allocations: 1.678 MB / 359.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009025/0.1084, allocations: 0.5198 MB / 359.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.496e-05/0.1085, allocations: 3.938 kB / 359.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.1086, allocations: 7.875 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.331e-05/0.1087, allocations: 27.78 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001662/0.1089, allocations: 51.88 kB / 359.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.109, allocations: 111.6 kB / 360 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.1092, allocations: 33.08 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.15e-05/0.1092, allocations: 39.8 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.029e-05/0.1093, allocations: 55.64 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.1094, allocations: 4 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.848e-05/0.1094, allocations: 12 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/0.1094, allocations: 19.88 kB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.711e-05/0.1095, allocations: 47.67 kB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.1096, allocations: 99.89 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1096, allocations: 0 / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1096, allocations: 0 / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1096, allocations: 0 / 360.3 MB, free: 11.27 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.0005437/0.1102, allocations: 422.9 kB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.1102, allocations: 12.03 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.1103, allocations: 38.75 kB / 360.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.1103, allocations: 12.84 kB / 360.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/0.1105, allocations: 212.5 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.1105, allocations: 4.375 kB / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.1106, allocations: 15.94 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.1109, allocations: 144 kB / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1109, allocations: 0 / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1109, allocations: 0 / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1109, allocations: 4 kB / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.1111, allocations: 63.94 kB / 361.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006636/0.1118, allocations: 0.5515 MB / 361.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.1121, allocations: 130.5 kB / 361.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.1123, allocations: 52.83 kB / 361.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.1123, allocations: 7.984 kB / 361.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.1123, allocations: 30.75 kB / 362 MB, free: 9.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 2.735e-06/0.1124, allocations: 0 / 362 MB, free: 9.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001081/0.1134, allocations: 0.5102 MB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.1135, allocations: 55.41 kB / 362.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.1136, allocations: 157.4 kB / 362.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.1136, allocations: 29.89 kB / 362.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.326e-05/0.1137, allocations: 115.9 kB / 362.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.138e-05/0.1137, allocations: 51.23 kB / 362.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.041e-05/0.1138, allocations: 29.72 kB / 362.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.948e-05/0.1139, allocations: 330.8 kB / 363.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.1141, allocations: 51.95 kB / 363.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.1142, allocations: 75.39 kB / 363.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003/0.1145, allocations: 142.9 kB / 363.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1145, allocations: 0 / 363.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003711/0.1149, allocations: 173.4 kB / 363.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1149, allocations: 12.03 kB / 363.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.115, allocations: 4 kB / 363.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.115, allocations: 4 kB / 363.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.1151, allocations: 43.91 kB / 363.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1152, allocations: 0 / 363.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.885e-05/0.1152, allocations: 11.98 kB / 363.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1153, allocations: 8 kB / 363.7 MB, free: 7.504 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 8.507e-05/0.1154, allocations: 121.8 kB / 363.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/0.1154, allocations: 15.84 kB / 363.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.1154, allocations: 20.7 kB / 363.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1154, allocations: 0 / 363.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1155, allocations: 0 / 363.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1155, allocations: 3.938 kB / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007618/0.1162, allocations: 0.4921 MB / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.1162, allocations: 0 / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.1164, allocations: 31.97 kB / 364.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.1164, allocations: 4 kB / 364.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.1164, allocations: 4 kB / 364.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1164, allocations: 4.062 kB / 364.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1165, allocations: 4 kB / 364.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005523/0.117, allocations: 320.9 kB / 364.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.1171, allocations: 92.95 kB / 364.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.1171, allocations: 0 / 364.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.1172, allocations: 15.98 kB / 364.8 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.1173, allocations: 7.984 kB / 364.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.1173, allocations: 4 kB / 364.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.074e-05/0.1174, allocations: 114.4 kB / 365 MB, free: 6.148 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1174, allocations: 3.938 kB / 365 MB, free: 6.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002573/0.1176, allocations: 27.94 kB / 365 MB, free: 6.117 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.0007474/0.1184, allocations: 0.8506 MB / 365.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003502/0.1187, allocations: 135.8 kB / 366 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1188, allocations: 192 / 366 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.1189, allocations: 67.91 kB / 366 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.1193, allocations: 38.64 kB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.1216, allocations: 1.928 MB / 368 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.1218, allocations: 0.7045 MB / 368.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.574e-05/0.1219, allocations: 17.42 kB / 368.7 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.574e-05/0.1219, allocations: 43.42 kB / 368.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.122, allocations: 0 / 368.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.159/0.281, allocations: 3.284 MB / 372.1 MB, free: 20.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.301/7.582, allocations: 6.344 kB / 372.1 MB, free: 20.14 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