Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_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.00122/0.00122, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.001351/0.001351, allocations: 184.2 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 47.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.09034, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002837/0.09321, allocations: 1.659 MB / 376.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.09424, allocations: 0.5275 MB / 376.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.0944, allocations: 4 kB / 376.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.09456, allocations: 11.81 kB / 376.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.09468, allocations: 27.78 kB / 376.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.09488, allocations: 47.88 kB / 376.9 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001991/0.09509, allocations: 119.6 kB / 377 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.09522, allocations: 25.39 kB / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.206e-05/0.09529, allocations: 43.73 kB / 377.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.727e-05/0.0954, allocations: 47.77 kB / 377.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.09543, allocations: 8 kB / 377.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.854e-05/0.09545, allocations: 8 kB / 377.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.788e-05/0.09549, allocations: 15.92 kB / 377.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.662e-05/0.09555, allocations: 59.61 kB / 377.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.0957, allocations: 91.58 kB / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.09571, allocations: 0 / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09572, allocations: 0 / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.09573, allocations: 3.984 kB / 377.3 MB, free: 2.367 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.0005459/0.09628, allocations: 427 kB / 377.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.09633, allocations: 8.031 kB / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.986e-05/0.09637, allocations: 42.75 kB / 377.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.729e-05/0.09642, allocations: 28.62 kB / 377.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.0967, allocations: 204.7 kB / 378 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.09672, allocations: 8.375 kB / 378 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.46e-05/0.09676, allocations: 19.92 kB / 378.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.09703, allocations: 128.1 kB / 378.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.09705, allocations: 0 / 378.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.09707, allocations: 8 kB / 378.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.09708, allocations: 0 / 378.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.09726, allocations: 63.95 kB / 378.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00069/0.09796, allocations: 0.5553 MB / 378.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.09829, allocations: 122.5 kB / 378.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.09844, allocations: 64.81 kB / 379 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.09846, allocations: 3.938 kB / 379 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.09849, allocations: 38.75 kB / 379 MB, free: 492 kB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.0985, allocations: 3.938 kB / 379 MB, free: 488 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.1672/0.2657, allocations: 0.4974 MB / 379.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.2658, allocations: 54.77 kB / 379.6 MB, free: 12.97 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.2659, allocations: 155.9 kB / 379.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.266, allocations: 32.23 kB / 379.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.323e-05/0.266, allocations: 116.9 kB / 379.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.266, allocations: 37.3 kB / 379.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.674e-05/0.2661, allocations: 34.27 kB / 379.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.325e-05/0.2661, allocations: 322.5 kB / 380.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.2663, allocations: 53.14 kB / 380.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.2664, allocations: 86.2 kB / 380.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.2667, allocations: 134.6 kB / 380.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2667, allocations: 1.375 kB / 380.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003315/0.267, allocations: 174.7 kB / 380.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2671, allocations: 12.97 kB / 380.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2671, allocations: 1.25 kB / 380.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2671, allocations: 4.656 kB / 380.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.2672, allocations: 40.84 kB / 380.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.2673, allocations: 2.016 kB / 380.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.888e-05/0.2673, allocations: 14.59 kB / 380.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.2674, allocations: 6.219 kB / 380.8 MB, free: 12.3 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 6.289e-05/0.2674, allocations: 126.6 kB / 380.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.446e-05/0.2675, allocations: 16.3 kB / 380.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.2675, allocations: 19 kB / 380.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2675, allocations: 2.141 kB / 380.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2675, allocations: 0.7031 kB / 380.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.2675, allocations: 1.891 kB / 380.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006297/0.2682, allocations: 0.4921 MB / 381.4 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2682, allocations: 1.312 kB / 381.4 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.2683, allocations: 34.77 kB / 381.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2684, allocations: 4.875 kB / 381.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.2684, allocations: 4.75 kB / 381.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.2684, allocations: 2.734 kB / 381.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2684, allocations: 1.375 kB / 381.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004516/0.2688, allocations: 322 kB / 381.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.592e-05/0.2689, allocations: 88.11 kB / 381.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.2689, allocations: 6.75 kB / 381.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.269, allocations: 14.02 kB / 381.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.828e-05/0.2691, allocations: 10.22 kB / 381.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.2691, allocations: 6 kB / 381.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.743e-05/0.2691, allocations: 116.4 kB / 382 MB, free: 11.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.2691, allocations: 0 / 382 MB, free: 11.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.2694, allocations: 29.56 kB / 382.1 MB, free: 11.54 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.0006319/0.2701, allocations: 0.8459 MB / 382.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00034/0.2704, allocations: 126 kB / 383 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2704, allocations: 0 / 383 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.2706, allocations: 68.14 kB / 383.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.271, allocations: 38.05 kB / 383.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.2729, allocations: 1.948 MB / 385.1 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.2731, allocations: 0.7122 MB / 385.8 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.431e-05/0.2731, allocations: 14.06 kB / 385.8 MB, free: 8.781 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.2732, allocations: 38.89 kB / 385.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2732, allocations: 1.062 kB / 385.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.2932, allocations: 3.435 MB / 389.3 MB, free: 8.137 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.919/8.212, allocations: 16.73 kB / 389.3 MB, free: 8.121 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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