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.0008093/0.0008093, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008749/0.0008749, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.868/0.868, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.308e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002015/0.002038, allocations: 1.633 MB / 320.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006831/0.002721, allocations: 466.8 kB / 320.5 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.205e-05/0.002803, allocations: 3.938 kB / 320.5 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.00291, allocations: 11.86 kB / 320.5 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.176e-05/0.002982, allocations: 31.73 kB / 320.6 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001703/0.003152, allocations: 51.88 kB / 320.6 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001427/0.003295, allocations: 119.5 kB / 320.7 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.003408, allocations: 29.27 kB / 320.8 MB, free: 3.996 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.498e-05/0.003473, allocations: 59.83 kB / 320.8 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.718e-05/0.00354, allocations: 35.83 kB / 320.9 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.003562, allocations: 8 kB / 320.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.153e-05/0.003574, allocations: 8 kB / 320.9 MB, free: 3.887 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.003594, allocations: 19.92 kB / 320.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.066e-05/0.003625, allocations: 31.84 kB / 320.9 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.003747, allocations: 87.64 kB / 321 MB, free: 3.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.00375, allocations: 4 kB / 321 MB, free: 3.746 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.003751, allocations: 0 / 321 MB, free: 3.746 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.003755, allocations: 0 / 321 MB, free: 3.746 MB / 282.7 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.0004292/0.004185, allocations: 357.8 kB / 321.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.004227, allocations: 8.922 kB / 321.4 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.535e-05/0.004262, allocations: 46.73 kB / 321.4 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.00429, allocations: 16.78 kB / 321.4 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.0045, allocations: 158.1 kB / 321.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.004516, allocations: 8.125 kB / 321.6 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.004538, allocations: 11.95 kB / 321.6 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.004729, allocations: 128.2 kB / 321.7 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.004741, allocations: 4 kB / 321.7 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.004752, allocations: 4 kB / 321.7 MB, free: 2.941 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.004757, allocations: 0 / 321.7 MB, free: 2.941 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.004869, allocations: 67.89 kB / 321.8 MB, free: 2.875 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005201/0.005389, allocations: 0.5116 MB / 322.3 MB, free: 2.312 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000202/0.005591, allocations: 126.4 kB / 322.4 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.939e-05/0.005671, allocations: 56.81 kB / 322.5 MB, free: 2.121 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.005681, allocations: 0 / 322.5 MB, free: 2.121 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.005701, allocations: 42.56 kB / 322.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.005702, allocations: 0 / 322.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006989/0.006401, allocations: 445.7 kB / 323 MB, free: 1.602 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.006434, allocations: 55.5 kB / 323 MB, free: 1.535 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.006537, allocations: 152.1 kB / 323.2 MB, free: 1.379 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.006551, allocations: 33.7 kB / 323.2 MB, free: 1.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.17e-05/0.006613, allocations: 115.9 kB / 323.3 MB, free: 1.223 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.006637, allocations: 43.62 kB / 323.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-05/0.006678, allocations: 33.72 kB / 323.4 MB, free: 1.141 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.7e-05/0.006755, allocations: 322.8 kB / 323.7 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.028e-05/0.006835, allocations: 51.95 kB / 323.8 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.944e-05/0.006935, allocations: 83.39 kB / 323.8 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.007102, allocations: 127.3 kB / 324 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.007103, allocations: 0 / 324 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002169/0.00732, allocations: 188.5 kB / 324.1 MB, free: 356 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.007334, allocations: 14.59 kB / 324.2 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.007339, allocations: 0 / 324.2 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.007353, allocations: 4 kB / 324.2 MB, free: 340 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.007454, allocations: 35.97 kB / 324.2 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.00746, allocations: 4.094 kB / 324.2 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.039e-05/0.0075, allocations: 15.98 kB / 324.2 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.007507, allocations: 4 kB / 324.2 MB, free: 280 kB / 282.7 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 6.694e-05/0.007574, allocations: 121.8 kB / 324.3 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.126e-05/0.007595, allocations: 15.89 kB / 324.4 MB, free: 132 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.007624, allocations: 16.77 kB / 324.4 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.007626, allocations: 4 kB / 324.4 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.00763, allocations: 3.984 kB / 324.4 MB, free: 108 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.007633, allocations: 0 / 324.4 MB, free: 108 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000471/0.008104, allocations: 463 kB / 324.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.008106, allocations: 0 / 324.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.822e-05/0.008194, allocations: 31.97 kB / 324.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.008196, allocations: 0 / 324.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.008208, allocations: 12.06 kB / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.008211, allocations: 3.938 kB / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.008213, allocations: 0 / 324.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003274/0.00854, allocations: 324.9 kB / 325.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.555e-05/0.008556, allocations: 11.91 kB / 325.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.008571, allocations: 8 kB / 325.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.474e-05/0.008625, allocations: 12.12 kB / 325.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.008666, allocations: 15.92 kB / 325.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.008672, allocations: 7.938 kB / 325.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.77e-05/0.00873, allocations: 118 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00873, allocations: 0 / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001739/0.008904, allocations: 20 kB / 325.4 MB, free: 15.02 MB / 298.7 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.000533/0.009437, allocations: 0.8467 MB / 326.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002229/0.009659, allocations: 115.9 kB / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.009662, allocations: 0 / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.987e-05/0.009751, allocations: 68.08 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.01004, allocations: 39.34 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.01196, allocations: 1.928 MB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.039e-05/0.01203, allocations: 102.4 kB / 328.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.551e-05/0.01209, allocations: 13.48 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.436e-05/0.01215, allocations: 40.48 kB / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of SimCode: time 1.072e-06/0.01215, allocations: 0 / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.03106, allocations: 4.198 MB / 332.7 MB, free: 7.656 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.842/6.874, allocations: 3.375 kB / 332.7 MB, free: 7.656 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.477412356063724]