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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.000955/0.0009552, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.007425/0.007425, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.302/1.302, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.608/2.608, allocations: 462.7 MB / 0.7364 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003452, allocations: 8.562 kB / 0.9029 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.289, allocations: 159.6 MB / 1.059 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX): time 0.001514/0.2905, allocations: 1.009 MB / 1.06 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2918, allocations: 0.8413 MB / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.392e-05/0.2918, allocations: 0 / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.436e-05/0.2918, allocations: 0 / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.381e-05/0.2919, allocations: 11.92 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003907/0.2923, allocations: 115.5 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.111e-05/0.2923, allocations: 19.94 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.343e-05/0.2924, allocations: 7.984 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.166e-05/0.2925, allocations: 11.94 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.058e-05/0.2925, allocations: 11.97 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.2925, allocations: 7.938 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.2928, allocations: 167.7 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.415e-05/0.2929, allocations: 4 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.805e-05/0.2929, allocations: 37.62 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002136/0.2931, allocations: 120 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2931, allocations: 0 / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2931, allocations: 0 / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.2932, allocations: 0 / 1.061 GB, free: 2.504 MB / 0.8106 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.000393/0.2936, allocations: 359.4 kB / 1.061 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2936, allocations: 15.97 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.638e-05/0.2936, allocations: 30.75 kB / 1.061 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.2937, allocations: 8.938 kB / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.2938, allocations: 168.3 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.002e-05/0.2939, allocations: 34.27 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.266e-06/0.2939, allocations: 384 / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.294, allocations: 46 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.294, allocations: 0 / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.294, allocations: 0 / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.294, allocations: 4 kB / 1.062 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.098e-05/0.2941, allocations: 15.92 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.2943, allocations: 165.6 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.2945, allocations: 42.61 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.867e-05/0.2946, allocations: 20.94 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002579/0.2948, allocations: 182.2 kB / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.2949, allocations: 42.5 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.253e-06/0.2949, allocations: 0 / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0002332/0.2951, allocations: 69.61 kB / 1.062 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.095e-05/0.2951, allocations: 51.41 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.979e-05/0.2952, allocations: 93.86 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.2952, allocations: 29.69 kB / 1.062 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.562e-05/0.2953, allocations: 80.14 kB / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.2953, allocations: 19.81 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.035e-05/0.2953, allocations: 9.719 kB / 1.062 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.177e-05/0.2954, allocations: 310.8 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.973e-05/0.2955, allocations: 15.98 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.787e-05/0.2955, allocations: 4 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.976e-05/0.2956, allocations: 37.19 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2956, allocations: 4 kB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001273/0.2957, allocations: 61.66 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.2958, allocations: 7.938 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2958, allocations: 0 / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.2958, allocations: 4 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.948e-05/0.2959, allocations: 8 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.2959, allocations: 0 / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.108e-05/0.2959, allocations: 7.938 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.2959, allocations: 0 / 1.063 GB, free: 324 kB / 0.8106 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.522e-05/0.296, allocations: 109.8 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.163e-05/0.296, allocations: 11.94 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001768/0.2962, allocations: 69.02 kB / 1.063 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.2962, allocations: 4 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2962, allocations: 0 / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.2962, allocations: 0 / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.2963, allocations: 157.7 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.2963, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.453e-05/0.2964, allocations: 8 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.2964, allocations: 7.922 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.2964, allocations: 4 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.2964, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.2964, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001411/0.2965, allocations: 81.06 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-05/0.2966, allocations: 89.03 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.2966, allocations: 4 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.564e-05/0.2967, allocations: 3.938 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.165e-05/0.2967, allocations: 11.98 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.7e-06/0.2967, allocations: 4 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.16e-05/0.2968, allocations: 79.28 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2968, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002149/0.297, allocations: 35.94 kB / 1.064 GB, free: 15.55 MB / 0.8262 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.0004892/0.2975, allocations: 0.6669 MB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000131/0.2976, allocations: 23.98 kB / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2976, allocations: 0 / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.271e-05/0.2977, allocations: 19.98 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.2979, allocations: 4 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003687/0.2983, allocations: 192.6 kB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.2985, allocations: 0.677 MB / 1.065 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.86e-05/0.2985, allocations: 7.859 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.631e-05/0.2986, allocations: 11.44 kB / 1.065 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2986, allocations: 4 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0175/0.3161, allocations: 1.714 MB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002168/0.3164, allocations: 222.7 kB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/1.989, allocations: 2.031 kB / 1.067 GB, free: 12.02 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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