Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00117/0.001174, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2244, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002428/0.2269, allocations: 1.693 MB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008104/0.2277, allocations: 0.5065 MB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.334e-05/0.2278, allocations: 0 / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.814e-05/0.2279, allocations: 19.73 kB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.109e-05/0.228, allocations: 31.78 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001402/0.2282, allocations: 47.88 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.2283, allocations: 115.6 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.2284, allocations: 25.11 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.738e-05/0.2285, allocations: 43.8 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.937e-05/0.2286, allocations: 51.69 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.2286, allocations: 8 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.529e-05/0.2286, allocations: 8 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.2287, allocations: 15.94 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.896e-05/0.2287, allocations: 47.61 kB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.2289, allocations: 102.7 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2289, allocations: 0 / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2289, allocations: 0 / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.2289, allocations: 0 / 411.5 MB, free: 14.83 MB / 334.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.0005174/0.2294, allocations: 426.9 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2294, allocations: 12.03 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.372e-05/0.2295, allocations: 38.69 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.322e-05/0.2295, allocations: 16.84 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.2298, allocations: 220.3 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.2298, allocations: 12.31 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.2298, allocations: 15.94 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.2301, allocations: 134.9 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2301, allocations: 4 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.2301, allocations: 0 / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2302, allocations: 4 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.2304, allocations: 67.88 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006166/0.231, allocations: 0.5516 MB / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.2313, allocations: 134.4 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.2315, allocations: 60.81 kB / 413.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.2315, allocations: 4 kB / 413.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.2315, allocations: 38.69 kB / 413.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.2315, allocations: 0 / 413.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001063/0.2326, allocations: 0.5057 MB / 413.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.2326, allocations: 55.34 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.2328, allocations: 153.3 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.2328, allocations: 25.7 kB / 413.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.898e-05/0.2329, allocations: 116 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.2329, allocations: 47.58 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.092e-05/0.2329, allocations: 33.7 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.041e-05/0.233, allocations: 322.8 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.2332, allocations: 51.95 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.2334, allocations: 87.45 kB / 414.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.2337, allocations: 130.8 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2337, allocations: 4 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000366/0.2341, allocations: 177.5 kB / 414.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2341, allocations: 11.92 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.2341, allocations: 0 / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2341, allocations: 4 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.2343, allocations: 40.02 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2343, allocations: 3.984 kB / 414.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.888e-05/0.2344, allocations: 8 kB / 414.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.2344, allocations: 11.98 kB / 414.9 MB, free: 11.04 MB / 334.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.801e-05/0.2345, allocations: 118.7 kB / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.755e-05/0.2345, allocations: 23.78 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.752e-05/0.2346, allocations: 12.72 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.2346, allocations: 8 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2346, allocations: 0 / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2346, allocations: 0 / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007308/0.2353, allocations: 0.496 MB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2354, allocations: 3.938 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.2355, allocations: 31.98 kB / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.2355, allocations: 0 / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.2356, allocations: 4 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2356, allocations: 0 / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2356, allocations: 0 / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005356/0.2361, allocations: 325 kB / 415.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.585e-05/0.2362, allocations: 89.02 kB / 416 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.2362, allocations: 4 kB / 416 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.2363, allocations: 24.03 kB / 416.1 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.2364, allocations: 7.984 kB / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.2364, allocations: 4 kB / 416.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.325e-05/0.2365, allocations: 115.2 kB / 416.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.362e-06/0.2365, allocations: 0 / 416.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.2367, allocations: 27.88 kB / 416.2 MB, free: 9.648 MB / 334.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.0007376/0.2375, allocations: 0.839 MB / 417 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003387/0.2378, allocations: 127.8 kB / 417.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.2378, allocations: 4 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.238, allocations: 67.89 kB / 417.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.2384, allocations: 47.75 kB / 417.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.2405, allocations: 1.936 MB / 419.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.2408, allocations: 0.7122 MB / 419.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.367e-05/0.2409, allocations: 13.42 kB / 419.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.826e-05/0.2409, allocations: 43.36 kB / 420 MB, free: 5.695 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2409, allocations: 4 kB / 420 MB, free: 5.691 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.2591, allocations: 3.333 MB / 423.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/7.641, allocations: 0 / 423.3 MB, free: 2.434 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches