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.001508/0.001508, allocations: 105.9 kB / 16.92 MB, free: 5.777 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.001718/0.001718, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.34/1.34, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 48.28 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07884/0.08019, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003503/0.08372, allocations: 1.663 MB / 351.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000895/0.08464, allocations: 492.2 kB / 352.3 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.0848, allocations: 4 kB / 352.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.08495, allocations: 15.8 kB / 352.3 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.0851, allocations: 19.8 kB / 352.3 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.08532, allocations: 59.81 kB / 352.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002051/0.08553, allocations: 115.6 kB / 352.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.08567, allocations: 21.11 kB / 352.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.76e-05/0.08576, allocations: 47.78 kB / 352.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.747e-05/0.08586, allocations: 47.7 kB / 352.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.0859, allocations: 8 kB / 352.6 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.302e-05/0.08593, allocations: 8 kB / 352.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.08596, allocations: 23.92 kB / 352.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.062e-05/0.08603, allocations: 51.61 kB / 352.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.08618, allocations: 87.92 kB / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.0862, allocations: 0 / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0862, allocations: 0 / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.08622, allocations: 0 / 352.8 MB, free: 1.656 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.0005691/0.08679, allocations: 426.9 kB / 353.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.08684, allocations: 8.031 kB / 353.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.109e-05/0.08688, allocations: 46.73 kB / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.374e-05/0.08693, allocations: 12.84 kB / 353.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.08717, allocations: 223.1 kB / 353.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.08719, allocations: 4 kB / 353.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.08723, allocations: 12 kB / 353.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/0.08752, allocations: 130.7 kB / 353.6 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.08755, allocations: 11.84 kB / 353.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.08758, allocations: 4 kB / 353.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.08759, allocations: 7.938 kB / 353.7 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002061/0.0878, allocations: 59.95 kB / 353.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007006/0.08851, allocations: 0.5555 MB / 354.3 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003705/0.08889, allocations: 134.4 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.08906, allocations: 60.81 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.08908, allocations: 0 / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.08912, allocations: 34.5 kB / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.123e-06/0.08912, allocations: 0 / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001157/0.09028, allocations: 0.5019 MB / 355 MB, free: 15.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.09033, allocations: 59.39 kB / 355.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.09047, allocations: 147.9 kB / 355.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.09049, allocations: 33.7 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.09057, allocations: 115.7 kB / 355.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.09061, allocations: 39.36 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.403e-05/0.09067, allocations: 37.7 kB / 355.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.09078, allocations: 322.8 kB / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.09094, allocations: 51.95 kB / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.09112, allocations: 83.33 kB / 355.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.09143, allocations: 139.2 kB / 356 MB, free: 14.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.09145, allocations: 4 kB / 356 MB, free: 14.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003918/0.09184, allocations: 184.9 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.09187, allocations: 4 kB / 356.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.09188, allocations: 4.094 kB / 356.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.0919, allocations: 4 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.09207, allocations: 39.91 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.09209, allocations: 0 / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.85e-05/0.09218, allocations: 16.92 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.0922, allocations: 4 kB / 356.3 MB, free: 13.88 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 9.326e-05/0.0923, allocations: 121.8 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.09234, allocations: 11.84 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.128e-05/0.09239, allocations: 20.72 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.0924, allocations: 0 / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.09241, allocations: 0 / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.09242, allocations: 3.984 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007853/0.09321, allocations: 0.4998 MB / 356.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.09322, allocations: 0 / 356.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.0934, allocations: 31.92 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.09341, allocations: 4 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.09343, allocations: 3.984 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.09344, allocations: 4 kB / 357 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.09345, allocations: 4.062 kB / 357 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005579/0.09401, allocations: 320.9 kB / 357.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.09407, allocations: 88.92 kB / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.0941, allocations: 4 kB / 357.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.09422, allocations: 16.03 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.121e-05/0.09428, allocations: 15.92 kB / 357.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.0943, allocations: 4 kB / 357.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.89e-05/0.09438, allocations: 118.9 kB / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.09439, allocations: 0 / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.09465, allocations: 20 kB / 357.5 MB, free: 12.48 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.000818/0.09548, allocations: 0.8582 MB / 358.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003737/0.09586, allocations: 127.8 kB / 358.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.09588, allocations: 0 / 358.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.09605, allocations: 68.08 kB / 358.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.09652, allocations: 52.12 kB / 358.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.0989, allocations: 1.921 MB / 360.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.09916, allocations: 0.7084 MB / 361.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.986e-05/0.09923, allocations: 13.42 kB / 361.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.199e-05/0.09931, allocations: 43.42 kB / 361.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.09932, allocations: 4 kB / 361.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.1209, allocations: 3.295 MB / 364.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.22/7.341, allocations: 15.72 kB / 364.6 MB, free: 5.281 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 & 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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.csv","/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) Reference file matches