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.599/1.599, allocations: 249.3 MB / 261.8 MB, free: 5.816 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001433/0.001433, allocations: 174.5 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.2 MB / 0.572 GB, free: 10.6 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.0009693/0.0009693, allocations: 94.52 kB / 0.6764 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.599e-05/3.601e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2385, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8437/1.082, allocations: 133.5 MB / 1.022 GB, free: 1.254 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/1.083, allocations: 81.52 kB / 1.022 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01522/1.098, allocations: 5.042 MB / 1.027 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.242e-06/1.098, allocations: 0 / 1.027 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 9.738e-06/1.098, allocations: 4 kB / 1.027 GB, free: 12.91 MB / 0.6511 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.0007097/1.099, allocations: 408.4 kB / 1.028 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.999e-05/1.099, allocations: 8.031 kB / 1.028 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/1.1, allocations: 119 kB / 1.028 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/1.1, allocations: 178.9 kB / 1.028 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/1.101, allocations: 67.33 kB / 1.028 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/1.101, allocations: 7.25 kB / 1.028 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/1.101, allocations: 124.7 kB / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/1.101, allocations: 0 / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/1.101, allocations: 4 kB / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/1.101, allocations: 4 kB / 1.028 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/1.101, allocations: 81.31 kB / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/1.103, allocations: 0.4941 MB / 1.029 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/1.104, allocations: 165.7 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/1.105, allocations: 48.59 kB / 1.029 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/1.105, allocations: 0 / 1.029 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/1.105, allocations: 37.94 kB / 1.029 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=6): time 2.244e-06/1.105, allocations: 0 / 1.029 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6): time 0.0004482/1.105, allocations: 104.4 kB / 1.029 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/1.105, allocations: 54.84 kB / 1.029 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/1.105, allocations: 131.5 kB / 1.029 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/1.106, allocations: 29.27 kB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.346e-05/1.106, allocations: 110.7 kB / 1.029 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/1.106, allocations: 22.98 kB / 1.029 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.397e-05/1.106, allocations: 3.188 kB / 1.029 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001467/1.106, allocations: 314.7 kB / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/1.106, allocations: 38.05 kB / 1.03 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/1.106, allocations: 60.56 kB / 1.03 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/1.106, allocations: 38.73 kB / 1.03 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.106, allocations: 0 / 1.03 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003744/1.107, allocations: 120.5 kB / 1.03 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/1.107, allocations: 4 kB / 1.03 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/1.107, allocations: 0 / 1.03 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/1.107, allocations: 4 kB / 1.03 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/1.107, allocations: 51.5 kB / 1.03 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/1.107, allocations: 4 kB / 1.03 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003516/1.108, allocations: 31.88 kB / 1.03 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/1.108, allocations: 7.953 kB / 1.03 GB, free: 10.15 MB / 0.6511 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 () * 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.0001309/1.108, allocations: 112.5 kB / 1.03 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.042e-05/1.108, allocations: 7.906 kB / 1.03 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004535/1.108, allocations: 125.2 kB / 1.03 GB, free: 9.934 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/1.108, allocations: 0 / 1.03 GB, free: 9.934 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/1.109, allocations: 4 kB / 1.03 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/1.109, allocations: 0 / 1.03 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004191/1.109, allocations: 246.4 kB / 1.03 GB, free: 9.664 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.109, allocations: 0 / 1.03 GB, free: 9.664 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003952/1.109, allocations: 43.58 kB / 1.03 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/1.109, allocations: 0 / 1.03 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/1.109, allocations: 0 / 1.03 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/1.109, allocations: 3.938 kB / 1.03 GB, free: 9.621 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.109, allocations: 3.938 kB / 1.03 GB, free: 9.617 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003888/1.11, allocations: 206.6 kB / 1.031 GB, free: 9.426 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.602e-05/1.11, allocations: 89 kB / 1.031 GB, free: 9.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/1.11, allocations: 0 / 1.031 GB, free: 9.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005921/1.111, allocations: 48.08 kB / 1.031 GB, free: 9.277 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/1.111, allocations: 8 kB / 1.031 GB, free: 9.27 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/1.111, allocations: 7.984 kB / 1.031 GB, free: 9.262 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001145/1.111, allocations: 101.8 kB / 1.031 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.81e-07/1.111, allocations: 0 / 1.031 GB, free: 9.168 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004607/1.111, allocations: 31.67 kB / 1.031 GB, free: 9.141 MB / 0.6511 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 () * 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.0001831/1.112, allocations: 95.25 kB / 1.031 GB, free: 9.035 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003429/1.112, allocations: 90.55 kB / 1.031 GB, free: 8.977 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.112, allocations: 0 / 1.031 GB, free: 8.977 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001516/1.112, allocations: 44.42 kB / 1.031 GB, free: 8.945 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/1.112, allocations: 13.28 kB / 1.031 GB, free: 8.938 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005328/1.113, allocations: 137.3 kB / 1.031 GB, free: 8.793 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/1.113, allocations: 0.7084 MB / 1.032 GB, free: 8.059 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002202/1.114, allocations: 19.92 kB / 1.032 GB, free: 8.035 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.152e-05/1.114, allocations: 19.23 kB / 1.032 GB, free: 8.02 MB / 0.6511 GB Notification: Performance of SimCode: time 5.81e-07/1.114, allocations: 4 kB / 1.032 GB, free: 8.016 MB / 0.6511 GB Notification: Performance of Templates: time 0.005329/1.119, allocations: 1.307 MB / 1.033 GB, free: 6.723 MB / 0.6511 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