Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.346/2.346, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001138/0.001138, allocations: 184 kB / 0.4902 GB, free: 2.305 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.613/1.613, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.00091/0.00091, allocations: 102.4 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004963/0.0004962, allocations: 13.75 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3325, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.206/0.5386, allocations: 149.9 MB / 1.376 GB, free: 3.676 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.5388, allocations: 79.94 kB / 1.376 GB, free: 3.598 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002461/0.5413, allocations: 0.8838 MB / 1.377 GB, free: 2.711 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5414, allocations: 3.938 kB / 1.377 GB, free: 2.707 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.5414, allocations: 0 / 1.377 GB, free: 2.707 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.0002774/0.5417, allocations: 315.4 kB / 1.377 GB, free: 2.352 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.5417, allocations: 8.562 kB / 1.377 GB, free: 2.344 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.5418, allocations: 0 / 1.377 GB, free: 2.344 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.5419, allocations: 167 kB / 1.377 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.5419, allocations: 8 kB / 1.377 GB, free: 2.133 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.5419, allocations: 0 / 1.377 GB, free: 2.133 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.542, allocations: 37.69 kB / 1.377 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.5421, allocations: 0 / 1.377 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.5421, allocations: 0 / 1.377 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.5421, allocations: 4 kB / 1.377 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.81e-05/0.5421, allocations: 7.984 kB / 1.377 GB, free: 2.078 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.5423, allocations: 157.6 kB / 1.377 GB, free: 1.875 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.5425, allocations: 38.61 kB / 1.377 GB, free: 1.828 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000154/0.5427, allocations: 81.11 kB / 1.377 GB, free: 1.73 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.5427, allocations: 34.64 kB / 1.377 GB, free: 1.688 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.5427, allocations: 0 / 1.377 GB, free: 1.688 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.004219/0.5469, allocations: 0.5641 MB / 1.378 GB, free: 1.117 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.547, allocations: 51.41 kB / 1.378 GB, free: 1.055 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.237e-05/0.5471, allocations: 88.94 kB / 1.378 GB, free: 0.9609 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.5471, allocations: 29.7 kB / 1.378 GB, free: 0.9258 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.141e-05/0.5472, allocations: 84.12 kB / 1.378 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.546e-05/0.5472, allocations: 15.81 kB / 1.378 GB, free: 0.8242 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.071e-05/0.5473, allocations: 0 / 1.378 GB, free: 0.8242 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5474, allocations: 314.8 kB / 1.379 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.548, allocations: 91.89 kB / 1.379 GB, free: 428 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00058/0.5486, allocations: 102.5 kB / 1.379 GB, free: 316 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.5492, allocations: 83.95 kB / 1.379 GB, free: 232 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.5492, allocations: 0 / 1.379 GB, free: 232 kB / 0.8698 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00125/0.5505, allocations: 217.6 kB / 1.379 GB, free: 8 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.5505, allocations: 4 kB / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.5505, allocations: 0 / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.5506, allocations: 4 kB / 1.379 GB, free: 0 / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004249/0.551, allocations: 48 kB / 1.379 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.551, allocations: 4 kB / 1.379 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.5514, allocations: 39.97 kB / 1.379 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.5514, allocations: 7.984 kB / 1.379 GB, free: 15.9 MB / 0.8855 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 0.0001351/0.5515, allocations: 122.5 kB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.5516, allocations: 4 kB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.5529, allocations: 233.1 kB / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.5529, allocations: 0 / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.553, allocations: 3.984 kB / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.553, allocations: 0 / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.5546, allocations: 458.3 kB / 1.38 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5546, allocations: 4 kB / 1.38 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003631/0.5549, allocations: 47.97 kB / 1.38 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.555, allocations: 4 kB / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.555, allocations: 0 / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.555, allocations: 320 / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.555, allocations: 0 / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.5562, allocations: 315.3 kB / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/0.5563, allocations: 77.11 kB / 1.38 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.5563, allocations: 0 / 1.38 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003451/0.5566, allocations: 43.97 kB / 1.38 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.86e-05/0.5567, allocations: 0 / 1.38 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.5567, allocations: 8 kB / 1.38 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.769e-05/0.5567, allocations: 76.88 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5567, allocations: 0 / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000247/0.557, allocations: 16 kB / 1.38 GB, free: 14.41 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 (5): * Single equations (assignments): 5 * 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.0002241/0.5572, allocations: 108 kB / 1.381 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001145/0.5584, allocations: 179.8 kB / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.5584, allocations: 4.125 kB / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005124/0.5589, allocations: 87.95 kB / 1.381 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.5591, allocations: 11.89 kB / 1.381 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.5601, allocations: 218.9 kB / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.5604, allocations: 0.6731 MB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002299/0.5606, allocations: 39.97 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.079e-05/0.5607, allocations: 11.44 kB / 1.382 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of SimCode: time 2.9e-07/0.5607, allocations: 0 / 1.382 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of Templates: time 0.003207/0.5639, allocations: 0.7847 MB / 1.382 GB, free: 12.25 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches