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.544/1.544, allocations: 249.3 MB / 261.9 MB, free: 5.973 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.001945/0.001945, allocations: 172.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.2 MB / 0.572 GB, free: 10.7 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.001084/0.001084, allocations: 93.17 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.011e-05/4.021e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2298, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7077/0.9376, allocations: 131.5 MB / 1.02 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.9379, allocations: 83.2 kB / 1.02 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002278/0.9401, allocations: 0.8451 MB / 1.021 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.813e-06/0.9402, allocations: 3.938 kB / 1.021 GB, free: 2.352 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.9402, allocations: 0 / 1.021 GB, free: 2.352 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/0.9404, allocations: 314.6 kB / 1.021 GB, free: 2 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.9405, allocations: 8.031 kB / 1.021 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.651e-05/0.9405, allocations: 0 / 1.021 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.9406, allocations: 163 kB / 1.022 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.9406, allocations: 4 kB / 1.022 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.9407, allocations: 7.734 kB / 1.022 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.805e-05/0.9408, allocations: 33.7 kB / 1.022 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.9408, allocations: 0 / 1.022 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.9408, allocations: 0 / 1.022 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.9408, allocations: 0 / 1.022 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.463e-05/0.9409, allocations: 14.67 kB / 1.022 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.941, allocations: 153 kB / 1.022 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.9412, allocations: 33.98 kB / 1.022 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.191e-05/0.9412, allocations: 16.42 kB / 1.022 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.9414, allocations: 81.11 kB / 1.022 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.9414, allocations: 30.56 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.9414, allocations: 0 / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5): time 0.002399/0.9438, allocations: 352.5 kB / 1.022 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.9438, allocations: 59.34 kB / 1.022 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.888e-05/0.9439, allocations: 88.19 kB / 1.022 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.9439, allocations: 25.7 kB / 1.022 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.9439, allocations: 80.14 kB / 1.023 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.589e-05/0.944, allocations: 19.09 kB / 1.023 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.944, allocations: 0 / 1.023 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.9441, allocations: 314.8 kB / 1.023 GB, free: 408 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.963e-05/0.9442, allocations: 11.81 kB / 1.023 GB, free: 400 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.164e-05/0.9442, allocations: 30.56 kB / 1.023 GB, free: 360 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.628e-05/0.9443, allocations: 17.67 kB / 1.023 GB, free: 348 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.9443, allocations: 0 / 1.023 GB, free: 348 kB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001522/0.9444, allocations: 65.05 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.9445, allocations: 5.562 kB / 1.023 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.9445, allocations: 0 / 1.023 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.9445, allocations: 8.094 kB / 1.023 GB, free: 268 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/0.9449, allocations: 43.97 kB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.9449, allocations: 4 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.9452, allocations: 43.48 kB / 1.023 GB, free: 180 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.9453, allocations: 10.11 kB / 1.023 GB, free: 172 kB / 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 7.398e-05/0.9453, allocations: 112.9 kB / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.345e-05/0.9454, allocations: 0 / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.9456, allocations: 80.33 kB / 1.023 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.9457, allocations: 0 / 1.023 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.9457, allocations: 4 kB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.9457, allocations: 3.984 kB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.946, allocations: 308.1 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.9461, allocations: 0 / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003883/0.9465, allocations: 51.97 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.9465, allocations: 0 / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.9465, allocations: 0 / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.9465, allocations: 0.875 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.9465, allocations: 0 / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.9467, allocations: 165.5 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.004e-05/0.9467, allocations: 81.8 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.9467, allocations: 0 / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.9471, allocations: 35.98 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.598e-05/0.9471, allocations: 7.984 kB / 1.024 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.9471, allocations: 4 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 2.351e-05/0.9472, allocations: 75.28 kB / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9472, allocations: 0 / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002191/0.9474, allocations: 19.31 kB / 1.024 GB, free: 15.16 MB / 0.6511 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.0001659/0.9476, allocations: 99.25 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001423/0.9477, allocations: 35.48 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9477, allocations: 0 / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.185e-05/0.9478, allocations: 18.69 kB / 1.024 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.9479, allocations: 3.953 kB / 1.024 GB, free: 15 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005531/0.9485, allocations: 111.6 kB / 1.024 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.9488, allocations: 0.6809 MB / 1.025 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002211/0.949, allocations: 24.55 kB / 1.025 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.99e-05/0.9491, allocations: 11.44 kB / 1.025 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of SimCode: time 3.21e-07/0.9491, allocations: 0 / 1.025 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of Templates: time 0.002428/0.9515, allocations: 0.8013 MB / 1.026 GB, free: 13.36 MB / 0.6511 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