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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) 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: translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008231/0.000823, allocations: 86.25 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008591/0.0008592, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.912/2.912, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003979, allocations: 12.22 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.4, allocations: 159.6 MB / 1.058 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001956/0.402, allocations: 1.454 MB / 1.059 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009824/0.4029, allocations: 0.6198 MB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.057e-05/0.403, allocations: 4 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.107e-05/0.403, allocations: 3.938 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.12e-05/0.4031, allocations: 11.86 kB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005099/0.4036, allocations: 149.1 kB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001404/0.4038, allocations: 107.7 kB / 1.06 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.4039, allocations: 33.28 kB / 1.06 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.404, allocations: 55.77 kB / 1.06 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.071e-05/0.4041, allocations: 35.78 kB / 1.06 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.4042, allocations: 4 kB / 1.06 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.4043, allocations: 35.97 kB / 1.06 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.157e-05/0.4043, allocations: 23.91 kB / 1.06 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.111e-05/0.4044, allocations: 37.64 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.4045, allocations: 104 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4045, allocations: 0 / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.355e-06/0.4045, allocations: 0 / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.4046, allocations: 0 / 1.061 GB, free: 2.617 MB / 0.8106 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.0006164/0.4052, allocations: 415 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4052, allocations: 8.031 kB / 1.061 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000794/0.406, allocations: 147.7 kB / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.4063, allocations: 186.8 kB / 1.061 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.4064, allocations: 67.38 kB / 1.061 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.4064, allocations: 8 kB / 1.061 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.4069, allocations: 189.5 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.407, allocations: 0 / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.407, allocations: 4 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.407, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000591/0.4076, allocations: 191.8 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.4088, allocations: 0.498 MB / 1.062 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.4098, allocations: 278.2 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002941/0.4102, allocations: 100.9 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.162e-05/0.4102, allocations: 3.938 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/0.4103, allocations: 38.55 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.844e-06/0.4103, allocations: 4 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.001099/0.4114, allocations: 305.5 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.4115, allocations: 55.41 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.4117, allocations: 148.6 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.4117, allocations: 25.7 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.4118, allocations: 108.2 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.747e-05/0.4119, allocations: 23.66 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.4119, allocations: 4 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002157/0.4121, allocations: 318.8 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002795/0.4124, allocations: 91.92 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.4127, allocations: 114.5 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002931/0.413, allocations: 91.89 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.413, allocations: 0 / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006269/0.4137, allocations: 237.4 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4137, allocations: 4 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.4137, allocations: 4.062 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.4137, allocations: 4 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.414, allocations: 43.94 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.414, allocations: 7.938 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.4142, allocations: 31.97 kB / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.4143, allocations: 0 / 1.064 GB, free: 14.69 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.4144, allocations: 121.8 kB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.534e-05/0.4144, allocations: 11.91 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007044/0.4152, allocations: 242.2 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4152, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.4152, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.4152, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003414/0.4155, allocations: 242 kB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4155, allocations: 3.938 kB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.4158, allocations: 55.88 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4158, allocations: 0 / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.4158, allocations: 384 / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4158, allocations: 7.938 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/0.4158, allocations: 4 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006327/0.4164, allocations: 315.3 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.737e-05/0.4165, allocations: 88.97 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.4165, allocations: 0 / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.4168, allocations: 47.95 kB / 1.065 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.4169, allocations: 7.984 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.4169, allocations: 7.984 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.497e-05/0.417, allocations: 100.5 kB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.503e-06/0.417, allocations: 4 kB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002538/0.4172, allocations: 19.94 kB / 1.065 GB, free: 13.34 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001734/0.4174, allocations: 103.2 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006241/0.4181, allocations: 191.8 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/0.4181, allocations: 4.125 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002951/0.4184, allocations: 103.8 kB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.4187, allocations: 26.38 kB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006371/0.4194, allocations: 297.3 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.4197, allocations: 0.7004 MB / 1.067 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000104/0.4198, allocations: 16.19 kB / 1.067 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.803e-05/0.4199, allocations: 19.42 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of SimCode: time 4.01e-07/0.4199, allocations: 0 / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of Templates: time 0.003908/0.4238, allocations: 1.31 MB / 1.068 GB, free: 10.53 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches