Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_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.001249/0.001248, allocations: 104.1 kB / 17.58 MB, free: 5.445 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.001265/0.001265, allocations: 191.9 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 56.14 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08546/0.08678, allocations: 46.62 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003577/0.0904, allocations: 1.667 MB / 329 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.09154, allocations: 0.5152 MB / 329.6 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.0917, allocations: 4 kB / 329.6 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.09187, allocations: 15.8 kB / 329.6 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.09199, allocations: 23.8 kB / 329.6 MB, free: 2.141 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.09221, allocations: 51.88 kB / 329.6 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.09246, allocations: 115.6 kB / 329.8 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.09262, allocations: 28.88 kB / 329.8 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.393e-05/0.09271, allocations: 47.73 kB / 329.8 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.09282, allocations: 43.77 kB / 329.9 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.09286, allocations: 8 kB / 329.9 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.215e-05/0.09289, allocations: 15.94 kB / 329.9 MB, free: 1.836 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.581e-05/0.09293, allocations: 23.86 kB / 329.9 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.884e-05/0.093, allocations: 55.66 kB / 330 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.09316, allocations: 87.86 kB / 330.1 MB, free: 1.672 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.09318, allocations: 0 / 330.1 MB, free: 1.672 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09319, allocations: 0 / 330.1 MB, free: 1.672 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.0932, allocations: 0 / 330.1 MB, free: 1.672 MB / 270.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.0006494/0.09385, allocations: 423 kB / 330.5 MB, free: 1.211 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.09391, allocations: 12.03 kB / 330.5 MB, free: 1.199 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.287e-05/0.09396, allocations: 38.75 kB / 330.5 MB, free: 1.152 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.09401, allocations: 20.73 kB / 330.5 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.09425, allocations: 208.6 kB / 330.7 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.09428, allocations: 8.375 kB / 330.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.09431, allocations: 11.94 kB / 330.8 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.09462, allocations: 132.2 kB / 330.9 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.09465, allocations: 7.844 kB / 330.9 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.09468, allocations: 4 kB / 330.9 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.09469, allocations: 4 kB / 330.9 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.0949, allocations: 59.95 kB / 331 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007208/0.09563, allocations: 0.5516 MB / 331.5 MB, free: 44 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003699/0.09601, allocations: 134.4 kB / 331.7 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.09618, allocations: 64.8 kB / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.0962, allocations: 0 / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.09624, allocations: 30.56 kB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 9.82e-07/0.09624, allocations: 0 / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.00118/0.09743, allocations: 0.514 MB / 332.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.09748, allocations: 55.41 kB / 332.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.09762, allocations: 158.2 kB / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.09765, allocations: 30.08 kB / 332.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.693e-05/0.09773, allocations: 115.9 kB / 332.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.09777, allocations: 43.36 kB / 332.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.816e-05/0.09783, allocations: 33.7 kB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.09796, allocations: 326.8 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.09811, allocations: 51.97 kB / 333.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.09828, allocations: 87.31 kB / 333.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/0.09857, allocations: 127.4 kB / 333.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.09858, allocations: 3.938 kB / 333.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003714/0.09896, allocations: 173.4 kB / 333.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.09899, allocations: 19.3 kB / 333.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.099, allocations: 4 kB / 333.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.09902, allocations: 0 / 333.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.09919, allocations: 31.98 kB / 333.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.09921, allocations: 7.938 kB / 333.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.881e-05/0.09929, allocations: 15.98 kB / 333.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.09931, allocations: 4 kB / 333.5 MB, free: 13.89 MB / 286.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.0001015/0.09942, allocations: 125.8 kB / 333.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.551e-05/0.09946, allocations: 15.84 kB / 333.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.827e-05/0.0995, allocations: 16.72 kB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.09951, allocations: 0 / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.09952, allocations: 4 kB / 333.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.09953, allocations: 4 kB / 333.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007249/0.1003, allocations: 0.492 MB / 334.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1003, allocations: 0 / 334.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.1004, allocations: 35.92 kB / 334.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1005, allocations: 0 / 334.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.1005, allocations: 0 / 334.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1005, allocations: 8.062 kB / 334.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.1005, allocations: 3.984 kB / 334.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.101, allocations: 321.7 kB / 334.5 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-05/0.1011, allocations: 88.92 kB / 334.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.1011, allocations: 4 kB / 334.6 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.1012, allocations: 12.03 kB / 334.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.696e-05/0.1013, allocations: 15.98 kB / 334.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.1013, allocations: 0 / 334.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.767e-05/0.1014, allocations: 116.1 kB / 334.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1014, allocations: 0 / 334.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002477/0.1017, allocations: 28.03 kB / 334.8 MB, free: 12.5 MB / 286.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.0007664/0.1024, allocations: 0.8517 MB / 335.6 MB, free: 11.62 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003524/0.1028, allocations: 127.7 kB / 335.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.1028, allocations: 8.188 kB / 335.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.103, allocations: 67.89 kB / 335.8 MB, free: 11.42 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.1034, allocations: 36.34 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.1057, allocations: 1.933 MB / 337.8 MB, free: 9.344 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.106, allocations: 0.7161 MB / 338.5 MB, free: 8.602 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.622e-05/0.1061, allocations: 21.42 kB / 338.6 MB, free: 8.582 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.304e-05/0.1061, allocations: 43.42 kB / 338.6 MB, free: 8.539 MB / 286.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1061, allocations: 0 / 338.6 MB, free: 8.539 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02104/0.1272, allocations: 3.299 MB / 341.9 MB, free: 5.184 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.238/7.365, allocations: 15.64 kB / 341.9 MB, free: 5.168 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches