Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.311/1.311, allocations: 251.9 MB / 266.9 MB, free: 11.07 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.001124/0.001124, allocations: 186.8 kB / 326.5 MB, free: 2.277 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.667/1.667, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0008351/0.0008353, allocations: 97.98 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.0002841, allocations: 8.688 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1659, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1521/0.3181, allocations: 131.6 MB / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.3183, allocations: 83.92 kB / 1.029 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002163/0.3205, allocations: 0.8553 MB / 1.03 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3205, allocations: 0 / 1.03 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.3205, allocations: 0 / 1.03 GB, free: 11.25 MB / 0.6823 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.0002407/0.3208, allocations: 319.4 kB / 1.03 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.3208, allocations: 8.031 kB / 1.03 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.3208, allocations: 7.906 kB / 1.03 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.502e-05/0.3209, allocations: 163 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.3209, allocations: 0 / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.321, allocations: 0 / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.178e-05/0.321, allocations: 37.69 kB / 1.03 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.3211, allocations: 0 / 1.03 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-06/0.3211, allocations: 4 kB / 1.03 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.3211, allocations: 4 kB / 1.03 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.35e-05/0.3211, allocations: 11.92 kB / 1.03 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001363/0.3213, allocations: 153.6 kB / 1.03 GB, free: 10.41 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.3214, allocations: 34.61 kB / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001235/0.3215, allocations: 89.03 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.3216, allocations: 34.64 kB / 1.03 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3216, allocations: 4 kB / 1.03 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5): time 0.004174/0.3258, allocations: 0.5599 MB / 1.031 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.3258, allocations: 51.41 kB / 1.031 GB, free: 9.59 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.102e-05/0.3258, allocations: 88.94 kB / 1.031 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.3259, allocations: 25.7 kB / 1.031 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.373e-05/0.3259, allocations: 84.14 kB / 1.031 GB, free: 9.379 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.435e-05/0.326, allocations: 23.64 kB / 1.031 GB, free: 9.355 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.326, allocations: 0 / 1.031 GB, free: 9.355 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.533e-05/0.3261, allocations: 314.8 kB / 1.031 GB, free: 9.039 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005837/0.3267, allocations: 83.95 kB / 1.032 GB, free: 8.957 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000589/0.3273, allocations: 98.53 kB / 1.032 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005867/0.3279, allocations: 87.95 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3279, allocations: 3.953 kB / 1.032 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001254/0.3291, allocations: 213.6 kB / 1.032 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.3292, allocations: 9.875 kB / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3292, allocations: 256 / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3292, allocations: 4.422 kB / 1.032 GB, free: 8.535 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004/0.3296, allocations: 51.97 kB / 1.032 GB, free: 8.484 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.3296, allocations: 4 kB / 1.032 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.33, allocations: 43.91 kB / 1.032 GB, free: 8.438 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.33, allocations: 4 kB / 1.032 GB, free: 8.434 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 () * 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.0001245/0.3301, allocations: 115.2 kB / 1.032 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.3302, allocations: 3.953 kB / 1.032 GB, free: 8.309 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.3315, allocations: 237.1 kB / 1.032 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3316, allocations: 4 kB / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3316, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3316, allocations: 7.984 kB / 1.032 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.3331, allocations: 458.3 kB / 1.033 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.3331, allocations: 0 / 1.033 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003742/0.3335, allocations: 47.97 kB / 1.033 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3335, allocations: 0 / 1.033 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3335, allocations: 4 kB / 1.033 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3335, allocations: 0 / 1.033 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3335, allocations: 0 / 1.033 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.3347, allocations: 315.9 kB / 1.033 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.3348, allocations: 81.11 kB / 1.033 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.3348, allocations: 0 / 1.033 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.3352, allocations: 35.98 kB / 1.033 GB, free: 7.047 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.3352, allocations: 7.984 kB / 1.033 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.3352, allocations: 192 / 1.033 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.598e-05/0.3353, allocations: 79.22 kB / 1.033 GB, free: 6.961 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.483e-06/0.3353, allocations: 0 / 1.033 GB, free: 6.961 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002683/0.3355, allocations: 19.94 kB / 1.033 GB, free: 6.941 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 () * 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.000173/0.3357, allocations: 107.2 kB / 1.034 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001244/0.337, allocations: 183.9 kB / 1.034 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.337, allocations: 0 / 1.034 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.3376, allocations: 88.08 kB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.3377, allocations: 11.95 kB / 1.034 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.3388, allocations: 217.5 kB / 1.034 GB, free: 6.312 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3391, allocations: 0.677 MB / 1.035 GB, free: 5.609 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0002144/0.3393, allocations: 35.92 kB / 1.035 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/0.3394, allocations: 7.438 kB / 1.035 GB, free: 5.566 MB / 0.6823 GB Notification: Performance of SimCode: time 3.01e-07/0.3394, allocations: 4 kB / 1.035 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of Templates: time 0.002392/0.3418, allocations: 0.7778 MB / 1.035 GB, free: 4.793 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches