Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.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.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.205/1.205, allocations: 249.4 MB / 256.7 MB, free: 7.055 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.001024/0.001024, allocations: 189.2 kB / 316 MB, free: 3.559 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.063/1.063, allocations: 205.2 MB / 0.5667 GB, free: 15.69 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.0008969/0.0008969, allocations: 98.03 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.723e-06/6.743e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1517, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4337/0.5854, allocations: 132.1 MB / 1.014 GB, free: 6.598 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.5856, allocations: 69.64 kB / 1.014 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003019/0.5886, allocations: 0.8451 MB / 1.014 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.5887, allocations: 0 / 1.014 GB, free: 5.836 MB / 0.6355 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.0003262/0.589, allocations: 354.3 kB / 1.015 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.589, allocations: 8.031 kB / 1.015 GB, free: 5.441 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007944/0.5898, allocations: 179 kB / 1.015 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.59, allocations: 163.1 kB / 1.015 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.59, allocations: 4 kB / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.59, allocations: 3.906 kB / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001928/0.5902, allocations: 123.9 kB / 1.015 GB, free: 4.973 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001514/0.5904, allocations: 108.2 kB / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.5904, allocations: 0 / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.5904, allocations: 0 / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.5904, allocations: 4 kB / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008429/0.5912, allocations: 457.7 kB / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.5916, allocations: 172.7 kB / 1.016 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.101e-05/0.5917, allocations: 50.98 kB / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.5917, allocations: 3.938 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.5918, allocations: 34.31 kB / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.5918, allocations: 0 / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002339/0.592, allocations: 110.7 kB / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.353e-05/0.592, allocations: 51.41 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.767e-05/0.5921, allocations: 100.2 kB / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.5921, allocations: 29.7 kB / 1.016 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.292e-05/0.5922, allocations: 92.03 kB / 1.016 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.5922, allocations: 7.219 kB / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.625e-06/0.5922, allocations: 0 / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.5923, allocations: 314.8 kB / 1.017 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.434e-05/0.5924, allocations: 45.91 kB / 1.017 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.271e-05/0.5924, allocations: 42.41 kB / 1.017 GB, free: 3.426 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.904e-05/0.5925, allocations: 37.75 kB / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.5925, allocations: 0 / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001566/0.5927, allocations: 110.1 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.5927, allocations: 8 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.5927, allocations: 0 / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.5927, allocations: 0 / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.593, allocations: 47.77 kB / 1.017 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.593, allocations: 3.984 kB / 1.017 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.5932, allocations: 45.44 kB / 1.017 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.5932, allocations: 4 kB / 1.017 GB, free: 3.203 MB / 0.6355 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 6.374e-05/0.5933, allocations: 108.9 kB / 1.017 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.5933, allocations: 3.906 kB / 1.017 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.5934, allocations: 15.31 kB / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.5934, allocations: 0 / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5934, allocations: 4 kB / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.5934, allocations: 0 / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.5936, allocations: 185.7 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.5936, allocations: 0 / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002344/0.5938, allocations: 43.95 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.5938, allocations: 0 / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.5938, allocations: 3.906 kB / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.5938, allocations: 0 / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5938, allocations: 5.25 kB / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002009/0.5941, allocations: 210.6 kB / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.939e-05/0.5941, allocations: 77.11 kB / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.5941, allocations: 4 kB / 1.018 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.5944, allocations: 43.83 kB / 1.018 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.083e-05/0.5944, allocations: 0 / 1.018 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.5944, allocations: 3.938 kB / 1.018 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.435e-05/0.5945, allocations: 94.52 kB / 1.018 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002083/0.5947, allocations: 15.91 kB / 1.018 GB, free: 2.367 MB / 0.6355 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 0.0001016/0.5948, allocations: 99.25 kB / 1.018 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001797/0.595, allocations: 91.73 kB / 1.018 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.595, allocations: 0 / 1.018 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.341e-05/0.5951, allocations: 53.48 kB / 1.018 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.5952, allocations: 0 / 1.018 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000613/0.5958, allocations: 195.4 kB / 1.018 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002871/0.5961, allocations: 0.711 MB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/0.5961, allocations: 0 / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of Templates: time 0.002565/0.5987, allocations: 1.174 MB / 1.02 GB, free: 72 kB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothMin.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches