Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.005062/0.005062, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001138/0.001138, allocations: 190.5 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.326/2.326, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 67.89 kB / 0.9509 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9391/0.9403, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001756/0.9421, allocations: 0.5859 MB / 1.089 GB, free: 5.137 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00133/0.9435, allocations: 1.111 MB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.793e-05/0.9435, allocations: 1.062 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.845e-05/0.9435, allocations: 0 / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.9438, allocations: 20.89 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 3.747e-06/0.9438, allocations: 1.031 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.92e-05/0.9439, allocations: 7.172 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.097e-05/0.9439, allocations: 0.5625 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.876e-05/0.9439, allocations: 2.469 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.59e-05/0.944, allocations: 5.188 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.344e-06/0.944, allocations: 0 / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.9441, allocations: 29.27 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.853e-06/0.9441, allocations: 1.188 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.138e-05/0.9441, allocations: 0 / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.79e-05/0.9442, allocations: 13.88 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.9443, allocations: 4 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/0.9443, allocations: 0 / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.9443, allocations: 0 / 1.09 GB, free: 4.273 MB / 0.8575 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.0002445/0.9445, allocations: 320 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.9446, allocations: 13.59 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.968e-05/0.9446, allocations: 2.531 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.047e-05/0.9447, allocations: 161.5 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.9447, allocations: 1.75 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.9447, allocations: 1.469 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.9448, allocations: 48.31 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.9448, allocations: 1.125 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.9449, allocations: 0 / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.9449, allocations: 1.125 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.311e-05/0.9449, allocations: 5.672 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001177/0.945, allocations: 155.2 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.9452, allocations: 36.7 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.128e-05/0.9452, allocations: 13.31 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001448/0.9454, allocations: 82.84 kB / 1.091 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.9454, allocations: 40.39 kB / 1.091 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.9454, allocations: 0 / 1.091 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.004364/0.9498, allocations: 0.5714 MB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.9498, allocations: 52.83 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.313e-05/0.9499, allocations: 94.67 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.9499, allocations: 29.7 kB / 1.091 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.134e-05/0.9499, allocations: 80.89 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.95, allocations: 11.03 kB / 1.091 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.535e-05/0.95, allocations: 20.31 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.72e-05/0.9501, allocations: 313.3 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/0.9507, allocations: 87.48 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006119/0.9513, allocations: 104.7 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.9525, allocations: 189.8 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.9525, allocations: 4.719 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00127/0.9538, allocations: 217.4 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.9538, allocations: 5.891 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.9538, allocations: 0.5938 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.9539, allocations: 1.438 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.9543, allocations: 54.25 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.9543, allocations: 1.5 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/0.9547, allocations: 41.27 kB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.9547, allocations: 2.672 kB / 1.092 GB, free: 2.418 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.124e-05/0.9548, allocations: 109 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.9548, allocations: 5.031 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.9562, allocations: 242.2 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.9562, allocations: 1.922 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.9563, allocations: 0.9062 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.9563, allocations: 0 / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001517/0.9578, allocations: 466.1 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.9578, allocations: 1.453 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.9582, allocations: 49.53 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.788e-06/0.9582, allocations: 0 / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.9582, allocations: 1.328 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.9582, allocations: 1.922 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9583, allocations: 0 / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.9596, allocations: 301.5 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.037e-05/0.9596, allocations: 90.78 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.9597, allocations: 5.562 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/0.96, allocations: 40.11 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.521e-05/0.9601, allocations: 2.516 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.9601, allocations: 2.703 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.697e-05/0.9601, allocations: 75.28 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.9601, allocations: 0.9688 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002754/0.9604, allocations: 9.953 kB / 1.094 GB, free: 1.547 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001788/0.9606, allocations: 111.9 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00133/0.9619, allocations: 187.3 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.9619, allocations: 0.5625 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006242/0.9625, allocations: 89.56 kB / 1.094 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.9628, allocations: 9.703 kB / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.9639, allocations: 204.4 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.9641, allocations: 0.6757 MB / 1.095 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001789/0.9643, allocations: 33.48 kB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.428e-05/0.9643, allocations: 11.39 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of SimCode: time 4.7e-07/0.9643, allocations: 0 / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of Templates: time 0.003227/0.9676, allocations: 0.8148 MB / 1.096 GB, free: 492 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches