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.007773/0.007779, allocations: 100.7 kB / 15.73 MB, free: 6.031 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.001829/0.00183, allocations: 187.6 kB / 16.67 MB, free: 5.965 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.381/1.381, 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.37/2.37, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 64.16 kB / 0.9504 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2612, allocations: 140.4 MB / 1.087 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck): time 0.002339/0.2636, allocations: 1.278 MB / 1.089 GB, free: 0.668 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001056/0.2647, allocations: 0.6335 MB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.09e-05/0.2647, allocations: 4 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.107e-05/0.2647, allocations: 0 / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.49e-05/0.2648, allocations: 19.84 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.2654, allocations: 107.5 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.264e-05/0.2655, allocations: 27.91 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.876e-05/0.2655, allocations: 0 / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.762e-05/0.2655, allocations: 12 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.106e-05/0.2656, allocations: 11.92 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.2656, allocations: 0 / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002939/0.2659, allocations: 143.8 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.343e-05/0.266, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.2e-05/0.266, allocations: 19.92 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002274/0.2662, allocations: 98.64 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2663, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2663, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2663, allocations: 0 / 1.09 GB, free: 15.59 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.0005045/0.2668, allocations: 356.3 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.2668, allocations: 12.03 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.836e-05/0.2669, allocations: 30.75 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004345/0.2673, allocations: 28.91 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.2675, allocations: 168.3 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.2675, allocations: 4.375 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.2675, allocations: 8.375 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.2677, allocations: 54.22 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2677, allocations: 7.875 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.2678, allocations: 4 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.2678, allocations: 0 / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.2679, allocations: 35.91 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001991/0.2681, allocations: 157.7 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/0.2685, allocations: 70.58 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.657e-05/0.2686, allocations: 28.94 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.2686, allocations: 0 / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.2686, allocations: 38.48 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.2687, allocations: 0 / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.003387/0.272, allocations: 0.5759 MB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.2721, allocations: 51.41 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.14e-05/0.2722, allocations: 97.86 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2722, allocations: 25.7 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.2722, allocations: 88.25 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.079e-05/0.2723, allocations: 23.66 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-05/0.2724, allocations: 25.69 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.2725, allocations: 314.8 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.2727, allocations: 39.97 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.2728, allocations: 39.97 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.2731, allocations: 84.89 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.2731, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003639/0.2735, allocations: 125.6 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.2735, allocations: 8 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2735, allocations: 0 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.2736, allocations: 3.938 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.2738, allocations: 19.97 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.2738, allocations: 4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.2739, allocations: 7.984 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.274, allocations: 8 kB / 1.092 GB, free: 12.8 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.805e-05/0.2741, allocations: 117.8 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.2741, allocations: 3.938 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.556e-05/0.2742, allocations: 15.91 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2742, allocations: 4 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2742, allocations: 0 / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2742, allocations: 0 / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.2744, allocations: 195.4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2744, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.2746, allocations: 23.91 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2746, allocations: 4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.2746, allocations: 3.984 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2746, allocations: 64 / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2746, allocations: 4 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005501/0.2752, allocations: 189 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.2752, allocations: 81.05 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.2753, allocations: 8 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.2755, allocations: 16.02 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.2755, allocations: 3.984 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.2755, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.275e-05/0.2756, allocations: 75.28 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.71e-07/0.2756, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002491/0.2758, allocations: 31.98 kB / 1.093 GB, free: 11.93 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.0009156/0.2767, allocations: 0.7491 MB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003468/0.2771, allocations: 91.86 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2771, allocations: 0 / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.2773, allocations: 51.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.0002292/0.2775, allocations: 6.625 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.002048/0.2796, allocations: 1.363 MB / 1.095 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.2798, allocations: 0.6807 MB / 1.096 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.00017/0.28, allocations: 32.25 kB / 1.096 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.868e-05/0.2801, allocations: 19.42 kB / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of SimCode: time 4.3e-07/0.2801, allocations: 0 / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.3007, allocations: 2.502 MB / 1.098 GB, free: 6.496 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.328/7.628, allocations: 16.25 kB / 1.098 GB, free: 6.484 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