Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 110 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 48.8 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09445/0.09566, allocations: 49.45 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002826/0.09852, allocations: 1.663 MB / 351.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008415/0.09938, allocations: 488.2 kB / 352.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.713e-05/0.09949, allocations: 4 kB / 352.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.09962, allocations: 15.86 kB / 352.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.938e-05/0.09973, allocations: 27.72 kB / 352.3 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001725/0.09991, allocations: 43.94 kB / 352.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.1001, allocations: 127.5 kB / 352.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1002, allocations: 25.11 kB / 352.5 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.432e-05/0.1003, allocations: 31.86 kB / 352.6 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.992e-05/0.1004, allocations: 51.66 kB / 352.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.253e-05/0.1004, allocations: 8 kB / 352.6 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.933e-05/0.1004, allocations: 8 kB / 352.6 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.881e-05/0.1005, allocations: 31.91 kB / 352.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.991e-05/0.1005, allocations: 39.73 kB / 352.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.1006, allocations: 91.86 kB / 352.8 MB, free: 1.684 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1007, allocations: 4 kB / 352.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1007, allocations: 0 / 352.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.1007, allocations: 3.938 kB / 352.8 MB, free: 1.676 MB / 286.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.0005463/0.1012, allocations: 422.9 kB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1013, allocations: 8.031 kB / 353.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.696e-05/0.1013, allocations: 50.73 kB / 353.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.1014, allocations: 8.844 kB / 353.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.1016, allocations: 216.3 kB / 353.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.1016, allocations: 8 kB / 353.5 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.1017, allocations: 12 kB / 353.5 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.1019, allocations: 131.1 kB / 353.6 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.102, allocations: 7.906 kB / 353.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.102, allocations: 4 kB / 353.6 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.102, allocations: 4 kB / 353.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.1022, allocations: 67.88 kB / 353.7 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006909/0.1029, allocations: 0.5516 MB / 354.3 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.1033, allocations: 142.4 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.1034, allocations: 52.83 kB / 354.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.1035, allocations: 7.984 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.1035, allocations: 34.5 kB / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.1035, allocations: 0 / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001106/0.1046, allocations: 0.5058 MB / 355 MB, free: 15.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.1047, allocations: 51.41 kB / 355.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.1048, allocations: 157.9 kB / 355.2 MB, free: 15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1048, allocations: 29.7 kB / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/0.1049, allocations: 119.7 kB / 355.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.1049, allocations: 43.36 kB / 355.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-05/0.105, allocations: 29.72 kB / 355.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1051, allocations: 322.8 kB / 355.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.1053, allocations: 51.95 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.1054, allocations: 82.36 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003023/0.1057, allocations: 141.6 kB / 356 MB, free: 14.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1057, allocations: 0 / 356 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00038/0.1061, allocations: 185.2 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1062, allocations: 4 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1062, allocations: 4.094 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1062, allocations: 4 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.1064, allocations: 39.97 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1064, allocations: 0 / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.66e-05/0.1065, allocations: 12.92 kB / 356.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.1065, allocations: 4 kB / 356.3 MB, free: 13.9 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.995e-05/0.1066, allocations: 125.8 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.1066, allocations: 11.84 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.15e-05/0.1067, allocations: 20.72 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1067, allocations: 3.984 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1067, allocations: 0 / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.1067, allocations: 0 / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007376/0.1074, allocations: 0.4958 MB / 356.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1074, allocations: 0 / 356.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.1076, allocations: 35.91 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.1076, allocations: 4 kB / 357 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.1076, allocations: 4 kB / 357 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1077, allocations: 0 / 357 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1077, allocations: 8.062 kB / 357 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005394/0.1082, allocations: 320.5 kB / 357.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.1083, allocations: 92.92 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.1083, allocations: 8.031 kB / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.1084, allocations: 11.98 kB / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.1085, allocations: 19.86 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.1085, allocations: 4 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.975e-05/0.1086, allocations: 111.3 kB / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1086, allocations: 0 / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002593/0.1088, allocations: 20 kB / 357.5 MB, free: 12.51 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.0007824/0.1096, allocations: 0.8582 MB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003654/0.11, allocations: 127.9 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.11, allocations: 0 / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.1102, allocations: 68.09 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.1107, allocations: 51.5 kB / 358.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.1129, allocations: 1.925 MB / 360.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.1132, allocations: 0.7045 MB / 361.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.802e-05/0.1133, allocations: 17.42 kB / 361.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.138e-05/0.1134, allocations: 39.42 kB / 361.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1134, allocations: 0 / 361.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9256/1.039, allocations: 3.307 MB / 364.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.8, allocations: 22.56 kB / 364.7 MB, free: 5.293 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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