Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.SmoothExponentialDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y|ex|der.y_comp.|der.y.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y|ex|der.y_comp.|der.y.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 100.1 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.00179/0.00179, 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.424/1.424, allocations: 223.2 MB / 239.9 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.602/2.602, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003488, allocations: 8 kB / 0.8708 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7627/0.763, allocations: 153.7 MB / 1.021 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.0007197/0.7638, allocations: 333.3 kB / 1.021 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003675/0.7642, allocations: 147.6 kB / 1.021 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.01e-05/0.7642, allocations: 0 / 1.021 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.224e-05/0.7642, allocations: 0 / 1.021 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.475e-05/0.7643, allocations: 0 / 1.021 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.7645, allocations: 31.84 kB / 1.021 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.688e-05/0.7646, allocations: 8 kB / 1.021 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.328e-05/0.7646, allocations: 7.984 kB / 1.021 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.73e-05/0.7646, allocations: 4 kB / 1.021 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.661e-05/0.7647, allocations: 7.938 kB / 1.021 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.091e-05/0.7647, allocations: 0 / 1.021 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.33e-05/0.7648, allocations: 35.95 kB / 1.021 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.648e-06/0.7648, allocations: 3.984 kB / 1.021 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.103e-05/0.7649, allocations: 29.7 kB / 1.021 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.332e-05/0.7649, allocations: 11.98 kB / 1.021 GB, free: 440 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.7649, allocations: 0 / 1.021 GB, free: 440 kB / 0.7637 GB Notification: Performance of FrontEnd: time 3.467e-06/0.7649, allocations: 3.984 kB / 1.021 GB, free: 436 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.765, allocations: 4 kB / 1.021 GB, free: 432 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003805/0.7653, allocations: 325.2 kB / 1.022 GB, free: 60 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.7654, allocations: 19.91 kB / 1.022 GB, free: 40 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.7654, allocations: 4 kB / 1.022 GB, free: 36 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.7655, allocations: 159.1 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.7656, allocations: 4 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.7656, allocations: 4 kB / 1.022 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.7657, allocations: 49.58 kB / 1.022 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.7657, allocations: 4 kB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.7657, allocations: 0 / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.7657, allocations: 0 / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.423e-05/0.7658, allocations: 15.98 kB / 1.022 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.766, allocations: 167.6 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.473e-05/0.7661, allocations: 42.62 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.199e-05/0.7662, allocations: 77.11 kB / 1.022 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.7662, allocations: 42.62 kB / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.7662, allocations: 0 / 1.022 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.001293/0.7675, allocations: 0.4885 MB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.7675, allocations: 51.41 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.038e-05/0.7676, allocations: 97.86 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.7676, allocations: 25.7 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.7677, allocations: 84.27 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.7677, allocations: 27.61 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.7677, allocations: 0 / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.7678, allocations: 310.8 kB / 1.023 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.557e-05/0.7678, allocations: 12 kB / 1.023 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.466e-05/0.7679, allocations: 19.97 kB / 1.023 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.316e-05/0.7679, allocations: 15.94 kB / 1.023 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.7679, allocations: 0 / 1.023 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001008/0.768, allocations: 65.69 kB / 1.023 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.768, allocations: 7.953 kB / 1.023 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.7681, allocations: 4 kB / 1.023 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.7681, allocations: 4 kB / 1.023 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.872e-05/0.7682, allocations: 11.98 kB / 1.023 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.7682, allocations: 0 / 1.023 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.532e-05/0.7682, allocations: 4 kB / 1.023 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.7682, allocations: 4 kB / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (8): * Single equations (assignments): 8 * 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.892e-05/0.7683, allocations: 113.8 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.317e-06/0.7683, allocations: 0 / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.7685, allocations: 93.53 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.7685, allocations: 3.984 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.7686, allocations: 0 / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.7686, allocations: 0 / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.7687, allocations: 169.6 kB / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7687, allocations: 0 / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-05/0.7688, allocations: 15.98 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.7688, allocations: 4.125 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.7688, allocations: 4 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.7688, allocations: 11.89 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.7688, allocations: 7.938 kB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.769, allocations: 109.1 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.7691, allocations: 77.11 kB / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.7691, allocations: 0 / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.238e-05/0.7691, allocations: 4.031 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.388e-05/0.7692, allocations: 11.94 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.7692, allocations: 0 / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.406e-05/0.7692, allocations: 83.34 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7692, allocations: 0 / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002153/0.7694, allocations: 28 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (8): * Single equations (assignments): 8 * 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.0002167/0.7697, allocations: 139.2 kB / 1.024 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001006/0.7698, allocations: 32.45 kB / 1.024 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.7698, allocations: 0 / 1.024 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.251e-05/0.7698, allocations: 27.92 kB / 1.024 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001087/0.7699, allocations: 4.094 kB / 1.024 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000271/0.7702, allocations: 144.3 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.7705, allocations: 0.6848 MB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.813e-05/0.7705, allocations: 8.172 kB / 1.025 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.228e-05/0.7705, allocations: 11.44 kB / 1.025 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of SimCode: time 5e-07/0.7705, allocations: 7.938 kB / 1.025 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of Templates: time 0.003442/0.774, allocations: 0.8212 MB / 1.026 GB, free: 11.26 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches