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.001309/0.001309, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.258/1.258, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.649/2.649, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 67.06 kB / 0.8992 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2692, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001812/0.271, allocations: 0.6166 MB / 1.053 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004194/0.2715, allocations: 163.4 kB / 1.054 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.358e-05/0.2715, allocations: 0 / 1.054 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.2715, allocations: 4 kB / 1.054 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 1.91e-05/0.2716, allocations: 3.938 kB / 1.054 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.2719, allocations: 39.91 kB / 1.054 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.967e-05/0.2719, allocations: 15.98 kB / 1.054 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.272, allocations: 3.984 kB / 1.054 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.078e-05/0.272, allocations: 7.938 kB / 1.054 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.2721, allocations: 8 kB / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.2721, allocations: 0 / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.854e-05/0.2722, allocations: 35.95 kB / 1.054 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.444e-05/0.2722, allocations: 3.984 kB / 1.054 GB, free: 7.348 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.293e-05/0.2722, allocations: 15.94 kB / 1.054 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.659e-05/0.2723, allocations: 27.89 kB / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2723, allocations: 0 / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.183e-06/0.2723, allocations: 0 / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.2724, allocations: 7.984 kB / 1.054 GB, free: 7.297 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.0003646/0.2727, allocations: 327.6 kB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2728, allocations: 8.625 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.2728, allocations: 34.75 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.2729, allocations: 0.9375 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.273, allocations: 168.6 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.273, allocations: 8.375 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.273, allocations: 384 / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.2731, allocations: 42.25 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2731, allocations: 3.938 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.2731, allocations: 3.938 kB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.2732, allocations: 11.97 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.38e-05/0.2732, allocations: 12 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.2734, allocations: 161.5 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.689e-05/0.2735, allocations: 50.56 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.848e-05/0.2735, allocations: 20.97 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.2736, allocations: 81.11 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.2737, allocations: 34.56 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.2737, allocations: 0 / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.001293/0.275, allocations: 484.2 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.275, allocations: 63.34 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.58e-05/0.2751, allocations: 93.86 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.2751, allocations: 25.7 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.893e-05/0.2752, allocations: 80.14 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.555e-05/0.2752, allocations: 35.56 kB / 1.055 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.2752, allocations: 17.72 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.324e-05/0.2753, allocations: 314.8 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.88e-05/0.2754, allocations: 16.11 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.397e-05/0.2754, allocations: 12 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.819e-05/0.2755, allocations: 40.84 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.2755, allocations: 0 / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001065/0.2756, allocations: 65.62 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2756, allocations: 4 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.2756, allocations: 7.938 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.2756, allocations: 0 / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.818e-05/0.2757, allocations: 8 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.2757, allocations: 4 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.597e-05/0.2758, allocations: 11.98 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.2758, allocations: 0 / 1.056 GB, free: 4.77 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 7.572e-05/0.2759, allocations: 113.8 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.2759, allocations: 7.844 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001646/0.2761, allocations: 89.86 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2761, allocations: 0 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2761, allocations: 256 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2761, allocations: 4 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.2762, allocations: 169.7 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2762, allocations: 4 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.823e-05/0.2763, allocations: 11.94 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2763, allocations: 0 / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.2763, allocations: 4 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2763, allocations: 0 / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2763, allocations: 0 / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.2765, allocations: 117 kB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.866e-05/0.2766, allocations: 97.03 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.2766, allocations: 0 / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.349e-05/0.2766, allocations: 3.938 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.839e-05/0.2767, allocations: 8 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.2767, allocations: 4 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.461e-05/0.2767, allocations: 79.27 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.553e-06/0.2767, allocations: 0 / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002263/0.277, allocations: 31.94 kB / 1.057 GB, free: 3.938 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.0005157/0.2775, allocations: 0.6867 MB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001135/0.2776, allocations: 35.98 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2776, allocations: 0 / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.851e-05/0.2777, allocations: 27.92 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.2778, allocations: 4 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.2788, allocations: 1.2 MB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.2791, allocations: 0.6807 MB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.447e-05/0.2791, allocations: 4.625 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.57e-05/0.2792, allocations: 14.56 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.2792, allocations: 4 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.2987, allocations: 1.797 MB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.171/7.469, allocations: 14.02 kB / 1.061 GB, free: 15.46 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