Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.00164, allocations: 111.1 kB / 20.44 MB, free: 1.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 204.3 kB / 23.72 MB, free: 4.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.588/1.588, allocations: 230.5 MB / 257.4 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002195/0.002195, allocations: 63.89 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4308/0.433, allocations: 53.41 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.00414/0.4371, allocations: 1.656 MB / 432.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.4383, allocations: 494.8 kB / 433.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.658e-05/0.4384, allocations: 3.938 kB / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.4385, allocations: 11.86 kB / 433.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.011e-05/0.4386, allocations: 27.78 kB / 433.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.4388, allocations: 51.89 kB / 433.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.439, allocations: 115.6 kB / 433.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.4392, allocations: 25.09 kB / 433.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.877e-05/0.4393, allocations: 43.73 kB / 433.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.885e-05/0.4393, allocations: 39.78 kB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.4394, allocations: 8 kB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.886e-05/0.4394, allocations: 8 kB / 433.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.213e-05/0.4394, allocations: 35.78 kB / 433.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.66e-05/0.4395, allocations: 31.8 kB / 433.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.4396, allocations: 89.41 kB / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4396, allocations: 0 / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4396, allocations: 0 / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.4397, allocations: 0 / 433.8 MB, free: 3.809 MB / 334.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.0006088/0.4403, allocations: 357.7 kB / 434.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.4403, allocations: 15.98 kB / 434.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.414e-05/0.4403, allocations: 42.73 kB / 434.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.509e-05/0.4404, allocations: 16.84 kB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.4407, allocations: 150.9 kB / 434.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.4407, allocations: 12.33 kB / 434.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.4407, allocations: 15.88 kB / 434.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002799/0.441, allocations: 134.9 kB / 434.5 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.441, allocations: 7.938 kB / 434.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.4411, allocations: 8 kB / 434.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.4411, allocations: 0 / 434.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.4413, allocations: 67.89 kB / 434.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006942/0.4419, allocations: 0.5078 MB / 435.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.4423, allocations: 126.5 kB / 435.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.4424, allocations: 56.95 kB / 435.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.4425, allocations: 0 / 435.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.4425, allocations: 42.5 kB / 435.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 8.51e-07/0.4425, allocations: 0 / 435.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001139/0.4436, allocations: 447.9 kB / 435.7 MB, free: 1.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.4437, allocations: 51.41 kB / 435.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.4438, allocations: 153.3 kB / 435.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.4438, allocations: 29.7 kB / 436 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.972e-05/0.4439, allocations: 116 kB / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.444, allocations: 43.64 kB / 436.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-05/0.444, allocations: 29.72 kB / 436.1 MB, free: 1.203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.4442, allocations: 322.8 kB / 436.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.4443, allocations: 51.95 kB / 436.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.4445, allocations: 83.45 kB / 436.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.4448, allocations: 135.3 kB / 436.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.4448, allocations: 0 / 436.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003765/0.4451, allocations: 182.4 kB / 436.9 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.4452, allocations: 15.88 kB / 436.9 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.4452, allocations: 0 / 436.9 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.4452, allocations: 0 / 436.9 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.4453, allocations: 39.91 kB / 437 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.4454, allocations: 8.094 kB / 437 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.72e-05/0.4454, allocations: 15.98 kB / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.4454, allocations: 4 kB / 437 MB, free: 332 kB / 334.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.0001112/0.4456, allocations: 121.8 kB / 437.1 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.835e-05/0.4456, allocations: 15.84 kB / 437.1 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.413e-05/0.4456, allocations: 24.64 kB / 437.1 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4457, allocations: 4 kB / 437.2 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4457, allocations: 0 / 437.2 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4457, allocations: 0 / 437.2 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000798/0.4465, allocations: 451.1 kB / 437.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4465, allocations: 4 kB / 437.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.4466, allocations: 35.97 kB / 437.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.4466, allocations: 0 / 437.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.4466, allocations: 8.062 kB / 437.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4466, allocations: 0 / 437.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.4466, allocations: 7.938 kB / 437.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005931/0.4472, allocations: 324.9 kB / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.081e-05/0.4473, allocations: 11.91 kB / 438 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.4473, allocations: 0 / 438 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.4474, allocations: 20.03 kB / 438 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.507e-05/0.4474, allocations: 7.984 kB / 438 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.4474, allocations: 8 kB / 438 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.579e-05/0.4475, allocations: 112.1 kB / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4475, allocations: 0 / 438.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.4478, allocations: 23.94 kB / 438.1 MB, free: 15.08 MB / 350.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.0008438/0.4486, allocations: 0.8467 MB / 439 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003611/0.449, allocations: 123.2 kB / 439.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.449, allocations: 4 kB / 439.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.4491, allocations: 68.08 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.4495, allocations: 44.06 kB / 439.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.4521, allocations: 1.933 MB / 441.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.4522, allocations: 110.2 kB / 441.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.47e-05/0.4522, allocations: 13.41 kB / 441.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.702e-05/0.4523, allocations: 39.42 kB / 441.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4523, allocations: 0 / 441.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.488, allocations: 4.025 MB / 445.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.6, allocations: 15.84 kB / 445.4 MB, free: 7.824 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv","/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_trunk_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable limit_a.y in file Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv. Warning: Get data of variable limit_a.y from file Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv failed! Error: Could not read variable limit_v.y in file Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv. Warning: Get data of variable limit_v.y from file Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.295024095103145]