Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.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.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin") translateModel(Buildings.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.995/1.995, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001084/0.001084, allocations: 185.2 kB / 487 MB, free: 5.348 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.342/1.342, allocations: 221.3 MB / 0.7819 GB, free: 1.367 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 98.5 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.812e-06/6.832e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2069, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5888/0.7958, allocations: 148.6 MB / 1.35 GB, free: 16.05 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.796, allocations: 69.55 kB / 1.35 GB, free: 16.05 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.00309/0.7991, allocations: 0.8601 MB / 1.351 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.7991, allocations: 5.094 kB / 1.351 GB, free: 15.99 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002674/0.7994, allocations: 347.5 kB / 1.352 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.7994, allocations: 9.812 kB / 1.352 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008492/0.8003, allocations: 179.2 kB / 1.352 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.872e-05/0.8004, allocations: 165.3 kB / 1.352 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.8004, allocations: 1.25 kB / 1.352 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.8004, allocations: 3.156 kB / 1.352 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002145/0.8006, allocations: 121.8 kB / 1.352 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.8008, allocations: 113.3 kB / 1.352 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.8008, allocations: 0 / 1.352 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.8008, allocations: 0 / 1.352 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.8009, allocations: 5.844 kB / 1.352 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008536/0.8017, allocations: 443.6 kB / 1.353 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.8021, allocations: 164.2 kB / 1.353 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.513e-05/0.8022, allocations: 55.7 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.8022, allocations: 4.906 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.285e-05/0.8022, allocations: 33.14 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.8023, allocations: 0 / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0002418/0.8025, allocations: 114.6 kB / 1.353 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.545e-05/0.8025, allocations: 56.53 kB / 1.353 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.83e-05/0.8026, allocations: 97.8 kB / 1.353 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.8026, allocations: 25.7 kB / 1.353 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.952e-05/0.8026, allocations: 85.3 kB / 1.353 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.8026, allocations: 13.78 kB / 1.353 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/0.8027, allocations: 0 / 1.353 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.787e-05/0.8027, allocations: 314.9 kB / 1.354 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.718e-05/0.8028, allocations: 42.73 kB / 1.354 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.678e-05/0.8028, allocations: 50.2 kB / 1.354 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.513e-05/0.8029, allocations: 34.67 kB / 1.354 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.8029, allocations: 0 / 1.354 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001782/0.8031, allocations: 113.8 kB / 1.354 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.8031, allocations: 5.812 kB / 1.354 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.8031, allocations: 2.375 kB / 1.354 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.8031, allocations: 1.828 kB / 1.354 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.8034, allocations: 45.47 kB / 1.354 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.8034, allocations: 0 / 1.354 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.8037, allocations: 44.83 kB / 1.354 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.8037, allocations: 2.672 kB / 1.354 GB, free: 14.37 MB / 0.8073 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 4.865e-05/0.8037, allocations: 113.5 kB / 1.354 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.8038, allocations: 7 kB / 1.354 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.826e-05/0.8038, allocations: 7.594 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.8038, allocations: 4.734 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.8039, allocations: 0.75 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.8039, allocations: 1.547 kB / 1.354 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.804, allocations: 185.8 kB / 1.354 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.804, allocations: 3.938 kB / 1.354 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.8043, allocations: 50.84 kB / 1.354 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.8043, allocations: 4.844 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.8043, allocations: 0.5938 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.8043, allocations: 2.234 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.8043, allocations: 0 / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002095/0.8046, allocations: 209.7 kB / 1.354 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.8046, allocations: 82.3 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.8046, allocations: 2.172 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002568/0.8049, allocations: 39.59 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.8049, allocations: 2 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.8049, allocations: 7.391 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.436e-05/0.805, allocations: 88.31 kB / 1.355 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000228/0.8052, allocations: 12.38 kB / 1.355 GB, free: 13.76 MB / 0.8073 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 (3): * Single equations (assignments): 3 * 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 8.671e-05/0.8053, allocations: 96.61 kB / 1.355 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001867/0.8055, allocations: 98.77 kB / 1.355 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.8055, allocations: 0 / 1.355 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.747e-05/0.8056, allocations: 50.89 kB / 1.355 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.8057, allocations: 10.23 kB / 1.355 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006679/0.8064, allocations: 191.3 kB / 1.355 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.8066, allocations: 0.7052 MB / 1.356 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of SimCode: time 2.4e-07/0.8066, allocations: 0 / 1.356 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of Templates: time 0.003003/0.8096, allocations: 1.167 MB / 1.357 GB, free: 12.81 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches