Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.SmoothExponentialDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y|ex|der.y_comp.|der.y.",fileNamePrefix="Buildings_10_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_10_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.001347/0.001347, allocations: 101.8 kB / 16.35 MB, free: 5.879 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.001926/0.001926, allocations: 199.1 kB / 17.3 MB, free: 5.52 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.41/2.41, allocations: 437.1 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 64.47 kB / 0.8707 GB, free: 1.438 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2833, allocations: 151.6 MB / 1.019 GB, free: 9.848 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001782/0.2852, allocations: 0.6017 MB / 1.019 GB, free: 9.238 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003519/0.2855, allocations: 159.5 kB / 1.02 GB, free: 9.082 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.511e-05/0.2856, allocations: 0 / 1.02 GB, free: 9.082 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.206e-05/0.2856, allocations: 3.938 kB / 1.02 GB, free: 9.078 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 1.913e-05/0.2856, allocations: 0 / 1.02 GB, free: 9.078 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002881/0.2859, allocations: 51.8 kB / 1.02 GB, free: 9.027 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.499e-05/0.286, allocations: 11.98 kB / 1.02 GB, free: 9.016 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.693e-05/0.286, allocations: 0 / 1.02 GB, free: 9.016 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.169e-05/0.286, allocations: 11.94 kB / 1.02 GB, free: 9.004 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.104e-05/0.2861, allocations: 15.91 kB / 1.02 GB, free: 8.988 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.2861, allocations: 0 / 1.02 GB, free: 8.988 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.775e-05/0.2862, allocations: 31.97 kB / 1.02 GB, free: 8.957 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.335e-05/0.2862, allocations: 4 kB / 1.02 GB, free: 8.953 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.278e-05/0.2862, allocations: 7.938 kB / 1.02 GB, free: 8.945 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.884e-05/0.2863, allocations: 39.81 kB / 1.02 GB, free: 8.906 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2864, allocations: 4 kB / 1.02 GB, free: 8.902 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2864, allocations: 0 / 1.02 GB, free: 8.902 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.495e-06/0.2864, allocations: 4 kB / 1.02 GB, free: 8.898 MB / 0.795 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.0003617/0.2867, allocations: 323.6 kB / 1.02 GB, free: 8.531 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.2868, allocations: 8.922 kB / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.2868, allocations: 4.938 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.2869, allocations: 160.4 kB / 1.02 GB, free: 8.324 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.2869, allocations: 4.375 kB / 1.02 GB, free: 8.32 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.287, allocations: 8.359 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.343e-05/0.2871, allocations: 46.25 kB / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.2871, allocations: 192 / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2871, allocations: 3.938 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.2871, allocations: 0 / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.2872, allocations: 19.92 kB / 1.02 GB, free: 8.238 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.2873, allocations: 157.6 kB / 1.02 GB, free: 8.035 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 8.466e-05/0.2874, allocations: 42.62 kB / 1.02 GB, free: 7.984 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.411e-05/0.2875, allocations: 28.95 kB / 1.02 GB, free: 7.953 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.2876, allocations: 81.11 kB / 1.021 GB, free: 7.855 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.2876, allocations: 34.56 kB / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.2876, allocations: 0 / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.001292/0.2889, allocations: 496.2 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.289, allocations: 51.41 kB / 1.021 GB, free: 7.191 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.689e-05/0.289, allocations: 101.9 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.2891, allocations: 25.7 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.808e-05/0.2891, allocations: 80.14 kB / 1.021 GB, free: 6.969 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/0.2891, allocations: 27.64 kB / 1.021 GB, free: 6.941 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.561e-05/0.2892, allocations: 17.72 kB / 1.021 GB, free: 6.918 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2893, allocations: 318.8 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.665e-05/0.2894, allocations: 12 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.231e-05/0.2894, allocations: 12 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.536e-05/0.2895, allocations: 49.17 kB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.2895, allocations: 7.938 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001067/0.2896, allocations: 61.69 kB / 1.022 GB, free: 6.449 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2896, allocations: 7.938 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2896, allocations: 0 / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.2896, allocations: 4 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.493e-05/0.2897, allocations: 11.98 kB / 1.022 GB, free: 6.426 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.2897, allocations: 0 / 1.022 GB, free: 6.426 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.82e-05/0.2898, allocations: 8 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.2898, allocations: 0 / 1.022 GB, free: 6.418 MB / 0.795 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.71e-05/0.2898, allocations: 124.2 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/0.2899, allocations: 7.844 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001628/0.29, allocations: 77.64 kB / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.29, allocations: 0 / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.29, allocations: 0 / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.2901, allocations: 0 / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.2902, allocations: 173.6 kB / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2902, allocations: 0 / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-05/0.2903, allocations: 16 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2903, allocations: 3.938 kB / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.2903, allocations: 4 kB / 1.022 GB, free: 5.953 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2903, allocations: 3.984 kB / 1.022 GB, free: 5.949 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.2903, allocations: 3.938 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001614/0.2905, allocations: 109.1 kB / 1.022 GB, free: 5.82 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.89e-05/0.2905, allocations: 84.95 kB / 1.022 GB, free: 5.719 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.2905, allocations: 4.031 kB / 1.022 GB, free: 5.715 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.348e-05/0.2906, allocations: 4.125 kB / 1.022 GB, free: 5.711 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.908e-05/0.2906, allocations: 12 kB / 1.022 GB, free: 5.699 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.2906, allocations: 3.984 kB / 1.022 GB, free: 5.695 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.03e-05/0.2907, allocations: 79.28 kB / 1.022 GB, free: 5.617 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2907, allocations: 0 / 1.022 GB, free: 5.617 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002125/0.2909, allocations: 28 kB / 1.023 GB, free: 5.59 MB / 0.795 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 (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.0002017/0.2911, allocations: 139.1 kB / 1.023 GB, free: 5.441 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001094/0.2912, allocations: 44.08 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2912, allocations: 0 / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 3.516e-05/0.2913, allocations: 23.92 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.2914, allocations: 4 kB / 1.023 GB, free: 5.371 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002928/0.2917, allocations: 137.6 kB / 1.023 GB, free: 5.211 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.2919, allocations: 0.6794 MB / 1.024 GB, free: 4.508 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.42e-05/0.292, allocations: 16.47 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.964e-05/0.292, allocations: 11.44 kB / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.292, allocations: 0 / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of Templates: time 0.003057/0.2951, allocations: 0.8777 MB / 1.024 GB, free: 3.617 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches