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.001395/0.001396, allocations: 117.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.00166, allocations: 212.5 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2876, allocations: 50.54 MB / 408.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.00297/0.2906, allocations: 1.686 MB / 410.4 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.2917, allocations: 0.5143 MB / 410.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.575e-05/0.2918, allocations: 11.88 kB / 411 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.2919, allocations: 7.875 kB / 411 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.487e-05/0.292, allocations: 23.73 kB / 411 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.2922, allocations: 51.92 kB / 411 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.2924, allocations: 107.6 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.2925, allocations: 29.11 kB / 411.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.287e-05/0.2926, allocations: 43.77 kB / 411.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.681e-05/0.2927, allocations: 47.72 kB / 411.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.2927, allocations: 4 kB / 411.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.488e-05/0.2928, allocations: 8 kB / 411.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.2928, allocations: 23.86 kB / 411.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.06e-05/0.2928, allocations: 51.67 kB / 411.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.293, allocations: 89.45 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.293, allocations: 0 / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.293, allocations: 0 / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.293, allocations: 4 kB / 411.4 MB, free: 15 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.000592/0.2936, allocations: 430.9 kB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2937, allocations: 12.03 kB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.74e-05/0.2937, allocations: 42.73 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.872e-05/0.2938, allocations: 16.75 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.2941, allocations: 220 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.2941, allocations: 8.375 kB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.984e-05/0.2941, allocations: 11.94 kB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.2944, allocations: 126.4 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2944, allocations: 0 / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.2945, allocations: 7.938 kB / 412.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2945, allocations: 7.984 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.2947, allocations: 71.88 kB / 412.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007136/0.2954, allocations: 0.5437 MB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.2958, allocations: 134.4 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.2959, allocations: 52.83 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.296, allocations: 11.98 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.296, allocations: 30.56 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.296, allocations: 0 / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001138/0.2971, allocations: 0.5135 MB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.2972, allocations: 55.41 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2973, allocations: 146.2 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.2974, allocations: 33.7 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.625e-05/0.2974, allocations: 107.9 kB / 414 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.2975, allocations: 43.38 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.06e-05/0.2975, allocations: 37.72 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.2977, allocations: 322.8 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.2978, allocations: 55.86 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.298, allocations: 82.2 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.2983, allocations: 142.8 kB / 414.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2983, allocations: 3.984 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003798/0.2987, allocations: 173.4 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.2987, allocations: 8.875 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2987, allocations: 0 / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2988, allocations: 4 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.299, allocations: 35.97 kB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.299, allocations: 3.984 kB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.325e-05/0.2991, allocations: 20.08 kB / 414.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.2991, allocations: 4 kB / 414.9 MB, free: 11.21 MB / 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.0001185/0.2992, allocations: 129.7 kB / 415 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.2993, allocations: 15.75 kB / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.95e-05/0.2993, allocations: 20.7 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2993, allocations: 3.938 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2993, allocations: 0 / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2993, allocations: 0 / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008181/0.3002, allocations: 0.4921 MB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3002, allocations: 0 / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.3004, allocations: 36.03 kB / 415.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3004, allocations: 4 kB / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.3004, allocations: 4 kB / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3004, allocations: 3.938 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3004, allocations: 4 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.301, allocations: 312.9 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.374e-05/0.3011, allocations: 85.05 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.3011, allocations: 8 kB / 416 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.3012, allocations: 11.98 kB / 416 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.3013, allocations: 19.92 kB / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.3013, allocations: 4 kB / 416 MB, free: 9.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.673e-05/0.3014, allocations: 112.7 kB / 416.2 MB, free: 9.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3014, allocations: 3.938 kB / 416.2 MB, free: 9.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002544/0.3016, allocations: 23.94 kB / 416.2 MB, free: 9.82 MB / 334.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.0008167/0.3025, allocations: 0.8427 MB / 417 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003676/0.3028, allocations: 127.9 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3029, allocations: 0 / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.303, allocations: 63.91 kB / 417.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.3035, allocations: 44.62 kB / 417.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.3059, allocations: 1.944 MB / 419.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.3063, allocations: 0.7122 MB / 419.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.61e-05/0.3063, allocations: 13.42 kB / 419.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.781e-05/0.3064, allocations: 39.42 kB / 420 MB, free: 5.867 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3064, allocations: 0 / 420 MB, free: 5.867 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.3286, allocations: 3.405 MB / 423.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/7.807, allocations: 2.656 kB / 423.4 MB, free: 2.539 MB / 334.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