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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.002272/0.002272, allocations: 194.6 kB / 16.25 MB, free: 6.633 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.874/1.874, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.799/2.799, allocations: 461.9 MB / 0.7344 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 71.86 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3001, allocations: 157.4 MB / 1.052 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001965/0.3021, allocations: 0.6697 MB / 1.053 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004145/0.3025, allocations: 159.5 kB / 1.053 GB, free: 7.852 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.233e-05/0.3026, allocations: 0 / 1.053 GB, free: 7.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.619e-05/0.3026, allocations: 3.938 kB / 1.053 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.447e-05/0.3026, allocations: 0 / 1.053 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.303, allocations: 35.97 kB / 1.053 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.175e-05/0.303, allocations: 15.98 kB / 1.053 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.3031, allocations: 4 kB / 1.053 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.504e-05/0.3031, allocations: 11.94 kB / 1.053 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.063e-05/0.3032, allocations: 11.97 kB / 1.053 GB, free: 7.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.3032, allocations: 0 / 1.053 GB, free: 7.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.478e-05/0.3033, allocations: 31.97 kB / 1.053 GB, free: 7.738 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.3033, allocations: 7.938 kB / 1.053 GB, free: 7.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.259e-05/0.3033, allocations: 11.92 kB / 1.053 GB, free: 7.719 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.743e-05/0.3034, allocations: 27.89 kB / 1.053 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3035, allocations: 0 / 1.053 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.196e-06/0.3035, allocations: 0 / 1.053 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.3035, allocations: 7.938 kB / 1.053 GB, free: 7.684 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.0003774/0.3039, allocations: 331.6 kB / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3039, allocations: 8.625 kB / 1.054 GB, free: 7.301 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.3039, allocations: 38.75 kB / 1.054 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.949e-05/0.304, allocations: 4.922 kB / 1.054 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.3041, allocations: 160.7 kB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.3041, allocations: 8.375 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.3041, allocations: 384 / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.3042, allocations: 46.25 kB / 1.054 GB, free: 6.996 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3043, allocations: 3.938 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.3043, allocations: 4 kB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3043, allocations: 0 / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.73e-05/0.3043, allocations: 19.92 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001702/0.3045, allocations: 165.6 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.031e-05/0.3046, allocations: 42.56 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.427e-05/0.3047, allocations: 20.98 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.3048, allocations: 85.09 kB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.3048, allocations: 30.56 kB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.3048, allocations: 0 / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.001369/0.3062, allocations: 488.4 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.3062, allocations: 51.41 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.549e-05/0.3063, allocations: 97.86 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3063, allocations: 29.69 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.914e-05/0.3064, allocations: 88.08 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.988e-05/0.3064, allocations: 19.66 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.3064, allocations: 21.7 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.3066, allocations: 318.8 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.169e-05/0.3066, allocations: 12 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.58e-05/0.3066, allocations: 11.98 kB / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.639e-05/0.3067, allocations: 36.98 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.3067, allocations: 4 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001145/0.3068, allocations: 81.53 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3068, allocations: 4 kB / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.3069, allocations: 0 / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3069, allocations: 4 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.089e-05/0.307, allocations: 11.98 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.307, allocations: 4 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.522e-05/0.307, allocations: 0 / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.307, allocations: 0 / 1.056 GB, free: 5.156 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.423e-05/0.3071, allocations: 119.4 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.3071, allocations: 7.844 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.3073, allocations: 89.56 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3073, allocations: 3.938 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.3073, allocations: 0 / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3073, allocations: 0 / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.3075, allocations: 161.7 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3075, allocations: 0 / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.85e-05/0.3076, allocations: 23.92 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3076, allocations: 4 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3076, allocations: 4 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3076, allocations: 0 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3076, allocations: 0 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.3078, allocations: 113.4 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.3079, allocations: 88.98 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/0.3079, allocations: 4 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.688e-05/0.3079, allocations: 64 / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.285e-05/0.308, allocations: 11.98 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.308, allocations: 0 / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.388e-05/0.308, allocations: 79.28 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.308, allocations: 3.938 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002324/0.3083, allocations: 32 kB / 1.056 GB, free: 4.324 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 (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.0005896/0.3089, allocations: 0.6828 MB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001255/0.309, allocations: 43.91 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.309, allocations: 0 / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.976e-05/0.3091, allocations: 23.98 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.3092, allocations: 4 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.3103, allocations: 1.203 MB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.3106, allocations: 0.6806 MB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.653e-05/0.3107, allocations: 8.062 kB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.3107, allocations: 15.42 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3107, allocations: 0 / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01397/0.3247, allocations: 1.72 MB / 1.061 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.325, allocations: 233.8 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.435, allocations: 4 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,y_comp,y,ex,der(y_comp),der(y) Variables in the result:delta,der(x),der(y),der(y_comp),err,ex,time,x,y,y_comp