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.001222/0.001222, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.00143/0.00143, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.342/1.342, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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.001426/0.001426, allocations: 47.92 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2274, allocations: 53.37 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002797/0.2302, allocations: 1.712 MB / 433.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009275/0.2311, allocations: 0.522 MB / 434.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.2312, allocations: 0 / 434.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.2313, allocations: 15.8 kB / 434.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.299e-05/0.2314, allocations: 35.78 kB / 434.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001443/0.2315, allocations: 43.89 kB / 434.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.2317, allocations: 111.6 kB / 434.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.751e-05/0.2318, allocations: 21.28 kB / 434.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.56e-05/0.2318, allocations: 51.72 kB / 434.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.515e-05/0.2319, allocations: 43.78 kB / 434.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.232, allocations: 8 kB / 434.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.571e-05/0.232, allocations: 8 kB / 434.5 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.557e-05/0.2321, allocations: 15.92 kB / 434.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.285e-05/0.2321, allocations: 51.67 kB / 434.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.2323, allocations: 97.75 kB / 434.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2323, allocations: 0 / 434.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.2323, allocations: 4 kB / 434.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.2323, allocations: 0 / 434.6 MB, free: 4.121 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.0005561/0.2329, allocations: 349.8 kB / 435 MB, free: 3.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2329, allocations: 8.031 kB / 435 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.271e-05/0.2329, allocations: 4.188 kB / 435 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.654e-05/0.2329, allocations: 42.75 kB / 435 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.233, allocations: 16.84 kB / 435.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.2332, allocations: 162.8 kB / 435.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.2333, allocations: 12.08 kB / 435.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.2333, allocations: 12 kB / 435.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.2336, allocations: 134.5 kB / 435.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.2336, allocations: 0 / 435.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.2336, allocations: 4 kB / 435.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.2336, allocations: 4 kB / 435.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.2338, allocations: 63.94 kB / 435.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006845/0.2345, allocations: 0.5233 MB / 436 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.2348, allocations: 126.5 kB / 436.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.235, allocations: 60.75 kB / 436.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.235, allocations: 4 kB / 436.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.235, allocations: 30.56 kB / 436.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.235, allocations: 192 / 436.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001109/0.2361, allocations: 444.6 kB / 436.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.2362, allocations: 55.41 kB / 436.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.2363, allocations: 155.5 kB / 436.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.2363, allocations: 33.7 kB / 436.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.738e-05/0.2364, allocations: 108 kB / 437 MB, free: 1.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.2365, allocations: 51.52 kB / 437 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-05/0.2365, allocations: 33.7 kB / 437 MB, free: 1.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2367, allocations: 322.8 kB / 437.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.2368, allocations: 47.97 kB / 437.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.237, allocations: 91.44 kB / 437.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.2373, allocations: 137.8 kB / 437.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2373, allocations: 4 kB / 437.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003829/0.2377, allocations: 173.5 kB / 437.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2377, allocations: 7.938 kB / 437.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2377, allocations: 8.078 kB / 437.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.2377, allocations: 4 kB / 437.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.2379, allocations: 43.86 kB / 437.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.2379, allocations: 0 / 437.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.941e-05/0.238, allocations: 11.98 kB / 437.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.238, allocations: 4 kB / 437.9 MB, free: 0.6328 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.0001096/0.2381, allocations: 125.8 kB / 438 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.2382, allocations: 20.78 kB / 438 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.123e-05/0.2382, allocations: 16.72 kB / 438 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2382, allocations: 0 / 438 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2382, allocations: 0 / 438 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2382, allocations: 0 / 438 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008131/0.239, allocations: 478.9 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.239, allocations: 0 / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.2392, allocations: 31.97 kB / 438.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2392, allocations: 4 kB / 438.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.2392, allocations: 4 kB / 438.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2392, allocations: 0 / 438.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2392, allocations: 4 kB / 438.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005907/0.2398, allocations: 324.9 kB / 438.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/0.2398, allocations: 19.94 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.2399, allocations: 96 / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.24, allocations: 15.98 kB / 438.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.2401, allocations: 11.97 kB / 438.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.2401, allocations: 4 kB / 438.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.751e-05/0.2402, allocations: 119.2 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2402, allocations: 0 / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.2404, allocations: 20 kB / 439.1 MB, free: 15.37 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.000844/0.2413, allocations: 0.8351 MB / 439.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003668/0.2417, allocations: 131.7 kB / 440 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2417, allocations: 0 / 440 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.2418, allocations: 68.2 kB / 440.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.2422, allocations: 44.5 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.2449, allocations: 1.95 MB / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.2453, allocations: 0.7084 MB / 442.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.631e-05/0.2453, allocations: 17.42 kB / 442.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.2454, allocations: 39.42 kB / 442.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2454, allocations: 0 / 442.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.2694, allocations: 3.574 MB / 446.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.68, allocations: 8.375 kB / 446.4 MB, free: 7.992 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: 12.926857890968677]