Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="Buildings_10_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.009078/0.009078, allocations: 101 kB / 15.73 MB, free: 6.043 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.001564/0.001564, allocations: 186.9 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.736/2.736, allocations: 437 MB / 0.7105 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2829, allocations: 151.6 MB / 1.166 GB, free: 7.305 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck): time 0.002154/0.2851, allocations: 1.286 MB / 1.167 GB, free: 6.004 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.2861, allocations: 0.6476 MB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.871e-05/0.2861, allocations: 0 / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.2862, allocations: 0 / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.55e-05/0.2862, allocations: 3.938 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.2866, allocations: 107.5 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.795e-05/0.2867, allocations: 23.92 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.16e-05/0.2868, allocations: 8 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.245e-05/0.2868, allocations: 11.92 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.2869, allocations: 11.98 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.2869, allocations: 4 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002731/0.2872, allocations: 143.7 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.493e-05/0.2872, allocations: 8 kB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.632e-05/0.2872, allocations: 7.938 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.2874, allocations: 102.2 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2874, allocations: 0 / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2874, allocations: 0 / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.2874, allocations: 0 / 1.168 GB, free: 4.934 MB / 0.92 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.0004319/0.2879, allocations: 356.3 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2879, allocations: 8.031 kB / 1.169 GB, free: 4.527 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.227e-05/0.288, allocations: 34.75 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004202/0.2884, allocations: 32.8 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.2885, allocations: 164.4 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.2885, allocations: 4.375 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.116e-05/0.2885, allocations: 384 / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.2887, allocations: 62.16 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2888, allocations: 3.938 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.2888, allocations: 3.984 kB / 1.169 GB, free: 4.176 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.2888, allocations: 4 kB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.2889, allocations: 23.98 kB / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001642/0.2891, allocations: 169.7 kB / 1.169 GB, free: 3.934 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.2894, allocations: 62.58 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.518e-05/0.2895, allocations: 32.81 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.2895, allocations: 4 kB / 1.169 GB, free: 3.824 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.2896, allocations: 34.56 kB / 1.169 GB, free: 3.781 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.2896, allocations: 3.938 kB / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.003553/0.2931, allocations: 0.5838 MB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.2932, allocations: 51.41 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.744e-05/0.2932, allocations: 93.86 kB / 1.17 GB, free: 2.977 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.2933, allocations: 29.7 kB / 1.17 GB, free: 2.941 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.2933, allocations: 80.14 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.2934, allocations: 23.64 kB / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.045e-05/0.2934, allocations: 21.7 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.2935, allocations: 331 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.2937, allocations: 31.97 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.2938, allocations: 39.97 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.2941, allocations: 88.75 kB / 1.171 GB, free: 2.316 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.2941, allocations: 0 / 1.171 GB, free: 2.316 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003525/0.2945, allocations: 121.5 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.2945, allocations: 4 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2945, allocations: 0 / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2945, allocations: 4 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.2947, allocations: 27.97 kB / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.2948, allocations: 0 / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.2949, allocations: 4 kB / 1.171 GB, free: 2.152 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.2949, allocations: 7.984 kB / 1.171 GB, free: 2.145 MB / 0.92 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.196e-05/0.295, allocations: 113.8 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.71e-05/0.2951, allocations: 11.84 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.236e-05/0.2951, allocations: 15.91 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2951, allocations: 0 / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2952, allocations: 0 / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2952, allocations: 3.984 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.2953, allocations: 175.8 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.2953, allocations: 3.984 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.2956, allocations: 31.91 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.2956, allocations: 0 / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.2956, allocations: 4 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.2956, allocations: 4 kB / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2956, allocations: 0 / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005311/0.2961, allocations: 201 kB / 1.171 GB, free: 1.508 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.2962, allocations: 81.05 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.2962, allocations: 0 / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.2964, allocations: 12.02 kB / 1.172 GB, free: 1.398 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.625e-05/0.2965, allocations: 8.062 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.2965, allocations: 3.984 kB / 1.172 GB, free: 1.387 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.473e-05/0.2965, allocations: 79.28 kB / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.2965, allocations: 0 / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002682/0.2968, allocations: 36 kB / 1.172 GB, free: 1.273 MB / 0.92 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.0008376/0.2976, allocations: 0.7529 MB / 1.172 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003373/0.298, allocations: 91.97 kB / 1.172 GB, free: 412 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.298, allocations: 0 / 1.172 GB, free: 412 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.2982, allocations: 47.95 kB / 1.173 GB, free: 364 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.2984, allocations: 4 kB / 1.173 GB, free: 360 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.3003, allocations: 1.356 MB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.3006, allocations: 0.6823 MB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001606/0.3007, allocations: 31.97 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.52e-05/0.3008, allocations: 19.41 kB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/0.3008, allocations: 0 / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3215, allocations: 2.487 MB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/7.996, allocations: 15.91 kB / 1.177 GB, free: 11.85 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-09 Buildings_10_Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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