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.569/1.569, allocations: 249.5 MB / 257 MB, free: 6.965 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.001234/0.001234, allocations: 180.8 kB / 316.3 MB, free: 3.234 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.816/1.816, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0008452/0.0008452, allocations: 85.5 kB / 0.6714 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.702e-05/2.704e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.237, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8335/1.07, allocations: 131.8 MB / 1.014 GB, free: 5.961 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/1.071, allocations: 82.72 kB / 1.014 GB, free: 5.914 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002266/1.073, allocations: 0.8314 MB / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.493e-06/1.073, allocations: 0 / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.23e-06/1.073, allocations: 0 / 1.015 GB, free: 5.195 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.0002406/1.073, allocations: 322.5 kB / 1.015 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/1.073, allocations: 12.03 kB / 1.015 GB, free: 4.824 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/1.073, allocations: 3.938 kB / 1.015 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/1.074, allocations: 167 kB / 1.015 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/1.074, allocations: 0 / 1.015 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/1.074, allocations: 4 kB / 1.015 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.414e-05/1.074, allocations: 3.984 kB / 1.015 GB, free: 4.609 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.107e-05/1.074, allocations: 33.33 kB / 1.015 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/1.074, allocations: 4 kB / 1.015 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/1.074, allocations: 2.625 kB / 1.015 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/1.074, allocations: 0 / 1.015 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/1.074, allocations: 130.2 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/1.074, allocations: 42.06 kB / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.132e-05/1.074, allocations: 8.859 kB / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001384/1.074, allocations: 85.23 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/1.074, allocations: 34.12 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/1.074, allocations: 0 / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5): time 0.002549/1.077, allocations: 360.6 kB / 1.016 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/1.077, allocations: 51.41 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.06e-05/1.077, allocations: 85 kB / 1.016 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/1.077, allocations: 25.7 kB / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/1.077, allocations: 80.14 kB / 1.016 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/1.077, allocations: 19.7 kB / 1.016 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/1.077, allocations: 0 / 1.016 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001148/1.077, allocations: 314.5 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.233e-05/1.077, allocations: 12 kB / 1.017 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.39e-05/1.077, allocations: 24.08 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.374e-05/1.077, allocations: 19.97 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/1.077, allocations: 0 / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001812/1.078, allocations: 69.12 kB / 1.017 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/1.078, allocations: 8.094 kB / 1.017 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/1.078, allocations: 0 / 1.017 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/1.078, allocations: 4 kB / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/1.078, allocations: 51.91 kB / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/1.078, allocations: 7.938 kB / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/1.078, allocations: 35.98 kB / 1.017 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/1.078, allocations: 7.562 kB / 1.017 GB, free: 3.02 MB / 0.6355 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 () * 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 9.132e-05/1.079, allocations: 105 kB / 1.017 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.765e-05/1.079, allocations: 3.953 kB / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003015/1.079, allocations: 85.5 kB / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/1.079, allocations: 0 / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/1.079, allocations: 4 kB / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/1.079, allocations: 0 / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004043/1.079, allocations: 298.1 kB / 1.017 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/1.079, allocations: 4.812 kB / 1.017 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003911/1.08, allocations: 47.97 kB / 1.017 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/1.08, allocations: 4 kB / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/1.08, allocations: 0 / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/1.08, allocations: 0 / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.08, allocations: 320 / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002209/1.08, allocations: 173 kB / 1.017 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.367e-05/1.08, allocations: 81.06 kB / 1.018 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/1.08, allocations: 0 / 1.018 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003658/1.081, allocations: 43.97 kB / 1.018 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/1.081, allocations: 0 / 1.018 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/1.081, allocations: 0 / 1.018 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.003e-05/1.081, allocations: 79.28 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/1.081, allocations: 0 / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002322/1.081, allocations: 11.94 kB / 1.018 GB, free: 2.027 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 (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.0002044/1.081, allocations: 106.2 kB / 1.018 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001273/1.081, allocations: 35.06 kB / 1.018 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.081, allocations: 0 / 1.018 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.909e-05/1.081, allocations: 11.98 kB / 1.018 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/1.081, allocations: 5.859 kB / 1.018 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005477/1.082, allocations: 99.61 kB / 1.018 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/1.082, allocations: 0.6768 MB / 1.019 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0002365/1.082, allocations: 33.02 kB / 1.019 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.685e-05/1.083, allocations: 7.438 kB / 1.019 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/1.083, allocations: 0 / 1.019 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of Templates: time 0.002651/1.085, allocations: 0.7951 MB / 1.019 GB, free: 240 kB / 0.6355 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