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") [: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.15/1.15, allocations: 249.4 MB / 256.7 MB, free: 15.81 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.0009132/0.0009132, allocations: 182.5 kB / 316 MB, free: 7.176 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.209/1.209, allocations: 205.1 MB / 0.5667 GB, free: 23.57 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.0008038/0.0008038, allocations: 84.84 kB / 0.671 GB, free: 0.8242 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 7.073e-06/7.093e-06, allocations: 0 / 0.7807 GB, free: 344 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3817, allocations: 106.3 MB / 0.8846 GB, free: 76.23 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1361/0.5179, allocations: 132.7 MB / 1.014 GB, free: 7.309 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.5182, allocations: 71.95 kB / 1.014 GB, free: 7.238 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.01406/0.5322, allocations: 4.676 MB / 1.019 GB, free: 2.551 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.5323, allocations: 0 / 1.019 GB, free: 2.551 MB / 0.6667 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.0004514/0.5328, allocations: 406.2 kB / 1.019 GB, free: 2.109 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.5328, allocations: 12.02 kB / 1.019 GB, free: 2.098 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006893/0.5335, allocations: 131.7 kB / 1.019 GB, free: 1.969 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.5336, allocations: 182.8 kB / 1.02 GB, free: 1.75 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.152e-05/0.5337, allocations: 67.41 kB / 1.02 GB, free: 1.672 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.5338, allocations: 4 kB / 1.02 GB, free: 1.668 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001671/0.5339, allocations: 79.98 kB / 1.02 GB, free: 1.59 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.5341, allocations: 101.5 kB / 1.02 GB, free: 1.484 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.5341, allocations: 7.938 kB / 1.02 GB, free: 1.477 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.199e-05/0.5342, allocations: 3.984 kB / 1.02 GB, free: 1.473 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.5342, allocations: 0 / 1.02 GB, free: 1.473 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009893/0.5352, allocations: 490.4 kB / 1.02 GB, free: 0.9531 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.5353, allocations: 90.55 kB / 1.02 GB, free: 0.8555 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.541e-05/0.5354, allocations: 32.98 kB / 1.02 GB, free: 0.8203 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.5354, allocations: 8 kB / 1.02 GB, free: 0.8125 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.5355, allocations: 34.56 kB / 1.02 GB, free: 0.7695 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=6): time 2.344e-06/0.5355, allocations: 3.984 kB / 1.02 GB, free: 0.7656 MB / 0.6667 GB Notification: Performance of matching and sorting (n=6): time 0.0002482/0.5357, allocations: 101.6 kB / 1.02 GB, free: 0.6602 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.5357, allocations: 51.41 kB / 1.021 GB, free: 0.5977 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.534e-05/0.5358, allocations: 123 kB / 1.021 GB, free: 484 kB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.5359, allocations: 25.7 kB / 1.021 GB, free: 452 kB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 4.412e-05/0.5359, allocations: 112 kB / 1.021 GB, free: 332 kB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.5359, allocations: 23.73 kB / 1.021 GB, free: 308 kB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-06/0.536, allocations: 0 / 1.021 GB, free: 308 kB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5361, allocations: 318.8 kB / 1.021 GB, free: 15.98 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.215e-05/0.5362, allocations: 35.98 kB / 1.021 GB, free: 15.95 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.115e-05/0.5362, allocations: 50.58 kB / 1.021 GB, free: 15.89 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.484e-05/0.5363, allocations: 27.98 kB / 1.021 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.5363, allocations: 4 kB / 1.021 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000181/0.5365, allocations: 113.5 kB / 1.021 GB, free: 15.74 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.5365, allocations: 4 kB / 1.021 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.5365, allocations: 3.938 kB / 1.021 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.5366, allocations: 4 kB / 1.021 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.5369, allocations: 56 kB / 1.021 GB, free: 15.67 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.5369, allocations: 0 / 1.021 GB, free: 15.67 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.5371, allocations: 39.88 kB / 1.021 GB, free: 15.63 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.5371, allocations: 4 kB / 1.021 GB, free: 15.63 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 () * 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 6.881e-05/0.5372, allocations: 107 kB / 1.022 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.5372, allocations: 7.906 kB / 1.022 GB, free: 15.51 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002493/0.5375, allocations: 122.1 kB / 1.022 GB, free: 15.39 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.5375, allocations: 7.906 kB / 1.022 GB, free: 15.38 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5375, allocations: 0 / 1.022 GB, free: 15.38 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.5375, allocations: 0 / 1.022 GB, free: 15.38 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.5377, allocations: 206.9 kB / 1.022 GB, free: 15.14 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.5377, allocations: 0 / 1.022 GB, free: 15.14 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.538, allocations: 44.14 kB / 1.022 GB, free: 15.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.538, allocations: 8 kB / 1.022 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.538, allocations: 11.89 kB / 1.022 GB, free: 15.08 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.538, allocations: 0 / 1.022 GB, free: 15.08 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.538, allocations: 3.938 kB / 1.022 GB, free: 15.07 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002006/0.5382, allocations: 199.4 kB / 1.022 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.421e-05/0.5383, allocations: 84.95 kB / 1.022 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.5383, allocations: 0 / 1.022 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000333/0.5386, allocations: 55.86 kB / 1.022 GB, free: 14.71 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.5387, allocations: 7.984 kB / 1.022 GB, free: 14.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.5387, allocations: 15.92 kB / 1.022 GB, free: 14.68 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.776e-05/0.5388, allocations: 94.03 kB / 1.022 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002371/0.539, allocations: 20 kB / 1.022 GB, free: 14.57 MB / 0.6823 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.0001342/0.5392, allocations: 103.2 kB / 1.022 GB, free: 14.46 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002084/0.5394, allocations: 79.92 kB / 1.023 GB, free: 14.39 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5394, allocations: 4.125 kB / 1.023 GB, free: 14.38 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 6.784e-05/0.5394, allocations: 36 kB / 1.023 GB, free: 14.35 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.5396, allocations: 11.91 kB / 1.023 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003521/0.54, allocations: 143.5 kB / 1.023 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.5403, allocations: 0.727 MB / 1.023 GB, free: 13.42 MB / 0.6823 GB Notification: Performance of SimCode: time 2.2e-07/0.5403, allocations: 0 / 1.023 GB, free: 13.42 MB / 0.6823 GB Notification: Performance of Templates: time 0.003465/0.5438, allocations: 1.699 MB / 1.025 GB, free: 11.73 MB / 0.6823 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