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.001282/0.001282, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001418/0.001418, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.32/1.32, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 43.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2554, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002544/0.258, allocations: 1.686 MB / 401.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007421/0.2588, allocations: 488.3 kB / 402.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.686e-05/0.2589, allocations: 3.938 kB / 402.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.769e-05/0.259, allocations: 15.86 kB / 402.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.989e-05/0.2591, allocations: 27.78 kB / 402.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001425/0.2592, allocations: 47.89 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.2594, allocations: 119.6 kB / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2595, allocations: 29.11 kB / 402.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.109e-05/0.2596, allocations: 43.73 kB / 402.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.814e-05/0.2596, allocations: 47.77 kB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/0.2597, allocations: 8 kB / 402.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.52e-05/0.2597, allocations: 8 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.008e-05/0.2597, allocations: 19.86 kB / 402.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.721e-05/0.2598, allocations: 59.59 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.2599, allocations: 90.67 kB / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2599, allocations: 0 / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2599, allocations: 0 / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.2599, allocations: 0 / 402.9 MB, free: 6.141 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.0005063/0.2605, allocations: 438.8 kB / 403.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.2605, allocations: 8.031 kB / 403.3 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.2605, allocations: 42.73 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.2606, allocations: 12.84 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.2608, allocations: 225.7 kB / 403.6 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.2609, allocations: 12 kB / 403.6 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.698e-05/0.2609, allocations: 12 kB / 403.6 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002562/0.2612, allocations: 124.2 kB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.2612, allocations: 0 / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.2612, allocations: 8 kB / 403.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2612, allocations: 0 / 403.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.2614, allocations: 75.88 kB / 403.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006188/0.262, allocations: 0.5399 MB / 404.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.2624, allocations: 134.4 kB / 404.5 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.2625, allocations: 60.81 kB / 404.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.797e-06/0.2625, allocations: 3.938 kB / 404.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2626, allocations: 46.48 kB / 404.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.2626, allocations: 0 / 404.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.00107/0.2636, allocations: 0.5066 MB / 405.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.2637, allocations: 51.41 kB / 405.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.2638, allocations: 150.2 kB / 405.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.2638, allocations: 29.7 kB / 405.4 MB, free: 3.422 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.411e-05/0.2639, allocations: 116 kB / 405.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.2639, allocations: 39.64 kB / 405.5 MB, free: 3.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.92e-05/0.264, allocations: 29.72 kB / 405.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.036e-05/0.2641, allocations: 327 kB / 405.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.2642, allocations: 51.95 kB / 405.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.2644, allocations: 83.33 kB / 406 MB, free: 2.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/0.2647, allocations: 131.3 kB / 406.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2647, allocations: 0 / 406.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003605/0.2651, allocations: 193.3 kB / 406.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.2651, allocations: 8 kB / 406.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2651, allocations: 0 / 406.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.2651, allocations: 0 / 406.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.2653, allocations: 35.97 kB / 406.3 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.2653, allocations: 4 kB / 406.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.216e-05/0.2654, allocations: 20.08 kB / 406.4 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.2654, allocations: 4 kB / 406.4 MB, free: 2.352 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 8.606e-05/0.2655, allocations: 121.8 kB / 406.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.2655, allocations: 15.89 kB / 406.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.027e-05/0.2656, allocations: 16.7 kB / 406.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2656, allocations: 4 kB / 406.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.2656, allocations: 0 / 406.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2656, allocations: 0 / 406.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007189/0.2663, allocations: 0.4921 MB / 407 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.2663, allocations: 4 kB / 407 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.2665, allocations: 32.03 kB / 407.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2665, allocations: 4 kB / 407.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.2665, allocations: 4 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.2665, allocations: 3.938 kB / 407.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2665, allocations: 0 / 407.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005244/0.2671, allocations: 325 kB / 407.4 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.822e-05/0.2671, allocations: 89.09 kB / 407.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.2671, allocations: 8 kB / 407.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.2673, allocations: 11.98 kB / 407.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.2673, allocations: 15.92 kB / 407.5 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.2673, allocations: 8 kB / 407.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.533e-05/0.2674, allocations: 120.8 kB / 407.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2674, allocations: 0 / 407.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002396/0.2677, allocations: 16 kB / 407.6 MB, free: 0.9609 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.0007733/0.2684, allocations: 0.8583 MB / 408.5 MB, free: 72 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003625/0.2688, allocations: 128 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2688, allocations: 0 / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.269, allocations: 63.91 kB / 408.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.2694, allocations: 38.41 kB / 408.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.2716, allocations: 1.945 MB / 410.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.2719, allocations: 0.7123 MB / 411.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.359e-05/0.272, allocations: 9.422 kB / 411.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.023e-05/0.272, allocations: 35.44 kB / 411.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2721, allocations: 4 kB / 411.4 MB, free: 13 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.2913, allocations: 3.368 MB / 414.8 MB, free: 9.727 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.511/7.802, allocations: 14.17 kB / 414.8 MB, free: 9.715 MB / 334.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