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.0008803/0.0008803, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000931/0.000931, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9077/0.9077, allocations: 177.1 MB / 204.2 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.923e-05/2.069e-05, allocations: 10.22 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.00189/0.001911, allocations: 1.651 MB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007014/0.002612, allocations: 0.4909 MB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.865e-05/0.002691, allocations: 7.938 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.929e-05/0.00279, allocations: 11.81 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.797e-05/0.002858, allocations: 31.78 kB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001559/0.003014, allocations: 55.81 kB / 326.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.003161, allocations: 115.6 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.003269, allocations: 21.08 kB / 326.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.039e-05/0.003339, allocations: 63.81 kB / 327 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.632e-05/0.003405, allocations: 27.91 kB / 327 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.003429, allocations: 8 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.152e-05/0.00344, allocations: 8 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.29e-05/0.003463, allocations: 27.84 kB / 327.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.778e-05/0.003491, allocations: 27.92 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.003613, allocations: 95.56 kB / 327.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.003615, allocations: 0 / 327.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.003617, allocations: 4 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.00362, allocations: 0 / 327.2 MB, free: 13.27 MB / 298.7 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.000422/0.004042, allocations: 348.8 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.004081, allocations: 12.03 kB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.199e-05/0.004113, allocations: 38.73 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.004142, allocations: 16.84 kB / 327.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000197/0.004339, allocations: 166.1 kB / 327.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.004356, allocations: 12.33 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.004376, allocations: 8.375 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.004565, allocations: 132.5 kB / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.004574, allocations: 0 / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.004586, allocations: 11.98 kB / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.004592, allocations: 0 / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.004703, allocations: 67.95 kB / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005045/0.005208, allocations: 0.5076 MB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.005419, allocations: 130.5 kB / 328.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.132e-05/0.0055, allocations: 52.81 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.005512, allocations: 0 / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.005536, allocations: 38.56 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.005537, allocations: 3.938 kB / 328.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007507/0.006287, allocations: 440.9 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.006323, allocations: 55.34 kB / 329.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.006429, allocations: 156.6 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.006441, allocations: 25.7 kB / 329.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.387e-05/0.006505, allocations: 120.6 kB / 329.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.006528, allocations: 39.64 kB / 329.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.092e-05/0.006569, allocations: 33.72 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.006653, allocations: 326.8 kB / 329.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-05/0.006737, allocations: 47.95 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.176e-05/0.006829, allocations: 83.33 kB / 330 MB, free: 10.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.007001, allocations: 135.3 kB / 330.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.007002, allocations: 0 / 330.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002224/0.007225, allocations: 180.6 kB / 330.3 MB, free: 9.887 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.007241, allocations: 14.91 kB / 330.3 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.007247, allocations: 0 / 330.3 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.007258, allocations: 0 / 330.3 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.007361, allocations: 43.84 kB / 330.4 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.007368, allocations: 7.984 kB / 330.4 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.981e-05/0.007408, allocations: 15.98 kB / 330.4 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-06/0.007414, allocations: 4 kB / 330.4 MB, free: 9.805 MB / 298.7 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 7.237e-05/0.007486, allocations: 129.7 kB / 330.5 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.007503, allocations: 11.91 kB / 330.6 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.007532, allocations: 20.77 kB / 330.6 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.007534, allocations: 4 kB / 330.6 MB, free: 9.637 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.007541, allocations: 3.938 kB / 330.6 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.007544, allocations: 0.9375 kB / 330.6 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006982/0.008242, allocations: 455.1 kB / 331 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.008247, allocations: 7.984 kB / 331 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.837e-05/0.008346, allocations: 31.92 kB / 331.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.008348, allocations: 96 / 331.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.008357, allocations: 7.938 kB / 331.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.00836, allocations: 0 / 331.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.008361, allocations: 0 / 331.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003387/0.0087, allocations: 332.9 kB / 331.4 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.008715, allocations: 11.91 kB / 331.4 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.00873, allocations: 0 / 331.4 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.752e-05/0.008787, allocations: 16.03 kB / 331.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.008832, allocations: 7.984 kB / 331.4 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.008839, allocations: 8 kB / 331.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.748e-05/0.008896, allocations: 115.3 kB / 331.6 MB, free: 8.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008897, allocations: 0 / 331.6 MB, free: 8.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000161/0.009058, allocations: 24 kB / 331.6 MB, free: 8.559 MB / 298.7 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.000478/0.009536, allocations: 0.8428 MB / 332.4 MB, free: 7.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.009749, allocations: 123.8 kB / 332.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.009751, allocations: 0 / 332.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.341e-05/0.009844, allocations: 67.89 kB / 332.6 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.01013, allocations: 36.47 kB / 332.6 MB, free: 7.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.0117, allocations: 1.928 MB / 334.6 MB, free: 5.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.038e-05/0.01177, allocations: 106.3 kB / 334.7 MB, free: 5.293 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.77e-05/0.01182, allocations: 13.48 kB / 334.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.655e-05/0.01188, allocations: 36.5 kB / 334.7 MB, free: 5.242 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01188, allocations: 4 kB / 334.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01972/0.0316, allocations: 4.167 MB / 338.9 MB, free: 1.207 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.078/7.11, allocations: 0 / 338.9 MB, free: 1.207 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv. Warning: Get data of variable limit_a.y from file Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv failed! Error: Could not read variable limit_v.y in file Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv. Warning: Get data of variable limit_v.y from file Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,limit_a.y,limit_v.y,positionSmoothed.y Variables in the result:time,a.u,positionSmoothed.y,v.u [Calling sys.exit(0), Time elapsed: 8.846808063797653]