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.001044/0.001044, allocations: 91.44 kB / 15.06 MB, free: 1.078 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.001315/0.001315, allocations: 176.7 kB / 15.95 MB, free: 192 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.541/1.541, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.911/2.911, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004225/0.0004227, allocations: 11.66 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4092/0.4096, allocations: 159.6 MB / 1.058 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.0008176/0.4105, allocations: 338.8 kB / 1.058 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004174/0.4109, allocations: 139.7 kB / 1.058 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.343e-05/0.411, allocations: 0 / 1.058 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.411, allocations: 3.938 kB / 1.058 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 1.996e-05/0.411, allocations: 0 / 1.058 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.4113, allocations: 23.98 kB / 1.059 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.776e-05/0.4114, allocations: 11.98 kB / 1.059 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.342e-05/0.4114, allocations: 7.984 kB / 1.059 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.227e-05/0.4115, allocations: 11.94 kB / 1.059 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.644e-05/0.4115, allocations: 7.984 kB / 1.059 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.4115, allocations: 0 / 1.059 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.822e-05/0.4116, allocations: 31.97 kB / 1.059 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.187e-05/0.4116, allocations: 3.984 kB / 1.059 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.418e-05/0.4117, allocations: 33.64 kB / 1.059 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.28e-05/0.4118, allocations: 15.97 kB / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4118, allocations: 0 / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.724e-06/0.4118, allocations: 0 / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.4118, allocations: 4 kB / 1.059 GB, free: 4.648 MB / 0.8106 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.0004261/0.4122, allocations: 335.3 kB / 1.059 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.4123, allocations: 11.97 kB / 1.059 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.4123, allocations: 3.938 kB / 1.059 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.4124, allocations: 163.1 kB / 1.059 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.4125, allocations: 4 kB / 1.059 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.4125, allocations: 11.94 kB / 1.059 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.4126, allocations: 41.69 kB / 1.059 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.4126, allocations: 0 / 1.059 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.4126, allocations: 0 / 1.059 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.4126, allocations: 8 kB / 1.059 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.012e-05/0.4127, allocations: 19.92 kB / 1.059 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001864/0.4129, allocations: 153.9 kB / 1.059 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.874e-05/0.413, allocations: 46.61 kB / 1.059 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.735e-05/0.4131, allocations: 16.98 kB / 1.059 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.4132, allocations: 85.06 kB / 1.059 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.4132, allocations: 34.56 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.363e-06/0.4132, allocations: 0 / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0015/0.4147, allocations: 496.1 kB / 1.06 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.4148, allocations: 55.41 kB / 1.06 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.944e-05/0.4149, allocations: 89.86 kB / 1.06 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.4149, allocations: 29.7 kB / 1.06 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.559e-05/0.4149, allocations: 84.27 kB / 1.06 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/0.415, allocations: 27.64 kB / 1.06 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.415, allocations: 0 / 1.06 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4152, allocations: 314.8 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.904e-05/0.4152, allocations: 11.98 kB / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.525e-05/0.4152, allocations: 12 kB / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.657e-05/0.4153, allocations: 12 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.4153, allocations: 0 / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001993/0.4155, allocations: 81.78 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.4155, allocations: 8 kB / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4155, allocations: 4 kB / 1.061 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.4155, allocations: 0 / 1.061 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.441e-05/0.4156, allocations: 15.98 kB / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.4156, allocations: 0 / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.26e-05/0.4157, allocations: 3.938 kB / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.4157, allocations: 4 kB / 1.061 GB, free: 2.207 MB / 0.8106 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 8.752e-05/0.4158, allocations: 109.8 kB / 1.061 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.302e-05/0.4158, allocations: 7.953 kB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.416, allocations: 93.47 kB / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.416, allocations: 0 / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.416, allocations: 0 / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.416, allocations: 4 kB / 1.061 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.4162, allocations: 157.7 kB / 1.061 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4162, allocations: 256 / 1.061 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.514e-05/0.4163, allocations: 19.98 kB / 1.061 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4163, allocations: 4 kB / 1.061 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.4163, allocations: 3.953 kB / 1.061 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.4163, allocations: 0 / 1.061 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4163, allocations: 7.938 kB / 1.061 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001858/0.4165, allocations: 113 kB / 1.061 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.4166, allocations: 93.03 kB / 1.061 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.4166, allocations: 0 / 1.061 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.459e-05/0.4166, allocations: 3.953 kB / 1.061 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.633e-05/0.4167, allocations: 7.984 kB / 1.061 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.4167, allocations: 4 kB / 1.061 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.172e-05/0.4167, allocations: 79.34 kB / 1.061 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4167, allocations: 0 / 1.061 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002289/0.4169, allocations: 32 kB / 1.061 GB, free: 1.379 MB / 0.8106 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.0002433/0.4172, allocations: 131.2 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001196/0.4173, allocations: 35.92 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4173, allocations: 0 / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.273e-05/0.4174, allocations: 23.98 kB / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.4175, allocations: 8.094 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003992/0.4179, allocations: 160.7 kB / 1.062 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.4183, allocations: 0.6809 MB / 1.062 GB, free: 292 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.866e-05/0.4183, allocations: 4.188 kB / 1.062 GB, free: 284 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.979e-05/0.4184, allocations: 7.438 kB / 1.062 GB, free: 276 kB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.4184, allocations: 8 kB / 1.062 GB, free: 268 kB / 0.8106 GB Notification: Performance of Templates: time 0.003345/0.4217, allocations: 0.8245 MB / 1.063 GB, free: 15.44 MB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches