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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="Buildings_10_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.002313/0.002313, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002049/0.00205, allocations: 188.8 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.368/1.368, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.506/2.506, allocations: 437.1 MB / 0.7101 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 0.8689 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6423/0.6437, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.0019/0.6456, allocations: 0.6668 MB / 1.018 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003978/0.646, allocations: 159.5 kB / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.067e-05/0.6461, allocations: 0 / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.6461, allocations: 0 / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.099e-05/0.6461, allocations: 0 / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.6465, allocations: 35.91 kB / 1.018 GB, free: 1.867 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.644e-05/0.6465, allocations: 11.98 kB / 1.018 GB, free: 1.855 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.725e-05/0.6466, allocations: 0 / 1.018 GB, free: 1.855 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.339e-05/0.6466, allocations: 11.94 kB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.596e-05/0.6467, allocations: 11.98 kB / 1.018 GB, free: 1.832 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/0.6467, allocations: 0 / 1.018 GB, free: 1.832 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.206e-05/0.6468, allocations: 35.95 kB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.682e-05/0.6468, allocations: 4 kB / 1.018 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.222e-05/0.6468, allocations: 11.88 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.791e-05/0.6469, allocations: 35.88 kB / 1.018 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.6469, allocations: 0 / 1.018 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.823e-06/0.6469, allocations: 0 / 1.018 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.6469, allocations: 0 / 1.018 GB, free: 1.746 MB / 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.0003945/0.6473, allocations: 331.5 kB / 1.018 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.6474, allocations: 12.03 kB / 1.018 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.6474, allocations: 34.75 kB / 1.018 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.6475, allocations: 4.938 kB / 1.018 GB, free: 1.312 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.6476, allocations: 166.6 kB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.6476, allocations: 4.375 kB / 1.018 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.6476, allocations: 4.375 kB / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.6478, allocations: 46.19 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.6478, allocations: 3.938 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.6478, allocations: 4 kB / 1.018 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.6478, allocations: 4 kB / 1.018 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.308e-05/0.6478, allocations: 11.98 kB / 1.018 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001676/0.648, allocations: 161.7 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 8.591e-05/0.6481, allocations: 42.56 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.41e-05/0.6482, allocations: 20.92 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.6483, allocations: 85.09 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.6483, allocations: 34.56 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.6483, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of matching and sorting (n=7): time 0.001234/0.6495, allocations: 496.3 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.6496, allocations: 51.41 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.31e-05/0.6497, allocations: 93.86 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.6497, allocations: 29.64 kB / 1.019 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.205e-05/0.6497, allocations: 88.12 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.6498, allocations: 19.84 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/0.6498, allocations: 17.72 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.6499, allocations: 318.8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.827e-05/0.6499, allocations: 16 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.135e-05/0.65, allocations: 19.98 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.018e-05/0.65, allocations: 32.86 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.65, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001043/0.6502, allocations: 77.61 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.6502, allocations: 4 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.6502, allocations: 4 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.6502, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.854e-05/0.6503, allocations: 15.98 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.6503, allocations: 3.938 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.647e-05/0.6503, allocations: 7.984 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.6503, allocations: 0 / 1.02 GB, free: 15.21 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.6504, allocations: 113.8 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.6504, allocations: 3.938 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.6506, allocations: 97.47 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.6506, allocations: 0 / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.6506, allocations: 3.938 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.6506, allocations: 0 / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.6508, allocations: 157.7 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.6508, allocations: 0 / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.513e-05/0.6509, allocations: 27.86 kB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.6509, allocations: 0 / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.6509, allocations: 0 / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.6509, allocations: 4 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.6509, allocations: 4 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001667/0.6511, allocations: 109.1 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.54e-05/0.6511, allocations: 81.05 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.6511, allocations: 8.031 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.404e-05/0.6512, allocations: 0 / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.6512, allocations: 11.92 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.6512, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.857e-05/0.6512, allocations: 87.28 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6512, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00021/0.6515, allocations: 28 kB / 1.021 GB, free: 14.38 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 (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.0005076/0.652, allocations: 0.683 MB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001223/0.6521, allocations: 48.14 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6521, allocations: 4 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.523e-05/0.6522, allocations: 27.92 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001478/0.6523, allocations: 4.75 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009581/0.6533, allocations: 1.196 MB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.6535, allocations: 0.6807 MB / 1.023 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.639e-05/0.6535, allocations: 8 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.6536, allocations: 15.42 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6536, allocations: 0 / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03692/0.6905, allocations: 1.713 MB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002662/0.6908, allocations: 236.2 kB / 1.025 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/2.469, allocations: 0 / 1.025 GB, free: 9.781 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.fmu > 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) "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