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.001297/0.001297, allocations: 113.2 kB / 17.73 MB, free: 5.355 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.001334/0.001334, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.403/1.403, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.00163/0.00163, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.102, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003276/0.1053, allocations: 1.679 MB / 376.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1064, allocations: 0.5197 MB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.1065, allocations: 0 / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.1067, allocations: 19.8 kB / 376.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.839e-05/0.1068, allocations: 23.8 kB / 376.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002352/0.107, allocations: 47.88 kB / 376.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.1072, allocations: 115.6 kB / 377 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.1073, allocations: 25.09 kB / 377.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.36e-05/0.1074, allocations: 47.73 kB / 377.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.1075, allocations: 43.77 kB / 377.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.1075, allocations: 12 kB / 377.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.899e-05/0.1076, allocations: 8 kB / 377.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.074e-05/0.1076, allocations: 19.92 kB / 377.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.424e-05/0.1077, allocations: 47.62 kB / 377.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.1079, allocations: 99.48 kB / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1079, allocations: 0 / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1079, allocations: 0 / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1079, allocations: 4 kB / 377.3 MB, free: 2.371 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.0006964/0.1086, allocations: 430.8 kB / 377.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001557/0.1088, allocations: 12.03 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.825e-05/0.1089, allocations: 42.69 kB / 377.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.1089, allocations: 8.891 kB / 377.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.1093, allocations: 220.7 kB / 378 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1093, allocations: 8.375 kB / 378 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.275e-05/0.1093, allocations: 11.94 kB / 378.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/0.1097, allocations: 132.1 kB / 378.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.1097, allocations: 0 / 378.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.1098, allocations: 4 kB / 378.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.1098, allocations: 4 kB / 378.2 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.11, allocations: 71.88 kB / 378.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009097/0.1109, allocations: 0.5477 MB / 378.8 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.1113, allocations: 130.5 kB / 378.9 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.1115, allocations: 60.77 kB / 379 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.1115, allocations: 3.938 kB / 379 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.1115, allocations: 34.69 kB / 379 MB, free: 496 kB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.1115, allocations: 0 / 379 MB, free: 496 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.1958/0.3074, allocations: 0.5026 MB / 379.5 MB, free: 13.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.3074, allocations: 56.34 kB / 379.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.3076, allocations: 158.8 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.3076, allocations: 30.64 kB / 379.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.157e-05/0.3076, allocations: 107.3 kB / 379.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/0.3077, allocations: 53.28 kB / 379.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.3077, allocations: 32.28 kB / 380 MB, free: 12.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.762e-05/0.3078, allocations: 326.1 kB / 380.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.3079, allocations: 50.61 kB / 380.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.3081, allocations: 86.52 kB / 380.4 MB, free: 12.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.3084, allocations: 127.8 kB / 380.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3084, allocations: 1.562 kB / 380.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003897/0.3088, allocations: 181.8 kB / 380.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3088, allocations: 12.34 kB / 380.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3089, allocations: 2.125 kB / 380.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3089, allocations: 2.453 kB / 380.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.309, allocations: 40.88 kB / 380.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.3091, allocations: 1.281 kB / 380.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.461e-05/0.3091, allocations: 17.47 kB / 380.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.3092, allocations: 7.5 kB / 380.8 MB, free: 12.36 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.852e-05/0.3092, allocations: 122.6 kB / 380.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.303e-05/0.3093, allocations: 14.8 kB / 380.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.586e-05/0.3093, allocations: 21.36 kB / 381 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3093, allocations: 3.797 kB / 381 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3093, allocations: 0 / 381 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3094, allocations: 4.172 kB / 381 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007119/0.3101, allocations: 0.4885 MB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3101, allocations: 0 / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.3102, allocations: 35 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.3103, allocations: 7.406 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.3103, allocations: 4.75 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.3103, allocations: 1.375 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3103, allocations: 4.469 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005566/0.3108, allocations: 313.9 kB / 381.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.953e-05/0.3109, allocations: 93.61 kB / 381.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.3109, allocations: 6.797 kB / 381.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.311, allocations: 11.83 kB / 381.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.3111, allocations: 16.42 kB / 381.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.3111, allocations: 5.141 kB / 381.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.275e-05/0.3112, allocations: 114 kB / 382.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3112, allocations: 0.5312 kB / 382.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.3114, allocations: 26.91 kB / 382.1 MB, free: 11.58 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.0007416/0.3122, allocations: 0.8503 MB / 382.9 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004067/0.3126, allocations: 126 kB / 383.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3126, allocations: 0 / 383.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.3128, allocations: 67.61 kB / 383.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.3133, allocations: 41.88 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.3154, allocations: 1.946 MB / 385.1 MB, free: 9.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.3155, allocations: 0.708 MB / 385.8 MB, free: 8.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.438e-05/0.3156, allocations: 12.97 kB / 385.8 MB, free: 8.816 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.163e-05/0.3156, allocations: 38.8 kB / 385.9 MB, free: 8.793 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3156, allocations: 4 kB / 385.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02792/0.3435, allocations: 3.372 MB / 389.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.35, allocations: 20.61 kB / 389.3 MB, free: 8.164 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