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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009326/0.0009326, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9544/0.9544, allocations: 173.3 MB / 200.4 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.704e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002939/0.002966, allocations: 1.629 MB / 320.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009131/0.003879, allocations: 466.8 kB / 320.5 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.289e-05/0.003972, allocations: 8 kB / 320.5 MB, free: 4.234 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.004096, allocations: 15.8 kB / 320.5 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.442e-05/0.004191, allocations: 31.72 kB / 320.6 MB, free: 4.188 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.004377, allocations: 43.94 kB / 320.6 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001985/0.004575, allocations: 119.5 kB / 320.7 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.0047, allocations: 25.27 kB / 320.7 MB, free: 4 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.764e-05/0.004797, allocations: 63.77 kB / 320.8 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.942e-05/0.004877, allocations: 43.81 kB / 320.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.004904, allocations: 8 kB / 320.9 MB, free: 3.887 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.332e-05/0.004917, allocations: 8 kB / 320.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.709e-05/0.004945, allocations: 15.94 kB / 320.9 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.18e-05/0.004986, allocations: 31.86 kB / 320.9 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.005142, allocations: 91.67 kB / 321 MB, free: 3.742 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.005145, allocations: 0 / 321 MB, free: 3.742 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.005146, allocations: 0 / 321 MB, free: 3.742 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.005152, allocations: 0 / 321 MB, free: 3.742 MB / 282.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.0004457/0.005597, allocations: 353.7 kB / 321.3 MB, free: 3.367 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.005636, allocations: 8.922 kB / 321.4 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.005672, allocations: 42.75 kB / 321.4 MB, free: 3.309 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.005701, allocations: 20.78 kB / 321.4 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.005915, allocations: 154.1 kB / 321.6 MB, free: 3.113 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.00593, allocations: 12.12 kB / 321.6 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.303e-05/0.005953, allocations: 15.95 kB / 321.6 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.006166, allocations: 128.1 kB / 321.7 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.006176, allocations: 0 / 321.7 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.006187, allocations: 11.98 kB / 321.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.361e-06/0.006192, allocations: 4 kB / 321.7 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.006312, allocations: 67.88 kB / 321.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005616/0.006873, allocations: 0.5038 MB / 322.3 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.007103, allocations: 126.5 kB / 322.4 MB, free: 2.176 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.605e-05/0.007189, allocations: 56.81 kB / 322.5 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.0072, allocations: 0 / 322.5 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.007233, allocations: 42.69 kB / 322.5 MB, free: 2.066 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.007234, allocations: 0 / 322.5 MB, free: 2.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0008372/0.008071, allocations: 445.5 kB / 323 MB, free: 1.598 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.008105, allocations: 51.5 kB / 323 MB, free: 1.535 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.008208, allocations: 156.1 kB / 323.2 MB, free: 1.375 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.008219, allocations: 29.64 kB / 323.2 MB, free: 1.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.07e-05/0.00828, allocations: 127.9 kB / 323.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.008306, allocations: 39.64 kB / 323.4 MB, free: 1.172 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.015e-05/0.008347, allocations: 33.7 kB / 323.4 MB, free: 1.133 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.008443, allocations: 322.8 kB / 323.7 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.648e-05/0.00853, allocations: 47.97 kB / 323.8 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.735e-05/0.008627, allocations: 86.03 kB / 323.8 MB, free: 0.668 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.00881, allocations: 135.3 kB / 324 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.008813, allocations: 0 / 324 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002299/0.009043, allocations: 177.5 kB / 324.1 MB, free: 352 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.009059, allocations: 11.92 kB / 324.2 MB, free: 340 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.009067, allocations: 4 kB / 324.2 MB, free: 336 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.009079, allocations: 0 / 324.2 MB, free: 336 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.815e-05/0.009177, allocations: 35.92 kB / 324.2 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.009183, allocations: 4 kB / 324.2 MB, free: 296 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.206e-05/0.009225, allocations: 11.98 kB / 324.2 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.009233, allocations: 8 kB / 324.2 MB, free: 276 kB / 282.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.558e-05/0.009308, allocations: 125.9 kB / 324.3 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/0.009328, allocations: 11.89 kB / 324.4 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.043e-05/0.009359, allocations: 12.78 kB / 324.4 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.009361, allocations: 0 / 324.4 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.009366, allocations: 3.938 kB / 324.4 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.009369, allocations: 4 kB / 324.4 MB, free: 108 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005812/0.00995, allocations: 471 kB / 324.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.009953, allocations: 0 / 324.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.741e-05/0.01005, allocations: 35.97 kB / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.01005, allocations: 0 / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.01006, allocations: 0 / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.01007, allocations: 4 kB / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.01007, allocations: 0 / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003697/0.01044, allocations: 324.9 kB / 325.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.913e-05/0.01046, allocations: 11.91 kB / 325.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.01048, allocations: 8.031 kB / 325.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.823e-05/0.01053, allocations: 16.08 kB / 325.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.01058, allocations: 11.92 kB / 325.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.01059, allocations: 8 kB / 325.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.106e-05/0.01066, allocations: 122 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01066, allocations: 0 / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001817/0.01084, allocations: 20 kB / 325.4 MB, free: 15.02 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.0005169/0.01136, allocations: 0.8382 MB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000224/0.01158, allocations: 127.8 kB / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01158, allocations: 0 / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.217e-05/0.01167, allocations: 67.89 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.01198, allocations: 40.34 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.01376, allocations: 1.925 MB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.381e-05/0.01385, allocations: 102.4 kB / 328.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.774e-05/0.0139, allocations: 21.42 kB / 328.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.656e-05/0.01398, allocations: 44.48 kB / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01398, allocations: 0 / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.03518, allocations: 4.188 MB / 332.7 MB, free: 7.656 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.726/6.761, allocations: 12.05 kB / 332.7 MB, free: 7.645 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv. Warning: Get data of variable limit_a.y from file Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv failed! Error: Could not read variable limit_v.y in file Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv. Warning: Get data of variable limit_v.y from file Modelica_4.0.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.684022075496614]