Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.399/1.399, allocations: 230.6 MB / 254.8 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 43.94 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09362/0.09508, allocations: 53.34 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002862/0.09794, allocations: 1.688 MB / 428.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008696/0.09881, allocations: 0.5221 MB / 429.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.872e-05/0.09889, allocations: 3.938 kB / 429.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.09899, allocations: 11.81 kB / 429.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.899e-05/0.09907, allocations: 27.8 kB / 429.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.09922, allocations: 43.92 kB / 429.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.0994, allocations: 119.6 kB / 429.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.043e-05/0.09949, allocations: 17 kB / 429.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.386e-05/0.09955, allocations: 51.83 kB / 429.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.064e-05/0.09964, allocations: 51.66 kB / 429.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.09966, allocations: 8 kB / 429.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.09968, allocations: 8 kB / 429.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.503e-05/0.0997, allocations: 15.92 kB / 429.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.944e-05/0.09975, allocations: 47.73 kB / 429.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.0999, allocations: 95.44 kB / 429.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.0999, allocations: 0 / 429.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.0999, allocations: 0 / 429.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.09991, allocations: 4 kB / 429.7 MB, free: 2.066 MB / 350.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.0005762/0.1005, allocations: 426.9 kB / 430.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1005, allocations: 12.03 kB / 430.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.152e-05/0.1005, allocations: 4.125 kB / 430.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.1006, allocations: 42.73 kB / 430.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.408e-05/0.1006, allocations: 20.78 kB / 430.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.1009, allocations: 212.7 kB / 430.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.1009, allocations: 20.08 kB / 430.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.101, allocations: 12 kB / 430.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.1012, allocations: 120.2 kB / 430.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1012, allocations: 7.984 kB / 430.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1013, allocations: 4 kB / 430.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1013, allocations: 3.938 kB / 430.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.1015, allocations: 71.94 kB / 430.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006863/0.1021, allocations: 0.5477 MB / 431.2 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003437/0.1025, allocations: 130.4 kB / 431.3 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.1026, allocations: 52.81 kB / 431.4 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.1027, allocations: 4 kB / 431.4 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1027, allocations: 38.56 kB / 431.4 MB, free: 176 kB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.1027, allocations: 0 / 431.4 MB, free: 176 kB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001133/0.1038, allocations: 0.5097 MB / 431.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.1039, allocations: 51.41 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.104, allocations: 150.2 kB / 432.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.104, allocations: 25.7 kB / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.82e-05/0.1041, allocations: 127.9 kB / 432.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.581e-05/0.1041, allocations: 40.58 kB / 432.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.403e-05/0.1042, allocations: 37.72 kB / 432.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1043, allocations: 322.8 kB / 432.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.1045, allocations: 56.02 kB / 432.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.1046, allocations: 85.52 kB / 432.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.1049, allocations: 139 kB / 432.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.1049, allocations: 0 / 432.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00039/0.1053, allocations: 181.4 kB / 433.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.1054, allocations: 7.938 kB / 433.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1054, allocations: 0 / 433.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1054, allocations: 7.938 kB / 433.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.1055, allocations: 35.97 kB / 433.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.1056, allocations: 3.938 kB / 433.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.108e-05/0.1056, allocations: 24.08 kB / 433.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.1056, allocations: 4 kB / 433.2 MB, free: 14.27 MB / 366.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 9.911e-05/0.1057, allocations: 121.8 kB / 433.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.63e-05/0.1058, allocations: 15.84 kB / 433.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.1058, allocations: 16.7 kB / 433.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1058, allocations: 0 / 433.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1058, allocations: 0 / 433.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1058, allocations: 0 / 433.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007915/0.1066, allocations: 0.4921 MB / 433.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1066, allocations: 0 / 433.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.1068, allocations: 39.97 kB / 433.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.1068, allocations: 0 / 433.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.1068, allocations: 4 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1068, allocations: 0 / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1068, allocations: 0 / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000573/0.1074, allocations: 324.9 kB / 434.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/0.1074, allocations: 92.98 kB / 434.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.1075, allocations: 8 kB / 434.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.1076, allocations: 11.98 kB / 434.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.917e-05/0.1076, allocations: 11.98 kB / 434.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.1076, allocations: 8 kB / 434.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.039e-05/0.1077, allocations: 118.2 kB / 434.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1077, allocations: 0 / 434.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.108, allocations: 20 kB / 434.5 MB, free: 12.88 MB / 366.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.0008595/0.1088, allocations: 0.8449 MB / 435.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000366/0.1092, allocations: 124 kB / 435.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1092, allocations: 96 / 435.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.1093, allocations: 63.84 kB / 435.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.1097, allocations: 36.14 kB / 435.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.1121, allocations: 1.942 MB / 437.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.1125, allocations: 0.7122 MB / 438.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.087e-05/0.1125, allocations: 17.42 kB / 438.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.746e-05/0.1126, allocations: 39.42 kB / 438.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1126, allocations: 0 / 438.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.1342, allocations: 3.386 MB / 441.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.638/7.772, allocations: 4 kB / 441.6 MB, free: 5.656 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 10.198490548995323]