Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Examples.phi_pTX,fileNamePrefix="Buildings_10_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="Buildings_10_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.007886/0.007886, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002053/0.002053, allocations: 195.2 kB / 16.67 MB, free: 5.52 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.501/2.501, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001408, allocations: 63.91 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8879/0.8893, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX): time 0.002315/0.8917, allocations: 1.268 MB / 1.167 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.893, allocations: 0.8326 MB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.792e-05/0.893, allocations: 0 / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.028e-05/0.8931, allocations: 3.938 kB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.178e-05/0.8931, allocations: 3.938 kB / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004995/0.8936, allocations: 123.5 kB / 1.168 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.2e-05/0.8937, allocations: 31.86 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.8938, allocations: 7.969 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.046e-05/0.8938, allocations: 15.94 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.926e-05/0.8939, allocations: 7.984 kB / 1.168 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.8939, allocations: 0 / 1.168 GB, free: 1.492 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003415/0.8942, allocations: 167.8 kB / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.781e-05/0.8943, allocations: 4 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.251e-05/0.8943, allocations: 7.938 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.8946, allocations: 129.9 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.8946, allocations: 0 / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.072e-06/0.8946, allocations: 4 kB / 1.169 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.8946, allocations: 0 / 1.169 GB, free: 1.188 MB / 0.8887 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.0004162/0.895, allocations: 363.4 kB / 1.169 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.8951, allocations: 8.922 kB / 1.169 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.249e-05/0.8951, allocations: 46.69 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.908e-05/0.8951, allocations: 0.9375 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.8953, allocations: 164.4 kB / 1.169 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.278e-05/0.8953, allocations: 30.27 kB / 1.169 GB, free: 496 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.8954, allocations: 4.375 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.8955, allocations: 50 kB / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.8955, allocations: 0 / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.8955, allocations: 0 / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.8955, allocations: 3.938 kB / 1.169 GB, free: 432 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.326e-05/0.8956, allocations: 19.98 kB / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001589/0.8958, allocations: 157.6 kB / 1.169 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.896, allocations: 50.61 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.751e-05/0.8961, allocations: 16.94 kB / 1.17 GB, free: 124 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000304/0.8964, allocations: 178.2 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.8964, allocations: 42.48 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=4): time 1.452e-06/0.8964, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4): time 0.0002584/0.8967, allocations: 69.61 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.8967, allocations: 55.41 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.373e-05/0.8968, allocations: 97.86 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.8968, allocations: 33.62 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.689e-05/0.8969, allocations: 80.14 kB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.8969, allocations: 7.812 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.8969, allocations: 17.72 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.8971, allocations: 310.8 kB / 1.17 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.076e-05/0.8971, allocations: 19.98 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.917e-05/0.8972, allocations: 4 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.742e-05/0.8973, allocations: 36.78 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.8973, allocations: 0 / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001448/0.8974, allocations: 57.58 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.8974, allocations: 7.938 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.8975, allocations: 4 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.8975, allocations: 4 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.227e-05/0.8975, allocations: 4 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.8975, allocations: 0 / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.423e-05/0.8976, allocations: 7.984 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.8976, allocations: 0 / 1.171 GB, free: 15 MB / 0.9044 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 7.534e-05/0.8977, allocations: 117.8 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.8977, allocations: 3.938 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.8979, allocations: 73.09 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.8979, allocations: 4 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.8979, allocations: 0 / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.8979, allocations: 0 / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.8981, allocations: 153.7 kB / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.8981, allocations: 0 / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.251e-05/0.8981, allocations: 11.98 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.8981, allocations: 3.938 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.8982, allocations: 0 / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.8982, allocations: 4 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.8982, allocations: 4 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.8983, allocations: 85.62 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.317e-05/0.8984, allocations: 96.88 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.8984, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.032e-05/0.8985, allocations: 4 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.8985, allocations: 4.031 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-06/0.8985, allocations: 3.984 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.631e-05/0.8986, allocations: 83.28 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8986, allocations: 4 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002431/0.8988, allocations: 31.98 kB / 1.171 GB, free: 14.21 MB / 0.9044 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.0005837/0.8994, allocations: 0.6656 MB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001582/0.8996, allocations: 31.92 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8996, allocations: 0 / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.084e-05/0.8997, allocations: 11.98 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.8999, allocations: 8 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000441/0.9004, allocations: 168.6 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.9007, allocations: 0.6768 MB / 1.173 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.185e-05/0.9007, allocations: 8 kB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.379e-05/0.9007, allocations: 15.44 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.9008, allocations: 0 / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.9201, allocations: 1.946 MB / 1.175 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.89/8.81, allocations: 9.516 kB / 1.175 GB, free: 10.69 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; mkfifo Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe >> ../files/Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX.fmu > Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,T,X_w,phi Variables in the result:T,X_inv,X_w,p,phi,time