Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.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.00165/0.00165, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001481/0.001481, allocations: 209.1 kB / 23.04 MB, free: 5.074 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.28/3.28, allocations: 0.5003 GB / 0.8062 GB, free: 26.8 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="cs",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.002056/0.002056, allocations: 70.53 kB / 1.171 GB, free: 19.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4586/0.4606, allocations: 179 MB / 1.345 GB, free: 0.5 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003625/0.4642, allocations: 1.826 MB / 1.347 GB, free: 14.66 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.4658, allocations: 0.7402 MB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.952e-05/0.4659, allocations: 0 / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.978e-05/0.4659, allocations: 11.88 kB / 1.348 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.231e-05/0.466, allocations: 23.78 kB / 1.348 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006715/0.4667, allocations: 182.7 kB / 1.348 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.4669, allocations: 127.6 kB / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.4671, allocations: 45.83 kB / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.4673, allocations: 71.7 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.4674, allocations: 43.78 kB / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.975e-05/0.4674, allocations: 8 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.4676, allocations: 59.94 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.061e-05/0.4676, allocations: 27.92 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.251e-05/0.4677, allocations: 59.64 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.468, allocations: 151.4 kB / 1.349 GB, free: 13.12 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.468, allocations: 0 / 1.349 GB, free: 13.12 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.563e-06/0.468, allocations: 0 / 1.349 GB, free: 13.12 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.124e-06/0.468, allocations: 0 / 1.349 GB, free: 13.12 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007022/0.4687, allocations: 377.7 kB / 1.349 GB, free: 12.72 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.4687, allocations: 8.031 kB / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.8e-05/0.4688, allocations: 8.188 kB / 1.349 GB, free: 12.7 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.475e-05/0.4688, allocations: 34.75 kB / 1.349 GB, free: 12.66 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.4698, allocations: 136.6 kB / 1.349 GB, free: 12.53 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.4702, allocations: 163.4 kB / 1.349 GB, free: 12.34 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.4704, allocations: 110.9 kB / 1.349 GB, free: 12.21 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.4704, allocations: 12 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.471, allocations: 169.4 kB / 1.35 GB, free: 12.03 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.471, allocations: 3.938 kB / 1.35 GB, free: 12.02 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.471, allocations: 4 kB / 1.35 GB, free: 12.02 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.471, allocations: 4 kB / 1.35 GB, free: 12.02 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006631/0.4717, allocations: 166.1 kB / 1.35 GB, free: 11.86 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.4729, allocations: 464.5 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.4739, allocations: 210.3 kB / 1.35 GB, free: 11.14 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003098/0.4742, allocations: 84.91 kB / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.4743, allocations: 3.938 kB / 1.35 GB, free: 11.05 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.4743, allocations: 30.56 kB / 1.351 GB, free: 11.02 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.4743, allocations: 0 / 1.351 GB, free: 11.02 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.001096/0.4754, allocations: 269.3 kB / 1.351 GB, free: 10.75 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.4755, allocations: 51.41 kB / 1.351 GB, free: 10.68 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.4756, allocations: 148.3 kB / 1.351 GB, free: 10.53 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.4757, allocations: 29.64 kB / 1.351 GB, free: 10.49 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.55e-05/0.4757, allocations: 112.2 kB / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.4758, allocations: 15.86 kB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.439e-05/0.4758, allocations: 29.7 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000161/0.476, allocations: 318.8 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.4763, allocations: 72.17 kB / 1.352 GB, free: 9.938 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.4766, allocations: 98.48 kB / 1.352 GB, free: 9.832 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006031/0.4773, allocations: 166.4 kB / 1.352 GB, free: 9.66 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.4773, allocations: 3.938 kB / 1.352 GB, free: 9.656 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007089/0.478, allocations: 201.4 kB / 1.352 GB, free: 9.453 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.478, allocations: 4.062 kB / 1.352 GB, free: 9.449 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.478, allocations: 4 kB / 1.352 GB, free: 9.445 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.478, allocations: 0 / 1.352 GB, free: 9.445 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.4783, allocations: 39.95 kB / 1.352 GB, free: 9.406 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.4783, allocations: 0 / 1.352 GB, free: 9.406 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.4785, allocations: 31.84 kB / 1.352 GB, free: 9.375 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.4785, allocations: 4 kB / 1.352 GB, free: 9.371 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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.000138/0.4787, allocations: 125.7 kB / 1.352 GB, free: 9.238 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.4787, allocations: 11.95 kB / 1.352 GB, free: 9.227 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007776/0.4795, allocations: 198.2 kB / 1.352 GB, free: 9.023 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.4795, allocations: 4 kB / 1.352 GB, free: 9.02 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4795, allocations: 0 / 1.352 GB, free: 9.02 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.4795, allocations: 3.984 kB / 1.352 GB, free: 9.016 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003045/0.4798, allocations: 217.4 kB / 1.353 GB, free: 8.758 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4798, allocations: 0 / 1.353 GB, free: 8.758 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.48, allocations: 27.95 kB / 1.353 GB, free: 8.73 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.48, allocations: 7.938 kB / 1.353 GB, free: 8.723 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.4801, allocations: 7.984 kB / 1.353 GB, free: 8.715 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.4801, allocations: 0 / 1.353 GB, free: 8.715 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4801, allocations: 8.062 kB / 1.353 GB, free: 8.707 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007437/0.4808, allocations: 287.3 kB / 1.353 GB, free: 8.41 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.874e-05/0.4808, allocations: 7.953 kB / 1.353 GB, free: 8.402 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.4808, allocations: 4 kB / 1.353 GB, free: 8.398 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.4811, allocations: 31.95 kB / 1.353 GB, free: 8.367 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/0.4812, allocations: 11.92 kB / 1.353 GB, free: 8.355 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.4812, allocations: 11.97 kB / 1.353 GB, free: 8.344 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.561e-05/0.4813, allocations: 105.7 kB / 1.353 GB, free: 8.242 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4813, allocations: 0 / 1.353 GB, free: 8.242 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002753/0.4816, allocations: 31.89 kB / 1.353 GB, free: 8.211 MB / 1.045 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 (6): * Single equations (assignments): 6 * 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.00115/0.4827, allocations: 0.8099 MB / 1.354 GB, free: 7.375 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0007229/0.4835, allocations: 167.8 kB / 1.354 GB, free: 7.211 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4835, allocations: 0 / 1.354 GB, free: 7.211 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.4838, allocations: 88.03 kB / 1.354 GB, free: 7.125 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.4841, allocations: 4 kB / 1.354 GB, free: 7.121 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.4877, allocations: 1.84 MB / 1.356 GB, free: 5.191 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.4881, allocations: 0.7002 MB / 1.357 GB, free: 4.465 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.819e-05/0.4882, allocations: 16 kB / 1.357 GB, free: 4.449 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.4883, allocations: 39.41 kB / 1.357 GB, free: 4.41 MB / 1.045 GB Notification: Performance of SimCode: time 8.41e-07/0.4883, allocations: 0 / 1.357 GB, free: 4.41 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.514, allocations: 2.995 MB / 1.36 GB, free: 1.566 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.79, allocations: 11.61 kB / 1.36 GB, free: 1.559 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.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: 19.00479475199245]