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.004584/0.004584, allocations: 100.8 kB / 21.96 MB, free: 5.211 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.001342/0.001342, allocations: 218 kB / 25.26 MB, free: 3.141 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.287/1.287, allocations: 207.7 MB / 236.1 MB, free: 9.805 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.0016/0.0016, allocations: 50.58 kB / 348 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2356, allocations: 49.15 MB / 397.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002482/0.2381, allocations: 1.626 MB / 398.7 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007135/0.2388, allocations: 0.5036 MB / 399.3 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.719e-05/0.2389, allocations: 2.219 kB / 399.3 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.369e-05/0.239, allocations: 14.48 kB / 399.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.246e-05/0.2391, allocations: 27.83 kB / 399.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001406/0.2392, allocations: 50.44 kB / 399.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.2394, allocations: 116 kB / 399.5 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.398e-05/0.2394, allocations: 18.86 kB / 399.5 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.701e-05/0.2395, allocations: 48.72 kB / 399.5 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.216e-05/0.2396, allocations: 47.5 kB / 399.6 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.2396, allocations: 8.156 kB / 399.6 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.61e-05/0.2396, allocations: 6.844 kB / 399.6 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.2396, allocations: 26.45 kB / 399.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.2397, allocations: 41.08 kB / 399.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.2398, allocations: 91 kB / 399.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2398, allocations: 0 / 399.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2398, allocations: 0 / 399.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.2398, allocations: 1.5 kB / 399.7 MB, free: 7.176 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.0004656/0.2403, allocations: 362 kB / 400.1 MB, free: 6.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.2403, allocations: 13.27 kB / 400.1 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.223e-05/0.2403, allocations: 2.562 kB / 400.1 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.611e-05/0.2404, allocations: 43.75 kB / 400.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.2404, allocations: 15.94 kB / 400.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.2406, allocations: 150.5 kB / 400.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.2406, allocations: 17.27 kB / 400.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.2407, allocations: 14.38 kB / 400.3 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.2409, allocations: 128 kB / 400.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.2409, allocations: 5.125 kB / 400.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.241, allocations: 5.281 kB / 400.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.241, allocations: 2.156 kB / 400.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.2411, allocations: 68.81 kB / 400.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005541/0.2417, allocations: 0.5051 MB / 401.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.242, allocations: 125.8 kB / 401.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.2421, allocations: 62.11 kB / 401.2 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.2421, allocations: 1.094 kB / 401.2 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.2422, allocations: 32.59 kB / 401.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.2422, allocations: 4 kB / 401.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009064/0.2431, allocations: 454 kB / 401.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.781e-05/0.2431, allocations: 53.94 kB / 401.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.2432, allocations: 156.5 kB / 401.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.2432, allocations: 31.11 kB / 402 MB, free: 5.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.2432, allocations: 109.8 kB / 402.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.2433, allocations: 48 kB / 402.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.326e-05/0.2433, allocations: 31.25 kB / 402.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.193e-05/0.2433, allocations: 321.1 kB / 402.5 MB, free: 5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.2435, allocations: 51.78 kB / 402.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.2436, allocations: 83.23 kB / 402.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.2439, allocations: 135.1 kB / 402.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.2439, allocations: 1 kB / 402.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000315/0.2442, allocations: 175.2 kB / 402.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.2442, allocations: 10.09 kB / 402.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2442, allocations: 1.672 kB / 402.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.2442, allocations: 5.094 kB / 402.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.2444, allocations: 39.53 kB / 402.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.2444, allocations: 2.156 kB / 402.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.173e-05/0.2444, allocations: 15.98 kB / 403 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.2445, allocations: 8.219 kB / 403 MB, free: 4.781 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.776e-05/0.2445, allocations: 123.3 kB / 403.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.2445, allocations: 18.72 kB / 403.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.2446, allocations: 16.11 kB / 403.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2446, allocations: 6.953 kB / 403.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2446, allocations: 0 / 403.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2446, allocations: 1.562 kB / 403.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006189/0.2452, allocations: 463.3 kB / 403.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2452, allocations: 0.6562 kB / 403.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.2454, allocations: 35.44 kB / 403.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2454, allocations: 1.188 kB / 403.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.2454, allocations: 7.156 kB / 403.6 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2454, allocations: 1.375 kB / 403.6 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2454, allocations: 10 kB / 403.6 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.2458, allocations: 320.2 kB / 404 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.2458, allocations: 13.45 kB / 404 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.2459, allocations: 2.312 kB / 404 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.246, allocations: 20.34 kB / 404 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.246, allocations: 8.359 kB / 404 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.246, allocations: 7.25 kB / 404 MB, free: 4.043 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.895e-05/0.2461, allocations: 118.8 kB / 404.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2461, allocations: 0 / 404.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.2463, allocations: 21.78 kB / 404.1 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.0005817/0.2469, allocations: 0.8446 MB / 405 MB, free: 3.223 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000303/0.2472, allocations: 122.4 kB / 405.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2472, allocations: 1.281 kB / 405.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.2473, allocations: 65.94 kB / 405.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.2477, allocations: 40.31 kB / 405.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.2496, allocations: 1.957 MB / 407.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.559e-05/0.2496, allocations: 103.8 kB / 407.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.031e-05/0.2497, allocations: 12.89 kB / 407.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.147e-05/0.2497, allocations: 38.28 kB / 407.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.2497, allocations: 0 / 407.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.2738, allocations: 3.725 MB / 411 MB, free: 316 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.77, allocations: 2.844 kB / 411 MB, free: 316 kB / 318.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.967898446018808]