Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit.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.00125/0.00125, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001429/0.001429, allocations: 218.3 kB / 22.24 MB, free: 5.102 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.271/3.271, allocations: 0.49 GB / 0.7951 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) 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(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 72.69 kB / 1.154 GB, free: 25.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.466/0.468, allocations: 176.1 MB / 1.326 GB, free: 1.5 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003256/0.4713, allocations: 1.478 MB / 1.327 GB, free: 16 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.4726, allocations: 0.5883 MB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.328e-05/0.4727, allocations: 0 / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.177e-05/0.4727, allocations: 0 / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.27e-05/0.4728, allocations: 7.875 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.4731, allocations: 59.81 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.4733, allocations: 31.86 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.4734, allocations: 0 / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.4735, allocations: 31.91 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.438e-05/0.4736, allocations: 23.86 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.338e-05/0.4736, allocations: 0 / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.4737, allocations: 51.95 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.4738, allocations: 11.98 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.465e-05/0.4738, allocations: 11.88 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001735/0.474, allocations: 72.02 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.474, allocations: 0 / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.483e-06/0.474, allocations: 0 / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.169e-05/0.474, allocations: 0 / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005069/0.4745, allocations: 278.1 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.4745, allocations: 12.03 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.4746, allocations: 34.69 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.4747, allocations: 12.92 kB / 1.328 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.475, allocations: 130.4 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.475, allocations: 384 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.475, allocations: 384 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.4752, allocations: 49.75 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.4752, allocations: 0 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.4752, allocations: 0 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.4752, allocations: 0 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.888e-05/0.4753, allocations: 23.98 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003355/0.4756, allocations: 220 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.4758, allocations: 30.56 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.574e-05/0.4758, allocations: 24.84 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006836/0.4765, allocations: 95.88 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.4765, allocations: 30.56 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.4765, allocations: 0 / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.00026/0.4768, allocations: 61.62 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.4768, allocations: 59.41 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.94e-05/0.4769, allocations: 105.8 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.477, allocations: 25.7 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.542e-05/0.477, allocations: 88.14 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.477, allocations: 16.38 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.4771, allocations: 13.72 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.4772, allocations: 318.8 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.782e-05/0.4773, allocations: 15.98 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.352e-05/0.4773, allocations: 11.94 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.756e-05/0.4774, allocations: 24.84 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.4774, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001231/0.4775, allocations: 57.75 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.4775, allocations: 7.984 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4775, allocations: 0 / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.4775, allocations: 0 / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.682e-05/0.4776, allocations: 7.938 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.4776, allocations: 0 / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.189e-05/0.4776, allocations: 4 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.4776, allocations: 3.938 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.666e-05/0.4777, allocations: 122.3 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.4778, allocations: 3.953 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.4779, allocations: 65.33 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.478, allocations: 4 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.478, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.478, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.4781, allocations: 132.7 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.4781, allocations: 4 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.225e-05/0.4782, allocations: 4 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.4782, allocations: 0 / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.4782, allocations: 0 / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.4782, allocations: 7.922 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4782, allocations: 4.031 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.4784, allocations: 155.4 kB / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.164e-06/0.4784, allocations: 0 / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.4784, allocations: 0 / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.115e-05/0.4784, allocations: 7.984 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.011e-05/0.4785, allocations: 0 / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.4785, allocations: 0 / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.765e-05/0.4785, allocations: 91.27 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4785, allocations: 0 / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002366/0.4788, allocations: 15.94 kB / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (2): * Single equations (assignments): 2 * 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.0005776/0.4794, allocations: 0.7048 MB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001553/0.4795, allocations: 27.92 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.4795, allocations: 0 / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.612e-05/0.4796, allocations: 11.98 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.4798, allocations: 7.984 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.4812, allocations: 1.259 MB / 1.332 GB, free: 10.4 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.019e-05/0.4813, allocations: 71.25 kB / 1.332 GB, free: 10.31 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.37e-05/0.4813, allocations: 4 kB / 1.332 GB, free: 10.31 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.891e-05/0.4814, allocations: 15.42 kB / 1.332 GB, free: 10.29 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.4814, allocations: 0 / 1.332 GB, free: 10.29 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03143/0.5128, allocations: 2.18 MB / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.61, allocations: 6.125 kB / 1.335 GB, free: 8.238 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_SmoothLimit.fmu > Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.625338802987244]