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.001799/0.001799, allocations: 113.4 kB / 17.06 MB, free: 6.004 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.002341/0.002341, allocations: 200 kB / 18 MB, free: 5.082 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.84/1.84, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4975/0.4992, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.005759/0.505, allocations: 1.662 MB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.5067, allocations: 495.5 kB / 402.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.507, allocations: 4 kB / 402.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.5072, allocations: 11.81 kB / 402.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.5074, allocations: 31.77 kB / 402.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.5078, allocations: 43.89 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000358/0.5081, allocations: 123.5 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.5083, allocations: 29.05 kB / 402.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.5085, allocations: 39.8 kB / 402.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.5087, allocations: 47.72 kB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.5087, allocations: 8 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.299e-05/0.5088, allocations: 8 kB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.345e-05/0.5088, allocations: 15.92 kB / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.5089, allocations: 55.66 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.5092, allocations: 93.33 kB / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.307e-06/0.5092, allocations: 3.984 kB / 402.9 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5093, allocations: 0 / 402.9 MB, free: 6.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.5093, allocations: 0 / 402.9 MB, free: 6.137 MB / 318.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.0009701/0.5103, allocations: 434.8 kB / 403.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.5103, allocations: 8.031 kB / 403.3 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.127e-05/0.5104, allocations: 42.75 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.245e-05/0.5105, allocations: 12.75 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005111/0.511, allocations: 226.1 kB / 403.6 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.5111, allocations: 8 kB / 403.6 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/0.5111, allocations: 19.97 kB / 403.6 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.5116, allocations: 128.1 kB / 403.7 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.5116, allocations: 4 kB / 403.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.5117, allocations: 8 kB / 403.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.5117, allocations: 0 / 403.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.512, allocations: 67.89 kB / 403.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.5132, allocations: 0.5476 MB / 404.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006219/0.5138, allocations: 126.5 kB / 404.5 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.5141, allocations: 64.81 kB / 404.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.5141, allocations: 4.125 kB / 404.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.5142, allocations: 34.5 kB / 404.6 MB, free: 4.238 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 2.064e-06/0.5142, allocations: 4 kB / 404.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002018/0.5162, allocations: 0.5026 MB / 405.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.015e-05/0.5163, allocations: 55.34 kB / 405.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.5165, allocations: 150.3 kB / 405.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.5166, allocations: 33.64 kB / 405.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.5167, allocations: 111.9 kB / 405.4 MB, free: 3.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.759e-05/0.5168, allocations: 47.39 kB / 405.5 MB, free: 3.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.633e-05/0.5169, allocations: 29.7 kB / 405.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.5171, allocations: 322.8 kB / 405.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.5174, allocations: 51.95 kB / 405.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.5177, allocations: 87.3 kB / 406 MB, free: 2.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005702/0.5183, allocations: 134.4 kB / 406.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5184, allocations: 0 / 406.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0007685/0.5191, allocations: 177.4 kB / 406.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.5192, allocations: 10.66 kB / 406.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.5192, allocations: 0 / 406.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.5192, allocations: 0 / 406.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.5195, allocations: 40.02 kB / 406.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.5196, allocations: 7.984 kB / 406.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.5197, allocations: 15.98 kB / 406.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.5198, allocations: 4 kB / 406.4 MB, free: 2.355 MB / 318.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.0001627/0.52, allocations: 121.8 kB / 406.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.52, allocations: 15.75 kB / 406.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.558e-05/0.5201, allocations: 16.72 kB / 406.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.5201, allocations: 8 kB / 406.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.5202, allocations: 0 / 406.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.5202, allocations: 0 / 406.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.5216, allocations: 499.9 kB / 407 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.5216, allocations: 4 kB / 407 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.5219, allocations: 27.98 kB / 407 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.522, allocations: 0 / 407 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.522, allocations: 12 kB / 407 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.077e-06/0.522, allocations: 3.984 kB / 407 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.522, allocations: 3.938 kB / 407.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.5232, allocations: 321 kB / 407.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.5233, allocations: 89.02 kB / 407.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.745e-05/0.5234, allocations: 4 kB / 407.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.5236, allocations: 12.03 kB / 407.5 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-05/0.5237, allocations: 20.02 kB / 407.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.5238, allocations: 7.938 kB / 407.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001918/0.524, allocations: 112.9 kB / 407.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.524, allocations: 4 kB / 407.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004355/0.5244, allocations: 20 kB / 407.6 MB, free: 0.9648 MB / 318.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.001652/0.5261, allocations: 0.8545 MB / 408.5 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007625/0.5269, allocations: 123.8 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.5269, allocations: 4 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003388/0.5273, allocations: 67.89 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007148/0.528, allocations: 44.2 kB / 408.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004294/0.5323, allocations: 1.941 MB / 410.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.5329, allocations: 0.7045 MB / 411.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.533, allocations: 17.42 kB / 411.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.5331, allocations: 39.42 kB / 411.4 MB, free: 13 MB / 334.1 MB Notification: Performance of SimCode: time 1.393e-06/0.5332, allocations: 4.125 kB / 411.4 MB, free: 13 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03882/0.572, allocations: 3.435 MB / 414.9 MB, free: 9.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.64, allocations: 7.797 kB / 414.9 MB, free: 9.645 MB / 334.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