Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wetBulPhi.TWetBul|wetBulPhiApp.TWetBul",fileNamePrefix="Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi") translateModel(Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wetBulPhi.TWetBul|wetBulPhiApp.TWetBul",fileNamePrefix="Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01111/0.01111, allocations: 96.53 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.00161/0.00161, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.495/2.495, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63.09 kB / 0.9508 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3184, allocations: 140.4 MB / 1.088 GB, free: 1.562 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi): time 0.003018/0.3214, allocations: 1.922 MB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1835/0.505, allocations: 155.4 MB / 1.242 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.5052, allocations: 4 kB / 1.242 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.5055, allocations: 35.66 kB / 1.242 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003235/0.5058, allocations: 71.42 kB / 1.242 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.5065, allocations: 263.1 kB / 1.242 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.5068, allocations: 267.1 kB / 1.242 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.507, allocations: 66.36 kB / 1.242 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001229/0.5082, allocations: 255.3 kB / 1.242 GB, free: 2.688 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.5084, allocations: 91.61 kB / 1.243 GB, free: 2.598 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.5084, allocations: 12 kB / 1.243 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003227/0.5087, allocations: 187.7 kB / 1.243 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.5088, allocations: 51.81 kB / 1.243 GB, free: 2.352 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.522e-05/0.5089, allocations: 91.53 kB / 1.243 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.5094, allocations: 290.9 kB / 1.243 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.5094, allocations: 0 / 1.243 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5094, allocations: 0 / 1.243 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.5094, allocations: 0 / 1.243 GB, free: 1.977 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0009841/0.5104, allocations: 0.5354 MB / 1.244 GB, free: 1.395 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.5104, allocations: 12.03 kB / 1.244 GB, free: 1.383 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008371/0.5113, allocations: 87.77 kB / 1.244 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/0.5116, allocations: 226.7 kB / 1.244 GB, free: 1.035 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.068e-05/0.5117, allocations: 38.03 kB / 1.244 GB, free: 0.9922 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.43e-05/0.5117, allocations: 15.94 kB / 1.244 GB, free: 0.9766 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005445/0.5122, allocations: 274.5 kB / 1.244 GB, free: 0.6797 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.5123, allocations: 0 / 1.244 GB, free: 0.6797 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.5123, allocations: 8 kB / 1.244 GB, free: 0.6719 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.5123, allocations: 4 kB / 1.244 GB, free: 0.668 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.5128, allocations: 171.7 kB / 1.244 GB, free: 0.5 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.5145, allocations: 1.177 MB / 1.246 GB, free: 15.25 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007473/0.5152, allocations: 198.7 kB / 1.246 GB, free: 15.04 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.5154, allocations: 80.75 kB / 1.246 GB, free: 14.96 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.5155, allocations: 3.938 kB / 1.246 GB, free: 14.96 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.5155, allocations: 38.56 kB / 1.246 GB, free: 14.91 MB / 1.014 GB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.5155, allocations: 0 / 1.246 GB, free: 14.91 MB / 1.014 GB Notification: Performance of matching and sorting (n=12): time 0.002631/0.5181, allocations: 0.6336 MB / 1.247 GB, free: 14.23 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.5182, allocations: 55.41 kB / 1.247 GB, free: 14.16 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.5184, allocations: 218.9 kB / 1.247 GB, free: 13.94 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.5185, allocations: 25.7 kB / 1.247 GB, free: 13.91 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.282e-05/0.5185, allocations: 140.2 kB / 1.247 GB, free: 13.77 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.5186, allocations: 47.58 kB / 1.247 GB, free: 13.72 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.556e-05/0.5187, allocations: 49.64 kB / 1.247 GB, free: 13.66 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.5188, allocations: 334.8 kB / 1.247 GB, free: 13.33 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002136/0.519, allocations: 67.95 kB / 1.247 GB, free: 13.26 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.5194, allocations: 128.7 kB / 1.248 GB, free: 13.11 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.5198, allocations: 198.8 kB / 1.248 GB, free: 12.89 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.5198, allocations: 0 / 1.248 GB, free: 12.89 MB / 1.014 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001417/0.5212, allocations: 382.8 kB / 1.248 GB, free: 12.5 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.5213, allocations: 8 kB / 1.248 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5213, allocations: 0 / 1.248 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.5223, allocations: 157.7 kB / 1.248 GB, free: 12.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/0.5226, allocations: 43.91 kB / 1.248 GB, free: 12.29 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004524/0.5271, allocations: 3.241 MB / 1.251 GB, free: 8.766 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.5275, allocations: 39.77 kB / 1.252 GB, free: 8.727 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.5275, allocations: 11.98 kB / 1.252 GB, free: 8.715 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001523/0.5277, allocations: 133.7 kB / 1.252 GB, free: 8.574 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.698e-05/0.5277, allocations: 20.03 kB / 1.252 GB, free: 8.555 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.529, allocations: 380.2 kB / 1.252 GB, free: 8.172 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.529, allocations: 4 kB / 1.252 GB, free: 8.168 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.5291, allocations: 4 kB / 1.252 GB, free: 8.164 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.5291, allocations: 0 / 1.252 GB, free: 8.164 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003248/0.5294, allocations: 277.3 kB / 1.252 GB, free: 7.844 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.5294, allocations: 0 / 1.252 GB, free: 7.844 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.5296, allocations: 27.92 kB / 1.252 GB, free: 7.816 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008172/0.5304, allocations: 137.6 kB / 1.252 GB, free: 7.676 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.5304, allocations: 4 kB / 1.252 GB, free: 7.672 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00382/0.5342, allocations: 3.301 MB / 1.256 GB, free: 4.086 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5343, allocations: 0 / 1.256 GB, free: 4.086 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.5355, allocations: 439 kB / 1.256 GB, free: 3.637 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.5357, allocations: 116.9 kB / 1.256 GB, free: 3.504 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.5357, allocations: 4 kB / 1.256 GB, free: 3.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.536, allocations: 11.98 kB / 1.256 GB, free: 3.488 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.5361, allocations: 19.97 kB / 1.256 GB, free: 3.469 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.5361, allocations: 4 kB / 1.256 GB, free: 3.465 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001907/0.5363, allocations: 163.2 kB / 1.256 GB, free: 3.305 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.11e-07/0.5363, allocations: 0 / 1.256 GB, free: 3.305 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004308/0.5367, allocations: 75.89 kB / 1.257 GB, free: 3.23 MB / 1.014 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002037/0.537, allocations: 114.5 kB / 1.257 GB, free: 3.109 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001117/0.5381, allocations: 437.9 kB / 1.257 GB, free: 2.656 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5381, allocations: 3.938 kB / 1.257 GB, free: 2.652 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.5388, allocations: 365.2 kB / 1.257 GB, free: 2.27 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.5392, allocations: 61.92 kB / 1.257 GB, free: 2.211 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009681/0.5402, allocations: 421.5 kB / 1.258 GB, free: 1.77 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.5405, allocations: 0.7323 MB / 1.259 GB, free: 1.012 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001723/0.5407, allocations: 37.97 kB / 1.259 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.76e-05/0.5408, allocations: 19.44 kB / 1.259 GB, free: 0.957 MB / 1.014 GB Notification: Performance of SimCode: time 8.51e-07/0.5408, allocations: 0 / 1.259 GB, free: 0.957 MB / 1.014 GB Notification: Performance of Templates: time 0.6785/1.219, allocations: 5.344 MB / 1.264 GB, free: 174.3 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.makefile (rm -f Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.pipe ; mkfifo Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.pipe >> ../files/Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.sim & ./Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Psychrometrics_Examples_TWetBul_TDryBulPhi.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches