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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001522/0.001523, allocations: 99.86 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.002414/0.002414, allocations: 177.3 kB / 15.95 MB, free: 216 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.464/1.464, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.605/2.605, allocations: 390.2 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004012/0.0004013, allocations: 15.94 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.863/0.8634, allocations: 142.3 MB / 0.9535 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0006612/0.8641, allocations: 315.2 kB / 0.9538 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001025/0.8652, allocations: 1.074 MB / 0.9549 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.328e-05/0.8652, allocations: 0 / 0.9549 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.108e-05/0.8652, allocations: 0 / 0.9549 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.8654, allocations: 18.86 kB / 0.9549 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 2.424e-06/0.8655, allocations: 0 / 0.9549 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.348e-05/0.8655, allocations: 1.062 kB / 0.9549 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.621e-05/0.8656, allocations: 1.281 kB / 0.9549 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.615e-05/0.8656, allocations: 5.203 kB / 0.9549 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.398e-05/0.8656, allocations: 5.281 kB / 0.9549 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.991e-06/0.8656, allocations: 3.938 kB / 0.9549 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.649e-05/0.8657, allocations: 16.45 kB / 0.9549 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.927e-06/0.8657, allocations: 3.984 kB / 0.9549 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.192e-05/0.8657, allocations: 30.8 kB / 0.955 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 4.743e-05/0.8658, allocations: 11.64 kB / 0.955 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.8658, allocations: 0 / 0.955 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8658, allocations: 0 / 0.955 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.945e-06/0.8658, allocations: 3.938 kB / 0.955 GB, free: 6.855 MB / 0.7169 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.0001453/0.866, allocations: 314.9 kB / 0.9553 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.866, allocations: 9.656 kB / 0.9553 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.472e-05/0.866, allocations: 3.953 kB / 0.9553 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.475e-05/0.8661, allocations: 168.3 kB / 0.9554 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.8661, allocations: 0 / 0.9554 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.942e-05/0.8661, allocations: 5.25 kB / 0.9554 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.327e-05/0.8662, allocations: 41.5 kB / 0.9555 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.8662, allocations: 1.188 kB / 0.9555 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.8662, allocations: 0 / 0.9555 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.8663, allocations: 1.125 kB / 0.9555 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.053e-05/0.8663, allocations: 11.61 kB / 0.9555 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.383e-05/0.8664, allocations: 152.3 kB / 0.9556 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.8665, allocations: 34.77 kB / 0.9557 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.8667, allocations: 80.08 kB / 0.9558 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.219e-05/0.8667, allocations: 39.52 kB / 0.9558 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.8667, allocations: 0 / 0.9558 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.003925/0.8706, allocations: 0.5696 MB / 0.9564 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.8707, allocations: 52.16 kB / 0.9564 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.77e-05/0.8707, allocations: 89.86 kB / 0.9565 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.8707, allocations: 26.64 kB / 0.9565 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.091e-05/0.8707, allocations: 80.14 kB / 0.9566 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.8708, allocations: 21.86 kB / 0.9566 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.567e-06/0.8708, allocations: 0.9688 kB / 0.9566 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.716e-05/0.8708, allocations: 315.8 kB / 0.9569 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005495/0.8714, allocations: 86.48 kB / 0.957 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005516/0.8719, allocations: 98.53 kB / 0.9571 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005561/0.8725, allocations: 88.08 kB / 0.9572 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.8725, allocations: 1.344 kB / 0.9572 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001159/0.8737, allocations: 217 kB / 0.9574 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.8737, allocations: 5.031 kB / 0.9574 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.8737, allocations: 1.125 kB / 0.9574 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.8737, allocations: 1.219 kB / 0.9574 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.8741, allocations: 53.81 kB / 0.9574 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.8741, allocations: 1.312 kB / 0.9574 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.8745, allocations: 47.66 kB / 0.9575 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.8745, allocations: 1.906 kB / 0.9575 GB, free: 4.879 MB / 0.7169 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 6.769e-05/0.8746, allocations: 119.7 kB / 0.9576 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.8746, allocations: 2 kB / 0.9576 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.8759, allocations: 236.8 kB / 0.9578 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.8759, allocations: 1.5 kB / 0.9578 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.8759, allocations: 0 / 0.9578 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.8759, allocations: 3.984 kB / 0.9578 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.8773, allocations: 458.4 kB / 0.9583 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.8773, allocations: 1.375 kB / 0.9583 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/0.8776, allocations: 49.09 kB / 0.9583 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.8777, allocations: 3.938 kB / 0.9583 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.8777, allocations: 5.312 kB / 0.9583 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.8777, allocations: 0 / 0.9583 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.8777, allocations: 0 / 0.9583 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.8788, allocations: 310.2 kB / 0.9586 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.651e-05/0.8788, allocations: 82.39 kB / 0.9587 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.8789, allocations: 0 / 0.9587 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003416/0.8792, allocations: 38.14 kB / 0.9587 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.72e-05/0.8792, allocations: 6.641 kB / 0.9587 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.8793, allocations: 1.344 kB / 0.9587 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.461e-05/0.8793, allocations: 79.23 kB / 0.9588 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.8793, allocations: 0 / 0.9588 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002498/0.8795, allocations: 18.38 kB / 0.9588 GB, free: 3.871 MB / 0.7169 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.0001382/0.8797, allocations: 100 kB / 0.9589 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001201/0.8809, allocations: 184.8 kB / 0.9591 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8809, allocations: 1.031 kB / 0.9591 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005808/0.8815, allocations: 91.58 kB / 0.9592 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.8816, allocations: 6.688 kB / 0.9592 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.8828, allocations: 212.6 kB / 0.9594 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001515/0.883, allocations: 0.679 MB / 0.9601 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002222/0.8832, allocations: 36.34 kB / 0.9601 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.8833, allocations: 9.969 kB / 0.9601 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of SimCode: time 3.51e-07/0.8833, allocations: 0 / 0.9601 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of Templates: time 0.003105/0.8864, allocations: 0.7912 MB / 0.9609 GB, free: 2.398 MB / 0.7169 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","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches