Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Examples.phi_pTX,fileNamePrefix="Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX",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.004493/0.004493, allocations: 101.3 kB / 15.73 MB, free: 6.449 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.001108/0.001108, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.74/2.74, allocations: 469.4 MB / 0.7421 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.89 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3095, allocations: 159.1 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX): time 0.002215/0.3117, allocations: 1.28 MB / 1.221 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00121/0.313, allocations: 0.8234 MB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.835e-05/0.313, allocations: 0 / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.806e-05/0.3131, allocations: 0 / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.094e-05/0.3131, allocations: 11.92 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004823/0.3136, allocations: 135.3 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.66e-05/0.3137, allocations: 27.91 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.589e-05/0.3137, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.691e-05/0.3138, allocations: 15.92 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.236e-05/0.3138, allocations: 11.94 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.3138, allocations: 0 / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003139/0.3141, allocations: 167.8 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.737e-05/0.3142, allocations: 7.984 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.3142, allocations: 15.88 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.3145, allocations: 115.7 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3145, allocations: 0 / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.675e-06/0.3145, allocations: 0 / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.3145, allocations: 3.938 kB / 1.222 GB, free: 11.98 MB / 0.9825 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.0004057/0.3149, allocations: 363.1 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.3149, allocations: 12.03 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.067e-05/0.315, allocations: 30.75 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.146e-05/0.315, allocations: 4.891 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.874e-05/0.3151, allocations: 172.4 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.625e-05/0.3152, allocations: 26.27 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-06/0.3152, allocations: 4.375 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.3153, allocations: 53.92 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-06/0.3153, allocations: 0 / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.3154, allocations: 0 / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.3154, allocations: 0 / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.581e-05/0.3155, allocations: 19.98 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.3156, allocations: 161.7 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.3158, allocations: 50.55 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.769e-05/0.3159, allocations: 12.86 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/0.3162, allocations: 182.3 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.3162, allocations: 46.42 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.282e-06/0.3162, allocations: 0 / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0002379/0.3165, allocations: 61.69 kB / 1.223 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.3165, allocations: 55.39 kB / 1.223 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.001e-05/0.3166, allocations: 93.86 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.3166, allocations: 29.7 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.42e-05/0.3166, allocations: 80.14 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.3167, allocations: 11.91 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.3167, allocations: 25.7 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.936e-05/0.3168, allocations: 310.8 kB / 1.224 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.458e-05/0.3169, allocations: 4 kB / 1.224 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.713e-05/0.3169, allocations: 19.92 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.503e-05/0.317, allocations: 32.78 kB / 1.224 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.317, allocations: 3.938 kB / 1.224 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001356/0.3172, allocations: 57.64 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.3172, allocations: 11.94 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3172, allocations: 0 / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.3172, allocations: 0 / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.842e-05/0.3173, allocations: 11.98 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.3173, allocations: 0 / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.262e-05/0.3173, allocations: 3.938 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-06/0.3173, allocations: 0 / 1.224 GB, free: 9.793 MB / 0.9825 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 (4): * Single equations (assignments): 4 * 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 6.923e-05/0.3174, allocations: 118.3 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.3174, allocations: 7.938 kB / 1.224 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.3176, allocations: 69.16 kB / 1.224 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3176, allocations: 0 / 1.224 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3176, allocations: 0 / 1.224 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3176, allocations: 0 / 1.224 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.3177, allocations: 161.7 kB / 1.224 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3177, allocations: 0 / 1.224 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.811e-05/0.3178, allocations: 4 kB / 1.224 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.3178, allocations: 3.938 kB / 1.224 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.3178, allocations: 4 kB / 1.224 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3178, allocations: 4 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3178, allocations: 0.5625 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001551/0.318, allocations: 89 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.3181, allocations: 93.06 kB / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.3181, allocations: 0 / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.042e-05/0.3181, allocations: 4 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.3182, allocations: 0 / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.3182, allocations: 12 kB / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.353e-05/0.3182, allocations: 79.27 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3182, allocations: 0 / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002348/0.3185, allocations: 35.88 kB / 1.225 GB, free: 9.02 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (4): * Single equations (assignments): 4 * 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.0004982/0.319, allocations: 0.6668 MB / 1.225 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001442/0.3191, allocations: 27.98 kB / 1.225 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3191, allocations: 0 / 1.225 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.951e-05/0.3192, allocations: 11.98 kB / 1.225 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.3194, allocations: 14.28 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000375/0.3198, allocations: 172.6 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.32, allocations: 0.6807 MB / 1.226 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.95e-05/0.3201, allocations: 11.94 kB / 1.226 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.806e-05/0.3201, allocations: 11.44 kB / 1.226 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.3201, allocations: 0 / 1.226 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01781/0.3379, allocations: 1.94 MB / 1.228 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/7.778, allocations: 16.34 kB / 1.228 GB, free: 5.492 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe >> ../files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX.fmu > Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches