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.001277/0.001277, allocations: 108.6 kB / 21.22 MB, free: 0.7344 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.001388/0.001388, allocations: 183.5 kB / 24.5 MB, free: 4.09 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.36/1.36, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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.001471/0.001471, allocations: 51.92 kB / 371.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2415, allocations: 52.18 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002863/0.2444, allocations: 1.702 MB / 425.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008145/0.2452, allocations: 486.8 kB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.135e-05/0.2453, allocations: 7.938 kB / 425.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.2454, allocations: 15.8 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.563e-05/0.2454, allocations: 31.73 kB / 425.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.2456, allocations: 47.94 kB / 425.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.2458, allocations: 119.6 kB / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.2459, allocations: 25.22 kB / 425.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.876e-05/0.246, allocations: 35.86 kB / 425.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.753e-05/0.246, allocations: 51.66 kB / 425.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.2461, allocations: 8 kB / 425.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.603e-05/0.2461, allocations: 12 kB / 425.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.2461, allocations: 23.92 kB / 426 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.968e-05/0.2462, allocations: 43.67 kB / 426 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.2463, allocations: 104.3 kB / 426.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2463, allocations: 0 / 426.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2463, allocations: 0 / 426.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.2463, allocations: 0 / 426.1 MB, free: 11.92 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.0005318/0.2469, allocations: 353.7 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.2469, allocations: 12.03 kB / 426.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.071e-05/0.2469, allocations: 4.188 kB / 426.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.2469, allocations: 46.73 kB / 426.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.247, allocations: 12.84 kB / 426.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.2472, allocations: 166.2 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.2472, allocations: 8 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.2473, allocations: 4 kB / 426.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.2475, allocations: 136.2 kB / 426.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.2476, allocations: 7.922 kB / 426.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.2476, allocations: 4 kB / 426.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2476, allocations: 0 / 426.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.2478, allocations: 71.88 kB / 426.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000666/0.2484, allocations: 0.5156 MB / 427.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.2488, allocations: 134.4 kB / 427.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.2489, allocations: 52.81 kB / 427.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.2489, allocations: 3.938 kB / 427.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.249, allocations: 34.56 kB / 427.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.143e-06/0.249, allocations: 4 kB / 427.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001085/0.25, allocations: 448.8 kB / 428.1 MB, free: 9.746 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.2501, allocations: 51.41 kB / 428.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2502, allocations: 153.7 kB / 428.3 MB, free: 9.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.2503, allocations: 25.7 kB / 428.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.249e-05/0.2503, allocations: 116 kB / 428.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.2504, allocations: 43.64 kB / 428.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/0.2504, allocations: 29.7 kB / 428.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2506, allocations: 326.8 kB / 428.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.2507, allocations: 47.97 kB / 428.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.2509, allocations: 90.61 kB / 429 MB, free: 8.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.2512, allocations: 131.4 kB / 429.1 MB, free: 8.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.2512, allocations: 3.938 kB / 429.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000379/0.2516, allocations: 181.4 kB / 429.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2516, allocations: 8 kB / 429.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2516, allocations: 0 / 429.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2516, allocations: 0.9375 kB / 429.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.2517, allocations: 35.97 kB / 429.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.2518, allocations: 7.938 kB / 429.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.283e-05/0.2518, allocations: 11.98 kB / 429.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.2519, allocations: 8 kB / 429.3 MB, free: 8.43 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.0001168/0.252, allocations: 121.8 kB / 429.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.252, allocations: 15.95 kB / 429.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.743e-05/0.2521, allocations: 12.7 kB / 429.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2521, allocations: 4 kB / 429.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2521, allocations: 0 / 429.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2521, allocations: 3.938 kB / 429.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008427/0.2529, allocations: 474.9 kB / 430 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2529, allocations: 4 kB / 430 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.2531, allocations: 43.91 kB / 430 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2531, allocations: 0 / 430 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.2531, allocations: 4 kB / 430 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2531, allocations: 4.062 kB / 430 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2531, allocations: 0 / 430 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007013/0.2538, allocations: 324.9 kB / 430.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.207e-05/0.2538, allocations: 7.953 kB / 430.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.2539, allocations: 12.03 kB / 430.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.254, allocations: 11.98 kB / 430.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.254, allocations: 15.92 kB / 430.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.254, allocations: 0 / 430.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.291e-05/0.2541, allocations: 111.2 kB / 430.5 MB, free: 7.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2541, allocations: 7.938 kB / 430.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002545/0.2544, allocations: 24 kB / 430.5 MB, free: 7.164 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.0008794/0.2553, allocations: 0.8459 MB / 431.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000367/0.2556, allocations: 119.9 kB / 431.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.2556, allocations: 4.188 kB / 431.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.2558, allocations: 63.89 kB / 431.5 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.2562, allocations: 40.31 kB / 431.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002565/0.2588, allocations: 1.961 MB / 433.5 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.2591, allocations: 0.7123 MB / 434.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.543e-05/0.2592, allocations: 13.42 kB / 434.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.187e-05/0.2593, allocations: 39.42 kB / 434.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2593, allocations: 0 / 434.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02595/0.2852, allocations: 3.602 MB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.84, allocations: 6.984 kB / 437.9 MB, free: 15.74 MB / 350.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: 13.123220012988895]