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.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.00124/0.00124, allocations: 121.4 kB / 18.45 MB, free: 4.477 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.001297/0.001297, allocations: 189.2 kB / 21.39 MB, free: 1.543 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.351/1.351, allocations: 207.6 MB / 231.8 MB, free: 4.051 MB / 174.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.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_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 51.92 kB / 342.2 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08801/0.08968, allocations: 49.12 MB / 391.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002907/0.09259, allocations: 1.675 MB / 393 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008874/0.09347, allocations: 0.5267 MB / 393.6 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.817e-05/0.09355, allocations: 7.938 kB / 393.6 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.09366, allocations: 15.86 kB / 393.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.794e-05/0.09374, allocations: 31.72 kB / 393.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001438/0.09389, allocations: 43.95 kB / 393.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.09406, allocations: 119.5 kB / 393.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.912e-05/0.09416, allocations: 21.11 kB / 393.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.645e-05/0.09423, allocations: 43.73 kB / 393.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.431e-05/0.09432, allocations: 51.7 kB / 393.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.09434, allocations: 8 kB / 393.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.585e-05/0.09436, allocations: 12 kB / 393.9 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.09439, allocations: 19.91 kB / 393.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.94e-05/0.09444, allocations: 47.67 kB / 394 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.0946, allocations: 99.45 kB / 394.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.0946, allocations: 0 / 394.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.0946, allocations: 0 / 394.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.09461, allocations: 0 / 394.1 MB, free: 5.996 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.0006014/0.09521, allocations: 426.9 kB / 394.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.09524, allocations: 12.03 kB / 394.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.881e-05/0.09529, allocations: 42.73 kB / 394.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.09532, allocations: 12.89 kB / 394.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.09561, allocations: 224.6 kB / 394.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.09563, allocations: 4.375 kB / 394.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.09566, allocations: 15.94 kB / 394.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002833/0.09594, allocations: 132.2 kB / 394.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.09596, allocations: 4 kB / 394.9 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.09597, allocations: 0 / 394.9 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.09597, allocations: 0 / 394.9 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.09616, allocations: 71.88 kB / 395 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007308/0.09689, allocations: 0.5477 MB / 395.5 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.09724, allocations: 130.4 kB / 395.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.09738, allocations: 56.83 kB / 395.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.09739, allocations: 4 kB / 395.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.09743, allocations: 34.55 kB / 395.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.09743, allocations: 0 / 395.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.00111/0.09854, allocations: 0.5144 MB / 396.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.09858, allocations: 55.5 kB / 396.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.09874, allocations: 169.9 kB / 396.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.09875, allocations: 25.7 kB / 396.5 MB, free: 3.273 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/0.09884, allocations: 112 kB / 396.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/0.09888, allocations: 43.64 kB / 396.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/0.09893, allocations: 33.67 kB / 396.7 MB, free: 3.078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.09908, allocations: 326.8 kB / 397 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.09923, allocations: 51.95 kB / 397.1 MB, free: 2.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.09938, allocations: 83.23 kB / 397.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.09967, allocations: 139.4 kB / 397.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.09967, allocations: 0 / 397.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003562/0.1, allocations: 173.4 kB / 397.5 MB, free: 2.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.1, allocations: 12.03 kB / 397.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.1, allocations: 0 / 397.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1001, allocations: 4 kB / 397.5 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.1002, allocations: 43.91 kB / 397.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1002, allocations: 3.938 kB / 397.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.398e-05/0.1003, allocations: 11.98 kB / 397.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.1003, allocations: 4 kB / 397.5 MB, free: 2.203 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 9.815e-05/0.1004, allocations: 129.7 kB / 397.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.1004, allocations: 19.84 kB / 397.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.987e-05/0.1005, allocations: 20.7 kB / 397.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.1005, allocations: 0 / 397.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1005, allocations: 0 / 397.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1005, allocations: 0 / 397.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007531/0.1012, allocations: 0.4921 MB / 398.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1013, allocations: 0 / 398.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.1014, allocations: 35.91 kB / 398.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.1014, allocations: 4 kB / 398.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.1014, allocations: 4 kB / 398.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1014, allocations: 0 / 398.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1014, allocations: 4 kB / 398.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.102, allocations: 317 kB / 398.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/0.102, allocations: 97.05 kB / 398.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.102, allocations: 3.938 kB / 398.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.1021, allocations: 20.08 kB / 398.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.015e-05/0.1022, allocations: 11.92 kB / 398.7 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.1022, allocations: 4 kB / 398.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.485e-05/0.1023, allocations: 115.2 kB / 398.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1023, allocations: 0 / 398.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002387/0.1025, allocations: 23.94 kB / 398.8 MB, free: 0.8047 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.0008235/0.1034, allocations: 0.8431 MB / 399.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003336/0.1037, allocations: 127.8 kB / 399.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1037, allocations: 0 / 399.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.1038, allocations: 68.22 kB / 399.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.1042, allocations: 35.91 kB / 399.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.1066, allocations: 1.952 MB / 401.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.107, allocations: 0.7123 MB / 402.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.382e-05/0.1071, allocations: 13.42 kB / 402.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.1071, allocations: 35.62 kB / 402.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1071, allocations: 0 / 402.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/0.134, allocations: 3.386 MB / 406 MB, free: 9.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.909/8.043, allocations: 3.859 kB / 406 MB, free: 9.41 MB / 334.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.203376474324614]