Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,tolerance=1e-09,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck") translateModel(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,tolerance=1e-09,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.332/1.332, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 176.8 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.904/1.904, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009297/0.0009299, allocations: 95.72 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003467, allocations: 11.69 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.217, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1681/0.3852, allocations: 132.9 MB / 1.03 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.3856, allocations: 87.94 kB / 1.03 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008657/0.3943, allocations: 2.849 MB / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.542e-06/0.3943, allocations: 0 / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.3943, allocations: 0 / 1.033 GB, free: 7.883 MB / 0.6823 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.0004414/0.3948, allocations: 363.1 kB / 1.033 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3948, allocations: 8.031 kB / 1.033 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000384/0.3952, allocations: 31.95 kB / 1.033 GB, free: 7.441 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.3953, allocations: 167 kB / 1.033 GB, free: 7.238 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.3953, allocations: 0 / 1.033 GB, free: 7.238 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.3954, allocations: 4 kB / 1.033 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.3955, allocations: 57.66 kB / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-06/0.3956, allocations: 0 / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3956, allocations: 0 / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.3956, allocations: 4 kB / 1.033 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.3957, allocations: 27.97 kB / 1.033 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001769/0.3959, allocations: 169.5 kB / 1.034 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.3962, allocations: 70.47 kB / 1.034 GB, free: 6.848 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.3962, allocations: 0 / 1.034 GB, free: 6.848 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.3963, allocations: 34.56 kB / 1.034 GB, free: 6.805 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.3963, allocations: 0 / 1.034 GB, free: 6.805 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.00373/0.4, allocations: 0.5838 MB / 1.034 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.4001, allocations: 59.33 kB / 1.034 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.172e-05/0.4001, allocations: 89 kB / 1.034 GB, free: 6.004 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.4002, allocations: 25.7 kB / 1.034 GB, free: 5.973 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.882e-05/0.4002, allocations: 80.14 kB / 1.035 GB, free: 5.891 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.4002, allocations: 23.66 kB / 1.035 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-06/0.4003, allocations: 0 / 1.035 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.4004, allocations: 324.7 kB / 1.035 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.4005, allocations: 39.97 kB / 1.035 GB, free: 5.504 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.4006, allocations: 39.97 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.4008, allocations: 35.97 kB / 1.035 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.4008, allocations: 0 / 1.035 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003365/0.4011, allocations: 133.5 kB / 1.035 GB, free: 5.293 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.4012, allocations: 4 kB / 1.035 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.4012, allocations: 0 / 1.035 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.4012, allocations: 64 / 1.035 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.4014, allocations: 39.83 kB / 1.035 GB, free: 5.25 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.4014, allocations: 4 kB / 1.035 GB, free: 5.246 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.4016, allocations: 4 kB / 1.035 GB, free: 5.242 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.4016, allocations: 7.984 kB / 1.035 GB, free: 5.234 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.938e-05/0.4017, allocations: 113.8 kB / 1.035 GB, free: 5.113 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.927e-05/0.4017, allocations: 4 kB / 1.035 GB, free: 5.109 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.836e-05/0.4018, allocations: 11.97 kB / 1.035 GB, free: 5.098 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.4018, allocations: 0 / 1.035 GB, free: 5.098 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4018, allocations: 0 / 1.035 GB, free: 5.098 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4018, allocations: 336 / 1.035 GB, free: 5.098 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.402, allocations: 188.3 kB / 1.035 GB, free: 4.863 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.402, allocations: 3.938 kB / 1.035 GB, free: 4.859 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.4023, allocations: 31.95 kB / 1.035 GB, free: 4.828 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.4023, allocations: 0 / 1.035 GB, free: 4.828 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.4023, allocations: 7.984 kB / 1.035 GB, free: 4.82 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4023, allocations: 4 kB / 1.035 GB, free: 4.816 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4023, allocations: 3.984 kB / 1.035 GB, free: 4.812 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005076/0.4028, allocations: 196.9 kB / 1.036 GB, free: 4.602 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-05/0.4029, allocations: 81.02 kB / 1.036 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.209e-05/0.4029, allocations: 4.031 kB / 1.036 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.4031, allocations: 7.984 kB / 1.036 GB, free: 4.492 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.208e-05/0.4031, allocations: 4 kB / 1.036 GB, free: 4.488 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.4032, allocations: 11.98 kB / 1.036 GB, free: 4.477 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.223e-05/0.4032, allocations: 79.34 kB / 1.036 GB, free: 4.398 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1e-07/0.4032, allocations: 0 / 1.036 GB, free: 4.398 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002479/0.4035, allocations: 32 kB / 1.036 GB, free: 4.367 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000218/0.4037, allocations: 143.1 kB / 1.036 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003098/0.404, allocations: 91.95 kB / 1.036 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.404, allocations: 0 / 1.036 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.4042, allocations: 43.95 kB / 1.036 GB, free: 4.086 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.4043, allocations: 15.89 kB / 1.036 GB, free: 4.07 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000619/0.4049, allocations: 175 kB / 1.036 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.4052, allocations: 0.6809 MB / 1.037 GB, free: 3.164 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0002344/0.4054, allocations: 35.81 kB / 1.037 GB, free: 3.129 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.655e-05/0.4055, allocations: 19.41 kB / 1.037 GB, free: 3.109 MB / 0.6823 GB Notification: Performance of SimCode: time 2.3e-07/0.4055, allocations: 0 / 1.037 GB, free: 3.109 MB / 0.6823 GB Notification: Performance of Templates: time 0.003671/0.4092, allocations: 1.46 MB / 1.038 GB, free: 1.691 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches