Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside") [: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.217/1.217, allocations: 249.4 MB / 256.7 MB, free: 6.98 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.0009705/0.0009706, allocations: 185.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.086/1.086, allocations: 205.2 MB / 0.5667 GB, free: 15.68 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.0008402/0.0008402, allocations: 93.59 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.242e-06/6.251e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1401, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4186/0.5587, allocations: 132.4 MB / 1.014 GB, free: 6.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.559, allocations: 74.39 kB / 1.014 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002687/0.5617, allocations: 0.7666 MB / 1.015 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.5617, allocations: 0 / 1.015 GB, free: 5.582 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002936/0.562, allocations: 342.3 kB / 1.015 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 2.949e-05/0.562, allocations: 8.031 kB / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.483e-05/0.562, allocations: 0 / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.5622, allocations: 170.5 kB / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.5622, allocations: 0 / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-06/0.5622, allocations: 0 / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.739e-05/0.5622, allocations: 19.42 kB / 1.015 GB, free: 4.977 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.818e-05/0.5623, allocations: 37.69 kB / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.5623, allocations: 0 / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.5623, allocations: 0 / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.5624, allocations: 0 / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.5627, allocations: 256.9 kB / 1.015 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.295e-05/0.5627, allocations: 21.33 kB / 1.015 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.334e-05/0.5628, allocations: 12.86 kB / 1.016 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.5629, allocations: 81.11 kB / 1.016 GB, free: 4.52 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.5629, allocations: 38.48 kB / 1.016 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.5629, allocations: 0 / 1.016 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002121/0.5631, allocations: 60.16 kB / 1.016 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.074e-05/0.5632, allocations: 51.41 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.377e-05/0.5632, allocations: 94.8 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.5633, allocations: 28.7 kB / 1.016 GB, free: 4.223 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.522e-05/0.5633, allocations: 80.14 kB / 1.016 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.261e-05/0.5633, allocations: 3.906 kB / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.5633, allocations: 4 kB / 1.016 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.5634, allocations: 313.8 kB / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.5e-05/0.5634, allocations: 8.031 kB / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.106e-05/0.5634, allocations: 3.062 kB / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.446e-05/0.5635, allocations: 19.47 kB / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.5635, allocations: 0 / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001308/0.5637, allocations: 57.3 kB / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/0.5637, allocations: 7.906 kB / 1.016 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.5637, allocations: 0 / 1.016 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.5637, allocations: 0 / 1.016 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-05/0.5638, allocations: 16.09 kB / 1.016 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.5638, allocations: 0 / 1.016 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.367e-05/0.5639, allocations: 15.86 kB / 1.016 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.5639, allocations: 4 kB / 1.016 GB, free: 3.695 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 (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 5.046e-05/0.564, allocations: 108.9 kB / 1.016 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.477e-05/0.564, allocations: 3.906 kB / 1.016 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001577/0.5641, allocations: 67.17 kB / 1.017 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.5642, allocations: 0 / 1.017 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.5642, allocations: 3.938 kB / 1.017 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.5642, allocations: 0 / 1.017 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.5643, allocations: 134.1 kB / 1.017 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5643, allocations: 0.6875 kB / 1.017 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.796e-05/0.5644, allocations: 19.92 kB / 1.017 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.5644, allocations: 4 kB / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.5644, allocations: 0 / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.5644, allocations: 256 / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.5644, allocations: 0 / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001561/0.5646, allocations: 154.5 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.832e-05/0.5646, allocations: 77.11 kB / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.5646, allocations: 4.031 kB / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.5647, allocations: 11.98 kB / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.603e-05/0.5647, allocations: 0 / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.5647, allocations: 0 / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.555e-05/0.5648, allocations: 87.08 kB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001971/0.565, allocations: 12 kB / 1.017 GB, free: 2.961 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 (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.0001046/0.5651, allocations: 103.2 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.007e-05/0.5652, allocations: 15.19 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 8.91e-07/0.5652, allocations: 0 / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.804e-05/0.5652, allocations: 7.5 kB / 1.017 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.5653, allocations: 11.17 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000168/0.5655, allocations: 61.59 kB / 1.017 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.5657, allocations: 0.692 MB / 1.018 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of SimCode: time 2.61e-07/0.5658, allocations: 4 kB / 1.018 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of Templates: time 0.001974/0.5677, allocations: 0.5208 MB / 1.018 GB, free: 1.523 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches