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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009487/0.0009483, allocations: 98.61 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009618/0.000962, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.707/2.707, allocations: 436.5 MB / 0.7104 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003553, allocations: 12 kB / 0.8708 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.832/0.8323, allocations: 153.7 MB / 1.021 GB, free: 1.156 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.000876/0.8333, allocations: 321.4 kB / 1.021 GB, free: 0.8398 MB / 0.7638 GB Notification: Performance of NFInst.instExpressions: time 0.001357/0.8347, allocations: 1.069 MB / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.305e-05/0.8347, allocations: 0 / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.8347, allocations: 0 / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.835, allocations: 23.91 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 2.385e-06/0.835, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 3.998e-05/0.835, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.279e-05/0.8351, allocations: 4 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.806e-05/0.8351, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 2.794e-05/0.8352, allocations: 7.875 kB / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.946e-06/0.8352, allocations: 0 / 1.022 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.8353, allocations: 23.97 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.597e-06/0.8353, allocations: 0 / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.603e-05/0.8353, allocations: 25.7 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 5.915e-05/0.8354, allocations: 7.984 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.8354, allocations: 0 / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.843e-06/0.8354, allocations: 0 / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.8354, allocations: 4 kB / 1.022 GB, free: 15.65 MB / 0.7794 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.0002879/0.8357, allocations: 313.1 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.8358, allocations: 16.05 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.8358, allocations: 11.89 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.198e-05/0.8359, allocations: 159.1 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.8359, allocations: 0 / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.8359, allocations: 0 / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.8361, allocations: 45.58 kB / 1.023 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.8361, allocations: 4 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.8361, allocations: 0 / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.8361, allocations: 3.938 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.133e-05/0.8361, allocations: 4 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.8363, allocations: 157.6 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.8365, allocations: 34.72 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001676/0.8367, allocations: 93.03 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.8367, allocations: 34.56 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8367, allocations: 4 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.004112/0.8408, allocations: 0.5656 MB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.8409, allocations: 55.41 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.086e-05/0.8409, allocations: 93.86 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.841, allocations: 25.7 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.964e-05/0.841, allocations: 80.14 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.841, allocations: 27.64 kB / 1.024 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.8411, allocations: 0 / 1.024 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.8412, allocations: 314.8 kB / 1.024 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005794/0.8418, allocations: 83.95 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.8424, allocations: 102.5 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005717/0.8429, allocations: 83.95 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.8429, allocations: 4 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001208/0.8442, allocations: 209.6 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.8442, allocations: 4 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.8442, allocations: 3.953 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.8442, allocations: 4 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004088/0.8446, allocations: 51.94 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.8447, allocations: 0 / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/0.845, allocations: 47.97 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.8451, allocations: 4 kB / 1.025 GB, free: 12.82 MB / 0.7794 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 8.997e-05/0.8452, allocations: 105.8 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.885e-05/0.8452, allocations: 4 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.8465, allocations: 241 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.8465, allocations: 3.953 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.8465, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.8465, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.848, allocations: 450.5 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.848, allocations: 0 / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.8484, allocations: 55.92 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.8484, allocations: 3.938 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.8484, allocations: 3.984 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.8484, allocations: 3.984 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8485, allocations: 0 / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.8497, allocations: 307.7 kB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.214e-05/0.8497, allocations: 77.11 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.8497, allocations: 11.89 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/0.8501, allocations: 39.98 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.689e-05/0.8501, allocations: 7.984 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.8501, allocations: 4 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.517e-05/0.8502, allocations: 75.28 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8502, allocations: 0 / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002516/0.8504, allocations: 8 kB / 1.026 GB, free: 11.33 MB / 0.7794 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.0001826/0.8506, allocations: 103.2 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001172/0.8518, allocations: 191.9 kB / 1.026 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.8518, allocations: 0 / 1.026 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005694/0.8524, allocations: 88.02 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.8526, allocations: 0.5625 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.8537, allocations: 218.7 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.8539, allocations: 0.677 MB / 1.027 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002213/0.8541, allocations: 28 kB / 1.027 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.248e-05/0.8542, allocations: 15.42 kB / 1.027 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of SimCode: time 7.22e-07/0.8542, allocations: 0 / 1.027 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of Templates: time 0.002831/0.857, allocations: 0.7895 MB / 1.028 GB, free: 9.188 MB / 0.7794 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