Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.347/2.347, allocations: 393.5 MB / 408.4 MB, free: 11 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.001075/0.001075, allocations: 187.9 kB / 0.4902 GB, free: 2.238 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.504/1.504, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.0009745/0.0009746, allocations: 104.1 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003614, allocations: 10.31 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2855, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2502/0.5357, allocations: 150.5 MB / 1.376 GB, free: 3.09 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/0.5361, allocations: 75.95 kB / 1.376 GB, free: 3.016 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004517/0.5406, allocations: 1.118 MB / 1.377 GB, free: 1.895 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.815e-06/0.5407, allocations: 0 / 1.377 GB, free: 1.895 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.5407, allocations: 0 / 1.377 GB, free: 1.895 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.0004704/0.5412, allocations: 343.3 kB / 1.378 GB, free: 1.512 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.5412, allocations: 8.031 kB / 1.378 GB, free: 1.504 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.449e-05/0.5413, allocations: 7.906 kB / 1.378 GB, free: 1.496 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.5415, allocations: 167 kB / 1.378 GB, free: 1.293 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.5415, allocations: 4 kB / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.5415, allocations: 0 / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.5418, allocations: 53.67 kB / 1.378 GB, free: 1.23 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.5418, allocations: 0 / 1.378 GB, free: 1.23 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.5418, allocations: 4 kB / 1.378 GB, free: 1.227 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.5418, allocations: 0 / 1.378 GB, free: 1.227 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.5421, allocations: 55.88 kB / 1.378 GB, free: 1.172 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.5427, allocations: 264.8 kB / 1.378 GB, free: 0.8633 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.5428, allocations: 46.59 kB / 1.378 GB, free: 0.8086 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.543, allocations: 85.16 kB / 1.378 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.543, allocations: 38.56 kB / 1.378 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.813e-06/0.5431, allocations: 0 / 1.378 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0004681/0.5435, allocations: 101.6 kB / 1.378 GB, free: 0.5547 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.5436, allocations: 51.41 kB / 1.378 GB, free: 0.4922 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.798e-05/0.5437, allocations: 96.98 kB / 1.379 GB, free: 400 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.5437, allocations: 29.83 kB / 1.379 GB, free: 364 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.867e-05/0.5438, allocations: 92.05 kB / 1.379 GB, free: 268 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.5438, allocations: 0 / 1.379 GB, free: 268 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.5438, allocations: 0 / 1.379 GB, free: 268 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.544, allocations: 318.8 kB / 1.379 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.5441, allocations: 23.98 kB / 1.379 GB, free: 15.92 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.5443, allocations: 23.98 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.5444, allocations: 23.92 kB / 1.379 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5444, allocations: 0 / 1.379 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002816/0.5447, allocations: 85.56 kB / 1.379 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.5447, allocations: 8 kB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5447, allocations: 3.938 kB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.5448, allocations: 0 / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.5449, allocations: 11.98 kB / 1.379 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.5449, allocations: 0 / 1.379 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.574e-05/0.545, allocations: 12.03 kB / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.545, allocations: 3.984 kB / 1.379 GB, free: 15.74 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 8.841e-05/0.5451, allocations: 114.6 kB / 1.379 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/0.5451, allocations: 4 kB / 1.379 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003212/0.5455, allocations: 88.72 kB / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.5455, allocations: 0 / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5455, allocations: 0 / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.5455, allocations: 0 / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.5457, allocations: 161.6 kB / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.5457, allocations: 0 / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.552e-05/0.5458, allocations: 12 kB / 1.38 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.5459, allocations: 0 / 1.38 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.5459, allocations: 3.984 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.5459, allocations: 4.031 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5459, allocations: 0 / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000332/0.5462, allocations: 181.2 kB / 1.38 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.5463, allocations: 81.11 kB / 1.38 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.5463, allocations: 0 / 1.38 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.5464, allocations: 4 kB / 1.38 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.5465, allocations: 11.92 kB / 1.38 GB, free: 15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.5465, allocations: 0 / 1.38 GB, free: 15 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.924e-05/0.5466, allocations: 87.53 kB / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5466, allocations: 0 / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003459/0.5469, allocations: 8 kB / 1.38 GB, free: 14.9 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.000195/0.5472, allocations: 111.2 kB / 1.38 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002875/0.5475, allocations: 43.97 kB / 1.38 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5475, allocations: 0 / 1.38 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.5476, allocations: 31.98 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.5479, allocations: 11.94 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003285/0.5482, allocations: 108.7 kB / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.5486, allocations: 0.681 MB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.597e-05/0.5486, allocations: 7.984 kB / 1.381 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.266e-05/0.5486, allocations: 11.44 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of SimCode: time 3.91e-07/0.5487, allocations: 0 / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of Templates: time 0.00327/0.5519, allocations: 470.2 kB / 1.381 GB, free: 13.38 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches