Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",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.0009333/0.0009333, allocations: 98.27 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.006037/0.006037, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.66/2.66, allocations: 462.6 MB / 0.7364 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003261, allocations: 12.03 kB / 0.9029 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2715, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck): time 0.001509/0.2731, allocations: 1.017 MB / 1.06 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001174/0.2743, allocations: 0.6467 MB / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.043e-05/0.2743, allocations: 4 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.584e-05/0.2744, allocations: 0 / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.782e-05/0.2744, allocations: 7.938 kB / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.2749, allocations: 91.62 kB / 1.061 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.984e-05/0.2749, allocations: 27.86 kB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.631e-05/0.275, allocations: 4 kB / 1.061 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.3e-05/0.275, allocations: 7.938 kB / 1.061 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.309e-05/0.2751, allocations: 19.91 kB / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.2751, allocations: 8 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000274/0.2754, allocations: 143.7 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.502e-05/0.2754, allocations: 7.969 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.933e-05/0.2755, allocations: 37.64 kB / 1.061 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.2757, allocations: 100.1 kB / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2757, allocations: 0 / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2757, allocations: 0 / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.526e-06/0.2757, allocations: 0 / 1.061 GB, free: 2.805 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000432/0.2761, allocations: 351.5 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.2762, allocations: 11.97 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.195e-05/0.2763, allocations: 38.75 kB / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004198/0.2767, allocations: 28.89 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.2768, allocations: 164.3 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.2768, allocations: 384 / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.2769, allocations: 4.375 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.2771, allocations: 58.22 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.2771, allocations: 3.938 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.2771, allocations: 4 kB / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2771, allocations: 0 / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.2773, allocations: 27.97 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001823/0.2775, allocations: 165.5 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.2778, allocations: 74.47 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.447e-05/0.2779, allocations: 24.94 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.2779, allocations: 0 / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.278, allocations: 38.56 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.278, allocations: 0 / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.003479/0.2814, allocations: 0.572 MB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.2815, allocations: 59.41 kB / 1.062 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.467e-05/0.2816, allocations: 97.78 kB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.2816, allocations: 29.7 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.833e-05/0.2816, allocations: 84.14 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.2817, allocations: 15.66 kB / 1.063 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.609e-05/0.2817, allocations: 21.7 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.2818, allocations: 310.8 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.282, allocations: 44.09 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.2821, allocations: 31.97 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.2824, allocations: 84.8 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.2824, allocations: 4 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003536/0.2828, allocations: 121.6 kB / 1.063 GB, free: 92 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2828, allocations: 6.031 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2828, allocations: 0 / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.2828, allocations: 4.328 kB / 1.063 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.283, allocations: 27.84 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.2831, allocations: 4 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.2832, allocations: 7.984 kB / 1.063 GB, free: 44 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.2832, allocations: 4 kB / 1.063 GB, free: 40 kB / 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 (7): * Single equations (assignments): 7 * 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 0.0001103/0.2834, allocations: 113.8 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.476e-05/0.2834, allocations: 11.92 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.953e-05/0.2835, allocations: 12.03 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2835, allocations: 8 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2835, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2835, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.2837, allocations: 183.7 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2837, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.2839, allocations: 23.91 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2839, allocations: 4 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.2839, allocations: 7.984 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2839, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2839, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005499/0.2845, allocations: 192.9 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.894e-05/0.2846, allocations: 85.08 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.2846, allocations: 3.984 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.2848, allocations: 8 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.653e-05/0.2848, allocations: 7.984 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.2848, allocations: 4 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.247e-05/0.2849, allocations: 79.34 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2849, allocations: 3.938 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000255/0.2851, allocations: 35.92 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * 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 (6): * Single equations (assignments): 6 * 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.0008809/0.286, allocations: 0.753 MB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003301/0.2864, allocations: 83.98 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2864, allocations: 4 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.2865, allocations: 47.89 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.2868, allocations: 8 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.2887, allocations: 1.365 MB / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.2889, allocations: 0.6848 MB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002272/0.2891, allocations: 32.02 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.365e-05/0.2892, allocations: 15.42 kB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.2892, allocations: 0 / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0121/0.3013, allocations: 2.255 MB / 1.069 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.3016, allocations: 265.6 kB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.051, allocations: 0 / 1.069 GB, free: 9.66 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-09 Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.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,y_comp Variables in the result:T,TMax,TMin,der(T),der(y),der(y_comp),err,time,y,y_comp