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.001008/0.001008, allocations: 115 kB / 16.63 MB, free: 6.812 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.0009871/0.0009871, allocations: 186 kB / 17.55 MB, free: 5.934 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.396/1.396, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 43.73 kB / 300.2 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1096, allocations: 49.45 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.004025/0.1137, allocations: 1.729 MB / 351.4 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1148, allocations: 474.8 kB / 351.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1149, allocations: 4 kB / 351.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.1151, allocations: 11.86 kB / 351.9 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.1153, allocations: 19.86 kB / 351.9 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.1155, allocations: 47.95 kB / 352 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002164/0.1158, allocations: 119.5 kB / 352.1 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.1159, allocations: 21.11 kB / 352.1 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.456e-05/0.116, allocations: 43.84 kB / 352.1 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.764e-05/0.1161, allocations: 51.64 kB / 352.2 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.1161, allocations: 8 kB / 352.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.933e-05/0.1162, allocations: 12 kB / 352.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.1162, allocations: 19.92 kB / 352.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.14e-05/0.1163, allocations: 43.73 kB / 352.3 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.1164, allocations: 91.86 kB / 352.4 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1164, allocations: 0 / 352.4 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1165, allocations: 3.938 kB / 352.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.1165, allocations: 0 / 352.4 MB, free: 1.961 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.000678/0.1171, allocations: 430.9 kB / 352.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.437e-05/0.1172, allocations: 16.03 kB / 352.8 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.976e-05/0.1173, allocations: 34.75 kB / 352.8 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.043e-05/0.1174, allocations: 12.84 kB / 352.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.1177, allocations: 216.3 kB / 353.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1177, allocations: 4 kB / 353.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.1178, allocations: 8 kB / 353.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.1181, allocations: 142.5 kB / 353.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.1182, allocations: 7.891 kB / 353.2 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.1182, allocations: 0 / 353.2 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1182, allocations: 4 kB / 353.2 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002263/0.1184, allocations: 67.89 kB / 353.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009456/0.1194, allocations: 0.5477 MB / 353.8 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.1198, allocations: 142.3 kB / 354 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.12, allocations: 56.81 kB / 354 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.12, allocations: 0 / 354 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.1201, allocations: 42.5 kB / 354.1 MB, free: 68 kB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.1201, allocations: 0 / 354.1 MB, free: 68 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001374/0.1214, allocations: 0.5019 MB / 354.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.1215, allocations: 55.41 kB / 354.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.1217, allocations: 155.9 kB / 354.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1217, allocations: 25.7 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1218, allocations: 115.7 kB / 354.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.07e-05/0.1219, allocations: 51.34 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.011e-05/0.122, allocations: 29.7 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1222, allocations: 326.8 kB / 355.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.1223, allocations: 47.97 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.1225, allocations: 90.19 kB / 355.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003057/0.1228, allocations: 135.2 kB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1228, allocations: 0 / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004097/0.1233, allocations: 188.2 kB / 355.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.1233, allocations: 8.094 kB / 355.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/0.1233, allocations: 4 kB / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/0.1234, allocations: 3.984 kB / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.1235, allocations: 31.98 kB / 355.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.1236, allocations: 4 kB / 355.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.507e-05/0.1237, allocations: 11.98 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.1237, allocations: 8.938 kB / 355.8 MB, free: 14.18 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 0.0001294/0.1238, allocations: 121.8 kB / 355.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/0.1239, allocations: 15.84 kB / 356 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.504e-05/0.1239, allocations: 16.72 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1239, allocations: 0 / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.124, allocations: 0 / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.124, allocations: 4 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008542/0.1248, allocations: 499.8 kB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.1248, allocations: 3.984 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.125, allocations: 39.92 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.125, allocations: 0 / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.1251, allocations: 0 / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.1251, allocations: 8.062 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1251, allocations: 0 / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006161/0.1257, allocations: 325 kB / 356.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.345e-05/0.1258, allocations: 88.92 kB / 356.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.1258, allocations: 0 / 356.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.1259, allocations: 16.03 kB / 356.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.126, allocations: 19.86 kB / 357 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.126, allocations: 8 kB / 357 MB, free: 12.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.1261, allocations: 114.9 kB / 357.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1261, allocations: 0 / 357.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002577/0.1264, allocations: 28 kB / 357.1 MB, free: 12.78 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.0008476/0.1273, allocations: 0.8583 MB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003884/0.1277, allocations: 127.8 kB / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1277, allocations: 192 / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.1278, allocations: 71.89 kB / 358.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.1283, allocations: 48.11 kB / 358.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.1309, allocations: 1.958 MB / 360.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1312, allocations: 0.7084 MB / 360.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.529e-05/0.1313, allocations: 17.42 kB / 360.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.1314, allocations: 39.42 kB / 360.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1314, allocations: 0 / 360.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.1541, allocations: 3.112 MB / 364 MB, free: 5.789 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.1543, allocations: 185.5 kB / 364.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/1.989, allocations: 3.938 kB / 364.2 MB, free: 5.535 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