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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 185.1 kB / 24.48 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 47.92 kB / 371.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2163, allocations: 52.19 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002903/0.2192, allocations: 1.655 MB / 425 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008441/0.22, allocations: 454.9 kB / 425.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.945e-05/0.2201, allocations: 7.938 kB / 425.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.2202, allocations: 11.81 kB / 425.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.336e-05/0.2203, allocations: 35.77 kB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001627/0.2205, allocations: 51.89 kB / 425.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.2207, allocations: 111.6 kB / 425.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2208, allocations: 21.28 kB / 425.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.719e-05/0.2208, allocations: 47.73 kB / 425.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.573e-05/0.2209, allocations: 43.77 kB / 425.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.366e-05/0.221, allocations: 8 kB / 425.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.912e-05/0.221, allocations: 12 kB / 425.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.254e-05/0.221, allocations: 27.86 kB / 425.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.139e-05/0.2211, allocations: 35.73 kB / 425.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.2212, allocations: 93.81 kB / 425.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.2212, allocations: 0 / 425.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2212, allocations: 4 kB / 425.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2212, allocations: 0 / 425.9 MB, free: 11.81 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.0006045/0.2218, allocations: 353.7 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.2219, allocations: 8.031 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.989e-05/0.2219, allocations: 16.12 kB / 426.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.636e-05/0.2219, allocations: 34.75 kB / 426.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.744e-05/0.222, allocations: 16.84 kB / 426.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.2223, allocations: 164.1 kB / 426.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.2223, allocations: 4 kB / 426.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.2223, allocations: 8 kB / 426.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.2226, allocations: 136.1 kB / 426.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.2226, allocations: 4 kB / 426.7 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.2226, allocations: 4 kB / 426.7 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.2226, allocations: 0 / 426.7 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.2228, allocations: 71.88 kB / 426.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006707/0.2235, allocations: 0.4961 MB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.2238, allocations: 130.4 kB / 427.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.2239, allocations: 56.81 kB / 427.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.224, allocations: 3.938 kB / 427.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.224, allocations: 38.69 kB / 427.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.173e-06/0.224, allocations: 3.938 kB / 427.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001047/0.225, allocations: 440.8 kB / 427.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.2251, allocations: 63.34 kB / 428 MB, free: 9.594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.2252, allocations: 153.7 kB / 428.1 MB, free: 9.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.2252, allocations: 29.7 kB / 428.1 MB, free: 9.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.061e-05/0.2253, allocations: 112 kB / 428.3 MB, free: 9.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.306e-05/0.2254, allocations: 43.64 kB / 428.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.2254, allocations: 33.7 kB / 428.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.2255, allocations: 326.8 kB / 428.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.2257, allocations: 43.97 kB / 428.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.2258, allocations: 83.38 kB / 428.8 MB, free: 8.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.2261, allocations: 131.3 kB / 428.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.2261, allocations: 0 / 428.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003634/0.2265, allocations: 183.7 kB / 429.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.2265, allocations: 11.98 kB / 429.1 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2265, allocations: 3.938 kB / 429.1 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.2265, allocations: 0 / 429.1 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.2267, allocations: 39.92 kB / 429.1 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.2267, allocations: 4 kB / 429.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.21e-05/0.2268, allocations: 12.92 kB / 429.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.2268, allocations: 12.09 kB / 429.2 MB, free: 8.336 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 0.0001049/0.2269, allocations: 125.7 kB / 429.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.2269, allocations: 11.95 kB / 429.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.766e-05/0.2269, allocations: 12.72 kB / 429.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2269, allocations: 4 kB / 429.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2269, allocations: 0 / 429.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2269, allocations: 0 / 429.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007286/0.2277, allocations: 470.9 kB / 429.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2277, allocations: 4 kB / 429.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.2278, allocations: 31.97 kB / 429.8 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2278, allocations: 0 / 429.8 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.2278, allocations: 4 kB / 429.8 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2279, allocations: 0 / 429.8 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2279, allocations: 0 / 429.8 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005362/0.2284, allocations: 332.9 kB / 430.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.071e-05/0.2284, allocations: 7.953 kB / 430.1 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.2284, allocations: 8.031 kB / 430.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.2285, allocations: 11.98 kB / 430.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.2286, allocations: 19.92 kB / 430.2 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.2286, allocations: 4 kB / 430.2 MB, free: 7.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.16e-05/0.2287, allocations: 111.2 kB / 430.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2287, allocations: 0 / 430.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.2289, allocations: 20 kB / 430.3 MB, free: 7.094 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.0008307/0.2298, allocations: 0.8505 MB / 431.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003327/0.2301, allocations: 127.8 kB / 431.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2301, allocations: 0 / 431.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.2302, allocations: 60.2 kB / 431.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.2306, allocations: 54.86 kB / 431.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.233, allocations: 1.941 MB / 433.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.867e-05/0.2331, allocations: 110.2 kB / 433.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.077e-05/0.2331, allocations: 13.42 kB / 433.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.514e-05/0.2332, allocations: 39.42 kB / 433.5 MB, free: 3.734 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2332, allocations: 0 / 433.5 MB, free: 3.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.2574, allocations: 3.727 MB / 437.2 MB, free: 188 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.81, allocations: 0 / 437.2 MB, free: 188 kB / 334.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,limit_a.y,limit_v.y,positionSmoothed.y Variables in the result:a.u,a.y,aLimited,aMax,der(a.u),der(limit_a.y),der(limit_v.y),der(positionSmoothed.y),der(v.u),limit_a.Falling,limit_a.Rising,limit_a.Td,limit_a.initType,limit_a.strict,limit_a.u,limit_a.y,limit_a.y_start,limit_v.Falling,limit_v.Rising,limit_v.Td,limit_v.initType,limit_v.strict,limit_v.u,limit_v.y,limit_v.y_start,positionSmoothed.initType,positionSmoothed.k,positionSmoothed.u,positionSmoothed.use_reset,positionSmoothed.use_set,positionSmoothed.y,positionSmoothed.y_start,positionStep.height,positionStep.offset,positionStep.startTime,positionStep.y,s,sSmoothed,time,v.u,v.y,vLimited,vMax [Calling sys.exit(0), Time elapsed: 12.99188859097194]