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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00548/0.00548, allocations: 114 kB / 21.97 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 207.6 kB / 25.27 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.271/1.271, allocations: 207.6 MB / 236 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 55.92 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2245, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002479/0.227, allocations: 1.677 MB / 398.8 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008533/0.2279, allocations: 0.5325 MB / 399.3 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.167e-05/0.228, allocations: 6.375 kB / 399.4 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.2281, allocations: 11.94 kB / 399.4 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.391e-05/0.2281, allocations: 30.89 kB / 399.4 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.2283, allocations: 45.16 kB / 399.4 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.2285, allocations: 116.2 kB / 399.5 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.748e-05/0.2286, allocations: 20.48 kB / 399.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.616e-05/0.2286, allocations: 47.47 kB / 399.6 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.68e-05/0.2287, allocations: 47.2 kB / 399.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.2287, allocations: 6.688 kB / 399.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.51e-05/0.2287, allocations: 8.125 kB / 399.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.8e-05/0.2287, allocations: 26.3 kB / 399.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.483e-05/0.2288, allocations: 49.11 kB / 399.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.2289, allocations: 95.75 kB / 399.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2289, allocations: 0.9688 kB / 399.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2289, allocations: 3.938 kB / 399.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.2289, allocations: 0 / 399.8 MB, free: 7.188 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.0004379/0.2294, allocations: 362.5 kB / 400.2 MB, free: 6.867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.2294, allocations: 12.89 kB / 400.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.162e-05/0.2294, allocations: 2.594 kB / 400.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.256e-05/0.2294, allocations: 39.61 kB / 400.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.153e-05/0.2295, allocations: 19.42 kB / 400.3 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.2297, allocations: 159.8 kB / 400.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.2297, allocations: 16.94 kB / 400.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.2297, allocations: 5.75 kB / 400.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.23, allocations: 127.1 kB / 400.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.23, allocations: 1.797 kB / 400.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.23, allocations: 1.094 kB / 400.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.23, allocations: 2.344 kB / 400.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.2302, allocations: 76.09 kB / 400.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005277/0.2307, allocations: 0.5178 MB / 401.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.231, allocations: 134.4 kB / 401.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.2312, allocations: 52.58 kB / 401.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.2312, allocations: 0.9688 kB / 401.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.531e-05/0.2312, allocations: 40.34 kB / 401.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.2312, allocations: 3.938 kB / 401.4 MB, free: 5.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009646/0.2322, allocations: 446.5 kB / 401.8 MB, free: 5.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.2322, allocations: 53.78 kB / 401.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.757e-05/0.2323, allocations: 160.6 kB / 402 MB, free: 5.523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.2323, allocations: 27.14 kB / 402.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.014e-05/0.2323, allocations: 110.7 kB / 402.2 MB, free: 5.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.2323, allocations: 47.7 kB / 402.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.2324, allocations: 33.38 kB / 402.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.2324, allocations: 326.6 kB / 402.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.2326, allocations: 47.94 kB / 402.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.2327, allocations: 81.08 kB / 402.7 MB, free: 4.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002665/0.233, allocations: 135.4 kB / 402.8 MB, free: 4.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-07/0.233, allocations: 3.938 kB / 402.8 MB, free: 4.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00034/0.2333, allocations: 179.2 kB / 403 MB, free: 4.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.2333, allocations: 9.719 kB / 403 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.2333, allocations: 5.031 kB / 403 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.2334, allocations: 3.156 kB / 403 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.2335, allocations: 35.17 kB / 403.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2335, allocations: 1.922 kB / 403.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.449e-05/0.2336, allocations: 15.25 kB / 403.1 MB, free: 4.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.2336, allocations: 8.812 kB / 403.1 MB, free: 4.785 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 5.798e-05/0.2337, allocations: 118.7 kB / 403.2 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.2337, allocations: 22.39 kB / 403.2 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.2337, allocations: 12.78 kB / 403.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2337, allocations: 1.375 kB / 403.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2337, allocations: 0.5625 kB / 403.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.2337, allocations: 2.328 kB / 403.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006369/0.2344, allocations: 471.9 kB / 403.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2344, allocations: 1.062 kB / 403.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.2345, allocations: 39.48 kB / 403.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2345, allocations: 0.9688 kB / 403.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.2345, allocations: 3.094 kB / 403.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2345, allocations: 4.969 kB / 403.8 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2345, allocations: 1.672 kB / 403.8 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004691/0.235, allocations: 327.8 kB / 404.1 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.795e-05/0.235, allocations: 15.97 kB / 404.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.2351, allocations: 6.812 kB / 404.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.2352, allocations: 14.28 kB / 404.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.2352, allocations: 21.86 kB / 404.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.2352, allocations: 3.469 kB / 404.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.599e-05/0.2353, allocations: 113.9 kB / 404.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2353, allocations: 0 / 404.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000233/0.2355, allocations: 20.72 kB / 404.3 MB, free: 3.949 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.0005832/0.2361, allocations: 0.852 MB / 405.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003275/0.2364, allocations: 121.4 kB / 405.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2364, allocations: 0 / 405.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.2366, allocations: 62.31 kB / 405.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.2369, allocations: 36.73 kB / 405.3 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.2387, allocations: 1.959 MB / 407.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001081/0.2388, allocations: 0.7079 MB / 408 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.825e-05/0.2389, allocations: 13.11 kB / 408 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.025e-05/0.239, allocations: 38.3 kB / 408.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.239, allocations: 0 / 408.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.2632, allocations: 3.607 MB / 411.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.72, allocations: 11.28 kB / 411.7 MB, free: 15.76 MB / 334.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/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) [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.890375655028038]