Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="Buildings_9_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.00557/0.00557, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001236/0.001237, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.413/2.413, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 63.81 kB / 0.9504 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2802, allocations: 140.4 MB / 1.087 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck): time 0.003141/0.2834, allocations: 1.284 MB / 1.089 GB, free: 0.668 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.2845, allocations: 0.6374 MB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.824e-05/0.2846, allocations: 0 / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.862e-05/0.2846, allocations: 3.938 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.524e-05/0.2847, allocations: 7.922 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000631/0.2853, allocations: 111.5 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.606e-05/0.2854, allocations: 19.94 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.386e-05/0.2855, allocations: 11.97 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.855e-05/0.2855, allocations: 8 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.372e-05/0.2856, allocations: 11.92 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.2856, allocations: 8 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000335/0.286, allocations: 139.8 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.484e-05/0.286, allocations: 4 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.689e-05/0.286, allocations: 11.94 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.2863, allocations: 102.6 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2863, allocations: 0 / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2863, allocations: 0 / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.2e-05/0.2863, allocations: 0 / 1.09 GB, free: 15.6 MB / 0.8575 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.0005278/0.2869, allocations: 360.3 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2869, allocations: 8.031 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.467e-05/0.287, allocations: 34.73 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004111/0.2874, allocations: 24.91 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.2875, allocations: 172.3 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.2875, allocations: 384 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.55e-05/0.2875, allocations: 4.375 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.2877, allocations: 66.14 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.2878, allocations: 3.938 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.2878, allocations: 0 / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2878, allocations: 7.938 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.2879, allocations: 23.97 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.2881, allocations: 161.7 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.2884, allocations: 66.58 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.187e-05/0.2885, allocations: 28.94 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.2885, allocations: 0 / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.2886, allocations: 38.5 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2886, allocations: 4 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.003436/0.292, allocations: 0.5642 MB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2921, allocations: 51.41 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.219e-05/0.2921, allocations: 101.9 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.2922, allocations: 25.7 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.824e-05/0.2922, allocations: 80.14 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.2922, allocations: 31.62 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.2923, allocations: 25.7 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2924, allocations: 318.8 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.2926, allocations: 40.09 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.2927, allocations: 36.03 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.293, allocations: 92.89 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.293, allocations: 4 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00034/0.2933, allocations: 121.6 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.2933, allocations: 4 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2933, allocations: 3.938 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.2934, allocations: 0 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.2936, allocations: 23.97 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.269e-06/0.2936, allocations: 4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.2938, allocations: 7.984 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.2938, allocations: 4 kB / 1.092 GB, free: 12.81 MB / 0.8575 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 8.493e-05/0.2939, allocations: 113.8 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.2939, allocations: 7.938 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.894e-05/0.294, allocations: 19.89 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.294, allocations: 336 / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.294, allocations: 0 / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.294, allocations: 0 / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.2942, allocations: 199.4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2942, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.2944, allocations: 27.91 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2944, allocations: 4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.2944, allocations: 0 / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2944, allocations: 4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2945, allocations: 3.984 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005132/0.295, allocations: 189 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.407e-05/0.295, allocations: 81.05 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.295, allocations: 4.031 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.2952, allocations: 7.984 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.2953, allocations: 8 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.2953, allocations: 3.984 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.347e-05/0.2953, allocations: 83.34 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2953, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002383/0.2956, allocations: 28 kB / 1.093 GB, free: 11.94 MB / 0.8575 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.0008583/0.2964, allocations: 0.7569 MB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003399/0.2968, allocations: 87.86 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2968, allocations: 4.062 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.297, allocations: 43.95 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.2972, allocations: 12.95 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.2992, allocations: 1.356 MB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.2994, allocations: 0.6846 MB / 1.096 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001511/0.2996, allocations: 23.94 kB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.947e-05/0.2997, allocations: 27.41 kB / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.2997, allocations: 0 / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/0.3202, allocations: 2.489 MB / 1.098 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.417/7.737, allocations: 4.188 kB / 1.098 GB, free: 6.512 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-09 Buildings_9_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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[8]=-0.972000 " 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