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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001594/0.001595, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 192 kB / 16.53 MB, free: 6.664 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.467/1.467, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.981/2.981, allocations: 482.6 MB / 0.7548 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 73.17 kB / 0.9241 GB, free: 29.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3569, allocations: 162.3 MB / 1.083 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002311/0.3592, allocations: 0.5899 MB / 1.083 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001725/0.361, allocations: 1.112 MB / 1.084 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.739e-05/0.361, allocations: 0 / 1.084 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.477e-05/0.3611, allocations: 0 / 1.084 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.3613, allocations: 19.94 kB / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 3.577e-06/0.3613, allocations: 0 / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.346e-05/0.3614, allocations: 7.922 kB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.815e-05/0.3614, allocations: 4 kB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.294e-05/0.3614, allocations: 0 / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.365e-05/0.3615, allocations: 3.984 kB / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.3615, allocations: 4 kB / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.3616, allocations: 15.98 kB / 1.084 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.3616, allocations: 11.88 kB / 1.084 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.367e-05/0.3616, allocations: 0 / 1.084 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 8.233e-05/0.3617, allocations: 15.97 kB / 1.084 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.3617, allocations: 0 / 1.084 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3617, allocations: 0 / 1.084 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.3617, allocations: 0 / 1.084 GB, free: 11.14 MB / 0.8419 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.0003379/0.3621, allocations: 327.6 kB / 1.085 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3621, allocations: 8.031 kB / 1.085 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.3622, allocations: 0.9375 kB / 1.085 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.3623, allocations: 164.4 kB / 1.085 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.3623, allocations: 4.312 kB / 1.085 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.3623, allocations: 4.375 kB / 1.085 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.3625, allocations: 42 kB / 1.085 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.3625, allocations: 0 / 1.085 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.3625, allocations: 0 / 1.085 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3625, allocations: 3.938 kB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.245e-05/0.3626, allocations: 7.984 kB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001789/0.3627, allocations: 157.6 kB / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/0.3629, allocations: 34.61 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.678e-05/0.363, allocations: 12.86 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001497/0.3631, allocations: 81.19 kB / 1.085 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.3632, allocations: 38.5 kB / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 2.866e-06/0.3632, allocations: 11.86 kB / 1.085 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5): time 0.004409/0.3676, allocations: 0.5679 MB / 1.086 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.3677, allocations: 51.41 kB / 1.086 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.3678, allocations: 93.86 kB / 1.086 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.3678, allocations: 25.7 kB / 1.086 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.22e-05/0.3679, allocations: 80.14 kB / 1.086 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.08e-05/0.368, allocations: 15.81 kB / 1.086 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.3681, allocations: 21.7 kB / 1.086 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002108/0.3683, allocations: 310.8 kB / 1.086 GB, free: 8.871 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006534/0.369, allocations: 83.95 kB / 1.086 GB, free: 8.789 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006333/0.3696, allocations: 102.5 kB / 1.086 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.3708, allocations: 190.4 kB / 1.087 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.3708, allocations: 0 / 1.087 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001291/0.3721, allocations: 221.5 kB / 1.087 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.3722, allocations: 4 kB / 1.087 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3722, allocations: 0 / 1.087 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3722, allocations: 0 / 1.087 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.3726, allocations: 52 kB / 1.087 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.3727, allocations: 0 / 1.087 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.373, allocations: 43.97 kB / 1.087 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.373, allocations: 0 / 1.087 GB, free: 8.164 MB / 0.8419 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 0.0001038/0.3731, allocations: 113.8 kB / 1.087 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.3732, allocations: 7.844 kB / 1.087 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.3746, allocations: 241 kB / 1.087 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3746, allocations: 3.938 kB / 1.087 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3746, allocations: 0 / 1.087 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3746, allocations: 3.984 kB / 1.087 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.3762, allocations: 454.4 kB / 1.088 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3762, allocations: 0 / 1.088 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004097/0.3767, allocations: 52.28 kB / 1.088 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3767, allocations: 4 kB / 1.088 GB, free: 7.234 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.3767, allocations: 4 kB / 1.088 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.3767, allocations: 4 kB / 1.088 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3767, allocations: 0 / 1.088 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.378, allocations: 303.4 kB / 1.088 GB, free: 6.914 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.3781, allocations: 77.11 kB / 1.088 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.3781, allocations: 0 / 1.088 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003853/0.3785, allocations: 39.98 kB / 1.088 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.079e-05/0.3785, allocations: 11.92 kB / 1.088 GB, free: 6.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.3786, allocations: 4 kB / 1.088 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.116e-05/0.3786, allocations: 79.28 kB / 1.088 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.7e-07/0.3786, allocations: 0 / 1.088 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000254/0.3789, allocations: 11.94 kB / 1.088 GB, free: 6.676 MB / 0.8419 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.0002036/0.3791, allocations: 103.2 kB / 1.088 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001356/0.3804, allocations: 191.8 kB / 1.089 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3805, allocations: 0 / 1.089 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006555/0.3811, allocations: 88.14 kB / 1.089 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.3813, allocations: 0 / 1.089 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.3827, allocations: 224.8 kB / 1.089 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.383, allocations: 0.6768 MB / 1.09 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002276/0.3833, allocations: 28 kB / 1.09 GB, free: 5.312 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.986e-05/0.3833, allocations: 15.42 kB / 1.09 GB, free: 5.297 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.3834, allocations: 0 / 1.09 GB, free: 5.297 MB / 0.8419 GB Notification: Performance of Templates: time 0.003446/0.3868, allocations: 0.8102 MB / 1.09 GB, free: 4.492 MB / 0.8419 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=400 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches