Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001482/0.001482, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001621/0.001621, allocations: 214.7 kB / 24.52 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.339/1.339, allocations: 230.6 MB / 258.3 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 47.92 kB / 378.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2169, allocations: 53.37 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002723/0.2196, allocations: 1.652 MB / 433.5 MB, free: 5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008169/0.2204, allocations: 494.8 kB / 434 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.025e-05/0.2205, allocations: 4 kB / 434 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.492e-05/0.2206, allocations: 15.8 kB / 434 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.295e-05/0.2206, allocations: 23.8 kB / 434 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.2208, allocations: 55.88 kB / 434.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.221, allocations: 111.6 kB / 434.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.785e-05/0.2211, allocations: 21.3 kB / 434.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.031e-05/0.2211, allocations: 47.73 kB / 434.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.677e-05/0.2212, allocations: 43.77 kB / 434.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.268e-05/0.2212, allocations: 11.94 kB / 434.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.865e-05/0.2212, allocations: 8 kB / 434.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.77e-05/0.2213, allocations: 23.86 kB / 434.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.2213, allocations: 39.73 kB / 434.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.2214, allocations: 101.8 kB / 434.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2214, allocations: 0 / 434.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2214, allocations: 0 / 434.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.2215, allocations: 0 / 434.5 MB, free: 4.012 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.0005094/0.222, allocations: 353.8 kB / 434.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.222, allocations: 8.031 kB / 434.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.067e-05/0.222, allocations: 8.141 kB / 434.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.647e-05/0.2221, allocations: 42.67 kB / 434.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.2221, allocations: 12.89 kB / 434.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.2223, allocations: 154.9 kB / 435.1 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.2223, allocations: 12.12 kB / 435.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.2224, allocations: 12 kB / 435.1 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.2226, allocations: 134.2 kB / 435.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2226, allocations: 0 / 435.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.2226, allocations: 4 kB / 435.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.2227, allocations: 4 kB / 435.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.2228, allocations: 71.88 kB / 435.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/0.2235, allocations: 0.5039 MB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.2238, allocations: 126.5 kB / 435.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.224, allocations: 56.83 kB / 436 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.224, allocations: 3.938 kB / 436 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.224, allocations: 34.69 kB / 436 MB, free: 2.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.224, allocations: 0 / 436 MB, free: 2.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001042/0.225, allocations: 449.5 kB / 436.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.2251, allocations: 51.41 kB / 436.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.2252, allocations: 151.8 kB / 436.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.2252, allocations: 33.88 kB / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.2253, allocations: 108 kB / 436.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.2253, allocations: 51.52 kB / 436.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.626e-05/0.2254, allocations: 37.7 kB / 436.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.2256, allocations: 318.8 kB / 437.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.2257, allocations: 55.95 kB / 437.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.2259, allocations: 79.45 kB / 437.3 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.2262, allocations: 139.3 kB / 437.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.51e-07/0.2262, allocations: 0 / 437.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003471/0.2265, allocations: 181.4 kB / 437.6 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2265, allocations: 12.03 kB / 437.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2265, allocations: 4 kB / 437.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.2265, allocations: 0 / 437.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.2267, allocations: 39.91 kB / 437.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2267, allocations: 4 kB / 437.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.658e-05/0.2268, allocations: 15.98 kB / 437.7 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.2268, allocations: 4 kB / 437.7 MB, free: 0.5352 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 9.167e-05/0.2269, allocations: 117.8 kB / 437.8 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.401e-05/0.2269, allocations: 19.84 kB / 437.8 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.703e-05/0.2269, allocations: 20.66 kB / 437.9 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.227, allocations: 3.984 kB / 437.9 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.227, allocations: 4 kB / 437.9 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.227, allocations: 0 / 437.9 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007494/0.2277, allocations: 455.2 kB / 438.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2277, allocations: 0 / 438.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.2279, allocations: 35.97 kB / 438.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2279, allocations: 0 / 438.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.2279, allocations: 4 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2279, allocations: 4 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2279, allocations: 0 / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005593/0.2285, allocations: 333 kB / 438.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.829e-05/0.2285, allocations: 11.91 kB / 438.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.2285, allocations: 4 kB / 438.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.2286, allocations: 15.98 kB / 438.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.2286, allocations: 7.984 kB / 438.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.2287, allocations: 4 kB / 438.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.059e-05/0.2287, allocations: 122.9 kB / 438.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2287, allocations: 7.938 kB / 438.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000235/0.229, allocations: 20 kB / 438.9 MB, free: 15.28 MB / 350.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.0007569/0.2297, allocations: 0.8428 MB / 439.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003266/0.2301, allocations: 123.8 kB / 439.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2301, allocations: 0 / 439.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.2302, allocations: 67.89 kB / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.2306, allocations: 46.47 kB / 439.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002362/0.2329, allocations: 1.933 MB / 441.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.145e-05/0.233, allocations: 106.2 kB / 442 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.844e-05/0.2331, allocations: 13.42 kB / 442 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.308e-05/0.2332, allocations: 43.42 kB / 442 MB, free: 11.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2332, allocations: 3.938 kB / 442 MB, free: 11.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.2583, allocations: 3.693 MB / 445.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.91, allocations: 10.36 kB / 445.7 MB, free: 8.422 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.192837680922821]