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: "" <> 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.0009644/0.0009644, allocations: 94.83 kB / 15.36 MB, free: 0.7344 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.007223/0.007223, allocations: 176 kB / 16.27 MB, free: 6.684 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.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.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.566/2.566, allocations: 437.8 MB / 0.7121 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003357, allocations: 8 kB / 0.873 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6371/0.6375, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.0007981/0.6384, allocations: 341.4 kB / 1.023 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0004968/0.6389, allocations: 163.5 kB / 1.024 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.768e-05/0.6389, allocations: 0 / 1.024 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.577e-05/0.6389, allocations: 0 / 1.024 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.291e-05/0.639, allocations: 4 kB / 1.024 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.6393, allocations: 27.84 kB / 1.024 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.566e-05/0.6394, allocations: 15.81 kB / 1.024 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.6394, allocations: 7.938 kB / 1.024 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.658e-05/0.6395, allocations: 7.984 kB / 1.024 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.6395, allocations: 7.938 kB / 1.024 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.6396, allocations: 4 kB / 1.024 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.211e-05/0.6397, allocations: 31.95 kB / 1.024 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.917e-05/0.6397, allocations: 7.984 kB / 1.024 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.6397, allocations: 29.7 kB / 1.024 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.6398, allocations: 35.89 kB / 1.024 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6399, allocations: 4 kB / 1.024 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6399, allocations: 0 / 1.024 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.6399, allocations: 0 / 1.024 GB, free: 15.15 MB / 0.7794 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.0003922/0.6403, allocations: 323.5 kB / 1.024 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.6403, allocations: 8.031 kB / 1.024 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.133e-05/0.6404, allocations: 42.73 kB / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.6404, allocations: 4.938 kB / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.6405, allocations: 162.6 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.6406, allocations: 4.375 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/0.6406, allocations: 4.375 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.6407, allocations: 42.25 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.6407, allocations: 7.875 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.6407, allocations: 4 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.6408, allocations: 0 / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.487e-05/0.6408, allocations: 11.98 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001698/0.641, allocations: 157.7 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.471e-05/0.6411, allocations: 62.42 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.732e-05/0.6411, allocations: 20.97 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.6412, allocations: 81.11 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.6413, allocations: 34.5 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.6413, allocations: 0 / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.001324/0.6426, allocations: 492.4 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.6427, allocations: 55.41 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.05e-05/0.6427, allocations: 97.84 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.6428, allocations: 25.7 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.6428, allocations: 84.14 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/0.6429, allocations: 23.61 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.908e-05/0.6429, allocations: 17.7 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.643, allocations: 314.8 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.013e-05/0.6431, allocations: 12.12 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.251e-05/0.6431, allocations: 15.98 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.965e-05/0.6432, allocations: 40.8 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.6432, allocations: 0 / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001197/0.6433, allocations: 65.62 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.6433, allocations: 4 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.6433, allocations: 4 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.6433, allocations: 0 / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.611e-05/0.6434, allocations: 15.98 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.6434, allocations: 0 / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.572e-05/0.6435, allocations: 8 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-06/0.6435, allocations: 0 / 1.026 GB, free: 12.63 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 9.097e-05/0.6436, allocations: 113.8 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.6436, allocations: 7.938 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001744/0.6438, allocations: 97.75 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.6438, allocations: 0 / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.6438, allocations: 0 / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.6438, allocations: 0 / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.644, allocations: 165.7 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.644, allocations: 4 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.268e-05/0.6441, allocations: 19.86 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.6441, allocations: 7.938 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.6441, allocations: 0 / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-06/0.6441, allocations: 0 / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.6441, allocations: 0 / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.6443, allocations: 113.1 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.6443, allocations: 89.14 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.6443, allocations: 0 / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.157e-05/0.6444, allocations: 0 / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.394e-05/0.6444, allocations: 11.98 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.6444, allocations: 4 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.815e-05/0.6445, allocations: 75.28 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6445, allocations: 3.938 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002162/0.6447, allocations: 24 kB / 1.027 GB, free: 11.8 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.0005907/0.6453, allocations: 0.6944 MB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001128/0.6454, allocations: 39.92 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.6454, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.123e-05/0.6455, allocations: 23.98 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.6456, allocations: 0.5625 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.6468, allocations: 1.203 MB / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.647, allocations: 0.6809 MB / 1.029 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.659e-05/0.6471, allocations: 8.562 kB / 1.029 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.687e-05/0.6471, allocations: 15.44 kB / 1.029 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6471, allocations: 0 / 1.029 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01149/0.6586, allocations: 1.606 MB / 1.031 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002918/0.659, allocations: 234.6 kB / 1.031 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/2.346, allocations: 0 / 1.031 GB, free: 7.32 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