Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.484/2.484, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 187.2 kB / 498.1 MB, free: 5.695 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.769/1.769, allocations: 223.2 MB / 0.7948 GB, free: 18.82 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 115.2 kB / 0.9346 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004092/0.0004093, allocations: 10.59 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3457, allocations: 142.3 MB / 1.223 GB, free: 89.57 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2136/0.5593, allocations: 150 MB / 1.369 GB, free: 3.391 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.5596, allocations: 75.95 kB / 1.369 GB, free: 3.316 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004214/0.5639, allocations: 1.435 MB / 1.371 GB, free: 1.879 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5639, allocations: 4 kB / 1.371 GB, free: 1.875 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.629e-06/0.5639, allocations: 4 kB / 1.371 GB, free: 1.871 MB / 0.8698 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.0004208/0.5643, allocations: 351.2 kB / 1.371 GB, free: 1.48 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.5644, allocations: 8.031 kB / 1.371 GB, free: 1.473 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.219e-05/0.5644, allocations: 7.906 kB / 1.371 GB, free: 1.465 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.5646, allocations: 171 kB / 1.371 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.5646, allocations: 0 / 1.371 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.5646, allocations: 4 kB / 1.371 GB, free: 1.254 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/0.5648, allocations: 45.62 kB / 1.371 GB, free: 1.203 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.5648, allocations: 4 kB / 1.371 GB, free: 1.199 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.5648, allocations: 4 kB / 1.371 GB, free: 1.195 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.5648, allocations: 0 / 1.371 GB, free: 1.195 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.185e-05/0.5649, allocations: 19.98 kB / 1.371 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003834/0.5653, allocations: 252.9 kB / 1.372 GB, free: 0.8789 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.95e-05/0.5654, allocations: 38.52 kB / 1.372 GB, free: 0.832 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006947/0.5661, allocations: 473.5 kB / 1.372 GB, free: 284 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.5662, allocations: 34.56 kB / 1.372 GB, free: 240 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 2.325e-06/0.5662, allocations: 3.984 kB / 1.372 GB, free: 236 kB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0002871/0.5665, allocations: 61.67 kB / 1.372 GB, free: 168 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.5665, allocations: 59.53 kB / 1.372 GB, free: 96 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.5666, allocations: 104.9 kB / 1.372 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.5667, allocations: 25.7 kB / 1.372 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.615e-05/0.5667, allocations: 88.08 kB / 1.372 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.5668, allocations: 11.78 kB / 1.373 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.5668, allocations: 0 / 1.373 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.5669, allocations: 318.8 kB / 1.373 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.643e-05/0.567, allocations: 15.98 kB / 1.373 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.387e-05/0.567, allocations: 12 kB / 1.373 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.552e-05/0.5671, allocations: 11.98 kB / 1.373 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5671, allocations: 3.938 kB / 1.373 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001289/0.5672, allocations: 57.69 kB / 1.373 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.5672, allocations: 8.094 kB / 1.373 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.5673, allocations: 3.938 kB / 1.373 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.5673, allocations: 0 / 1.373 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.028e-05/0.5674, allocations: 11.98 kB / 1.373 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.5674, allocations: 0 / 1.373 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/0.5674, allocations: 0 / 1.373 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-06/0.5674, allocations: 7.953 kB / 1.373 GB, free: 15.39 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.054e-05/0.5675, allocations: 109.8 kB / 1.373 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.5676, allocations: 4 kB / 1.373 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.5678, allocations: 73.2 kB / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.5678, allocations: 0 / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.5678, allocations: 0 / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5678, allocations: 0 / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.568, allocations: 169.5 kB / 1.373 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.568, allocations: 0 / 1.373 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-05/0.568, allocations: 4 kB / 1.373 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.568, allocations: 4.031 kB / 1.373 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.568, allocations: 3.984 kB / 1.373 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.568, allocations: 0 / 1.373 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.5681, allocations: 0 / 1.373 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/0.5682, allocations: 159.4 kB / 1.373 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.5683, allocations: 77.11 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.5683, allocations: 4.031 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.876e-05/0.5684, allocations: 7.984 kB / 1.374 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.915e-05/0.5684, allocations: 0 / 1.374 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.5684, allocations: 4 kB / 1.374 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.192e-05/0.5685, allocations: 91.56 kB / 1.374 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5685, allocations: 0 / 1.374 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002273/0.5687, allocations: 19.94 kB / 1.374 GB, free: 14.57 MB / 0.8855 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 (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.0002404/0.569, allocations: 131 kB / 1.374 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001343/0.5691, allocations: 27.92 kB / 1.374 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5691, allocations: 3.938 kB / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.777e-05/0.5692, allocations: 12 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.5693, allocations: 3.953 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003543/0.5697, allocations: 144.7 kB / 1.374 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.5701, allocations: 0.6809 MB / 1.375 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.731e-05/0.5702, allocations: 0 / 1.375 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.827e-05/0.5702, allocations: 7.438 kB / 1.375 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of SimCode: time 6.01e-07/0.5702, allocations: 0 / 1.375 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of Templates: time 0.003653/0.5739, allocations: 0.5959 MB / 1.375 GB, free: 12.91 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches