Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.392/1.392, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 180 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.839/1.839, allocations: 205.4 MB / 0.5775 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008622/0.0008622, allocations: 91.73 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003411, allocations: 9.281 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.224, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1674/0.3914, allocations: 133.6 MB / 1.031 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.3917, allocations: 79.95 kB / 1.031 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01483/0.4065, allocations: 5.049 MB / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4066, allocations: 0 / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.4066, allocations: 0 / 1.036 GB, free: 5.035 MB / 0.6823 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.0005333/0.4071, allocations: 434.7 kB / 1.036 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.4072, allocations: 8.031 kB / 1.036 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006756/0.4079, allocations: 119.7 kB / 1.036 GB, free: 4.438 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.408, allocations: 178.9 kB / 1.036 GB, free: 4.223 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.764e-05/0.4081, allocations: 67.39 kB / 1.036 GB, free: 4.145 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.4081, allocations: 8 kB / 1.036 GB, free: 4.137 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/0.4086, allocations: 189.5 kB / 1.036 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.4087, allocations: 0 / 1.036 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.4087, allocations: 7.938 kB / 1.036 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.4087, allocations: 0 / 1.036 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005812/0.4093, allocations: 203.7 kB / 1.037 GB, free: 3.738 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.4104, allocations: 0.4978 MB / 1.037 GB, free: 3.188 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009833/0.4114, allocations: 266.3 kB / 1.037 GB, free: 2.918 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.4114, allocations: 8.125 kB / 1.037 GB, free: 2.91 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.4115, allocations: 30.56 kB / 1.037 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.4115, allocations: 0 / 1.037 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.00105/0.4125, allocations: 317.5 kB / 1.038 GB, free: 2.555 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.4126, allocations: 55.41 kB / 1.038 GB, free: 2.488 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.804e-05/0.4127, allocations: 127.2 kB / 1.038 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.4127, allocations: 25.7 kB / 1.038 GB, free: 2.328 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.771e-05/0.4128, allocations: 108.1 kB / 1.038 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.4128, allocations: 23.7 kB / 1.038 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-06/0.4128, allocations: 0 / 1.038 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.413, allocations: 322.8 kB / 1.038 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.4133, allocations: 95.91 kB / 1.038 GB, free: 1.773 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.4136, allocations: 110.5 kB / 1.039 GB, free: 1.656 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002957/0.4139, allocations: 92.17 kB / 1.039 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4139, allocations: 0 / 1.039 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006436/0.4146, allocations: 245.4 kB / 1.039 GB, free: 1.32 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.4146, allocations: 4 kB / 1.039 GB, free: 1.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4146, allocations: 0 / 1.039 GB, free: 1.316 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.4146, allocations: 7.938 kB / 1.039 GB, free: 1.309 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.4149, allocations: 43.95 kB / 1.039 GB, free: 1.266 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.4149, allocations: 4 kB / 1.039 GB, free: 1.262 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.4151, allocations: 35.91 kB / 1.039 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.4151, allocations: 3.984 kB / 1.039 GB, free: 1.223 MB / 0.6823 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.0001122/0.4153, allocations: 121.8 kB / 1.039 GB, free: 1.094 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.947e-05/0.4153, allocations: 11.91 kB / 1.039 GB, free: 1.082 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007693/0.4161, allocations: 242.2 kB / 1.039 GB, free: 0.8398 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4161, allocations: 0 / 1.039 GB, free: 0.8398 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4161, allocations: 0 / 1.039 GB, free: 0.8398 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4161, allocations: 0 / 1.039 GB, free: 0.8398 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.4164, allocations: 246.1 kB / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4164, allocations: 0 / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/0.4166, allocations: 43.95 kB / 1.04 GB, free: 0.5078 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.4166, allocations: 0 / 1.04 GB, free: 0.5078 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.4167, allocations: 0 / 1.04 GB, free: 0.5078 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4167, allocations: 4 kB / 1.04 GB, free: 0.5039 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4167, allocations: 0 / 1.04 GB, free: 0.5039 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006692/0.4173, allocations: 323.2 kB / 1.04 GB, free: 176 kB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.4174, allocations: 88.95 kB / 1.04 GB, free: 68 kB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.4174, allocations: 7.984 kB / 1.04 GB, free: 60 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.4177, allocations: 43.95 kB / 1.04 GB, free: 16 kB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.4178, allocations: 8.172 kB / 1.04 GB, free: 8 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.4178, allocations: 8.062 kB / 1.04 GB, free: 0 / 0.6823 GB Notification: Performance of sorting global known variables: time 8.119e-05/0.4179, allocations: 101.4 kB / 1.04 GB, free: 15.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4179, allocations: 4 kB / 1.04 GB, free: 15.89 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002461/0.4182, allocations: 23.94 kB / 1.04 GB, free: 15.87 MB / 0.698 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.0001521/0.4183, allocations: 107.2 kB / 1.04 GB, free: 15.76 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006525/0.419, allocations: 207.8 kB / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.419, allocations: 0 / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003027/0.4193, allocations: 96.05 kB / 1.041 GB, free: 15.46 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.4195, allocations: 7.938 kB / 1.041 GB, free: 15.45 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006791/0.4202, allocations: 301.4 kB / 1.041 GB, free: 15.12 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.4205, allocations: 0.7082 MB / 1.042 GB, free: 14.39 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001032/0.4206, allocations: 15.94 kB / 1.042 GB, free: 14.37 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.837e-05/0.4207, allocations: 19.42 kB / 1.042 GB, free: 14.35 MB / 0.698 GB Notification: Performance of SimCode: time 3.31e-07/0.4207, allocations: 0 / 1.042 GB, free: 14.35 MB / 0.698 GB Notification: Performance of Templates: time 0.003332/0.424, allocations: 1.303 MB / 1.043 GB, free: 13.06 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches