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.001532/0.001532, allocations: 113.4 kB / 17.72 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.001767/0.001768, allocations: 184.1 kB / 18.65 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.353/1.353, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001407/0.001408, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08726/0.08868, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002777/0.09149, allocations: 1.663 MB / 376.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009188/0.09244, allocations: 0.5275 MB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.0926, allocations: 3.938 kB / 376.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.09271, allocations: 7.875 kB / 376.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.974e-05/0.09282, allocations: 31.78 kB / 376.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001655/0.09299, allocations: 47.88 kB / 376.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.0932, allocations: 119.6 kB / 377 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.09332, allocations: 25.12 kB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.267e-05/0.0934, allocations: 47.72 kB / 377.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.53e-05/0.09349, allocations: 43.78 kB / 377.1 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.09353, allocations: 8 kB / 377.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.09355, allocations: 8 kB / 377.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.696e-05/0.09358, allocations: 23.84 kB / 377.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.186e-05/0.09364, allocations: 47.67 kB / 377.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.09381, allocations: 95.52 kB / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.09382, allocations: 4 kB / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.09383, allocations: 0 / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.09384, allocations: 3.938 kB / 377.3 MB, free: 2.367 MB / 318.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.0005497/0.0944, allocations: 430.8 kB / 377.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.09444, allocations: 8.031 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.238e-05/0.09449, allocations: 42.73 kB / 377.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/0.09453, allocations: 16.83 kB / 377.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.09484, allocations: 224.6 kB / 378 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.09486, allocations: 4.375 kB / 378 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.0949, allocations: 15.94 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.09519, allocations: 128.2 kB / 378.2 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.09521, allocations: 3.984 kB / 378.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.09523, allocations: 4 kB / 378.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.09524, allocations: 0 / 378.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.09545, allocations: 67.89 kB / 378.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006789/0.09613, allocations: 0.5516 MB / 378.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.09648, allocations: 130.4 kB / 378.9 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.09664, allocations: 60.81 kB / 379 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.09666, allocations: 3.938 kB / 379 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.09669, allocations: 34.56 kB / 379 MB, free: 488 kB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 2.585e-06/0.0967, allocations: 3.984 kB / 379 MB, free: 484 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.1657/0.2624, allocations: 0.5059 MB / 379.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.2625, allocations: 52.34 kB / 379.6 MB, free: 13.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.2627, allocations: 158.1 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.2627, allocations: 26.23 kB / 379.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.2628, allocations: 118.3 kB / 379.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.315e-05/0.2628, allocations: 44.28 kB / 379.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.2629, allocations: 30.77 kB / 380 MB, free: 12.76 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.697e-05/0.2629, allocations: 326 kB / 380.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.2631, allocations: 53.97 kB / 380.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.2633, allocations: 79.14 kB / 380.4 MB, free: 12.42 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.2636, allocations: 136.3 kB / 380.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2636, allocations: 0 / 380.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003773/0.2639, allocations: 177.2 kB / 380.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.264, allocations: 11.16 kB / 380.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.264, allocations: 0.875 kB / 380.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.264, allocations: 6.156 kB / 380.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.2642, allocations: 40.84 kB / 380.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.2642, allocations: 1.75 kB / 380.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.458e-05/0.2643, allocations: 13.38 kB / 380.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.2643, allocations: 7.469 kB / 380.8 MB, free: 12.35 MB / 318.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 7.173e-05/0.2644, allocations: 120.2 kB / 380.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.474e-05/0.2644, allocations: 17.66 kB / 380.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.07e-05/0.2645, allocations: 19.89 kB / 380.9 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2645, allocations: 4.922 kB / 381 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.2645, allocations: 0 / 381 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.2645, allocations: 2.531 kB / 381 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007285/0.2653, allocations: 0.4945 MB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2653, allocations: 4.75 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.2654, allocations: 31.8 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.2654, allocations: 4.875 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2655, allocations: 5.766 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2655, allocations: 2.969 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2655, allocations: 1.375 kB / 381.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005254/0.266, allocations: 313.5 kB / 381.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.265e-05/0.2661, allocations: 90.17 kB / 381.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.2661, allocations: 9.109 kB / 381.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.2662, allocations: 11.95 kB / 381.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.838e-05/0.2663, allocations: 11.52 kB / 381.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.2663, allocations: 5.109 kB / 381.9 MB, free: 11.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.746e-05/0.2664, allocations: 114 kB / 382 MB, free: 11.58 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2664, allocations: 0 / 382 MB, free: 11.58 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002555/0.2666, allocations: 28.06 kB / 382.1 MB, free: 11.57 MB / 318.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.0008427/0.2675, allocations: 0.8491 MB / 382.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005145/0.268, allocations: 127 kB / 383 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.268, allocations: 4.062 kB / 383 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.2683, allocations: 68.45 kB / 383.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005404/0.2688, allocations: 41.56 kB / 383.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002474/0.2713, allocations: 1.944 MB / 385.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.2715, allocations: 0.711 MB / 385.8 MB, free: 8.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.059e-05/0.2716, allocations: 13.78 kB / 385.8 MB, free: 8.816 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.541e-05/0.2717, allocations: 39.44 kB / 385.9 MB, free: 8.793 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2717, allocations: 0 / 385.9 MB, free: 8.793 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.2935, allocations: 3.374 MB / 389.2 MB, free: 8.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.337, allocations: 12.7 kB / 389.2 MB, free: 8.168 MB / 318.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