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.009896/0.009897, allocations: 104.9 kB / 15.74 MB, free: 6.039 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.001801/0.001802, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.586/2.586, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.001641, allocations: 62.88 kB / 0.9508 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3411, allocations: 140.4 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi): time 0.003126/0.3442, allocations: 1.911 MB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1824/0.5267, allocations: 155.4 MB / 1.242 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.527, allocations: 7.938 kB / 1.242 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.5272, allocations: 23.73 kB / 1.242 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.5276, allocations: 87.41 kB / 1.242 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.5285, allocations: 267 kB / 1.242 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.5288, allocations: 263.2 kB / 1.242 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.529, allocations: 70.34 kB / 1.242 GB, free: 2.836 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.5304, allocations: 247.5 kB / 1.242 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.5306, allocations: 87.61 kB / 1.243 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.5306, allocations: 16 kB / 1.243 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003713/0.531, allocations: 187.6 kB / 1.243 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.472e-05/0.5311, allocations: 47.83 kB / 1.243 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.5312, allocations: 91.52 kB / 1.243 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000458/0.5317, allocations: 283.1 kB / 1.243 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.5317, allocations: 0 / 1.243 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5317, allocations: 0 / 1.243 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.5317, allocations: 0 / 1.243 GB, free: 1.914 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.001098/0.5328, allocations: 0.5301 MB / 1.244 GB, free: 1.336 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.5329, allocations: 8.031 kB / 1.244 GB, free: 1.328 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008682/0.5337, allocations: 79.73 kB / 1.244 GB, free: 1.25 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.5341, allocations: 231.7 kB / 1.244 GB, free: 0.9844 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.974e-05/0.5342, allocations: 49.95 kB / 1.244 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.5342, allocations: 16 kB / 1.244 GB, free: 0.9141 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005398/0.5348, allocations: 266.5 kB / 1.244 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.5348, allocations: 4 kB / 1.244 GB, free: 0.6211 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.5348, allocations: 4 kB / 1.244 GB, free: 0.6172 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.5348, allocations: 4 kB / 1.244 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004598/0.5353, allocations: 171.8 kB / 1.244 GB, free: 456 kB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.537, allocations: 1.177 MB / 1.246 GB, free: 15.19 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007459/0.5378, allocations: 210.6 kB / 1.246 GB, free: 14.98 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.538, allocations: 68.81 kB / 1.246 GB, free: 14.91 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.538, allocations: 4 kB / 1.246 GB, free: 14.9 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.538, allocations: 30.56 kB / 1.246 GB, free: 14.86 MB / 1.014 GB Notification: Performance of pre-optimization done (n=12): time 1.362e-06/0.538, allocations: 4 kB / 1.246 GB, free: 14.86 MB / 1.014 GB Notification: Performance of matching and sorting (n=12): time 0.002692/0.5407, allocations: 0.6296 MB / 1.247 GB, free: 14.18 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.5408, allocations: 51.41 kB / 1.247 GB, free: 14.12 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.541, allocations: 215 kB / 1.247 GB, free: 13.9 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.5411, allocations: 29.7 kB / 1.247 GB, free: 13.86 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.91e-05/0.5412, allocations: 140 kB / 1.247 GB, free: 13.72 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.5412, allocations: 47.39 kB / 1.247 GB, free: 13.68 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.585e-05/0.5413, allocations: 49.59 kB / 1.247 GB, free: 13.62 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.5414, allocations: 326.8 kB / 1.247 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.5417, allocations: 71.94 kB / 1.247 GB, free: 13.22 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.5419, allocations: 138.8 kB / 1.248 GB, free: 13.06 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/0.5423, allocations: 196.6 kB / 1.248 GB, free: 12.85 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.5423, allocations: 4 kB / 1.248 GB, free: 12.84 MB / 1.014 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001399/0.5437, allocations: 370.7 kB / 1.248 GB, free: 12.47 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.5438, allocations: 4 kB / 1.248 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.5438, allocations: 4 kB / 1.248 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/0.5449, allocations: 169.6 kB / 1.248 GB, free: 12.29 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.5452, allocations: 39.91 kB / 1.248 GB, free: 12.25 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004022/0.5492, allocations: 3.249 MB / 1.251 GB, free: 8.719 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003654/0.5496, allocations: 35.81 kB / 1.252 GB, free: 8.684 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.5496, allocations: 4 kB / 1.252 GB, free: 8.68 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.0001452/0.5498, allocations: 141.8 kB / 1.252 GB, free: 8.531 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.304e-05/0.5498, allocations: 19.81 kB / 1.252 GB, free: 8.512 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.5511, allocations: 372.1 kB / 1.252 GB, free: 8.137 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.5511, allocations: 0 / 1.252 GB, free: 8.137 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.5511, allocations: 0 / 1.252 GB, free: 8.137 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.5511, allocations: 0 / 1.252 GB, free: 8.137 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003448/0.5515, allocations: 277.6 kB / 1.252 GB, free: 7.816 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.257e-06/0.5515, allocations: 0 / 1.252 GB, free: 7.816 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.5516, allocations: 23.92 kB / 1.252 GB, free: 7.793 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008405/0.5525, allocations: 145.5 kB / 1.252 GB, free: 7.645 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.5525, allocations: 7.984 kB / 1.252 GB, free: 7.637 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00369/0.5562, allocations: 3.293 MB / 1.256 GB, free: 4.059 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.5562, allocations: 4.031 kB / 1.256 GB, free: 4.055 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.5575, allocations: 434.5 kB / 1.256 GB, free: 3.609 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.5577, allocations: 116.8 kB / 1.256 GB, free: 3.477 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.5577, allocations: 7.984 kB / 1.256 GB, free: 3.469 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.558, allocations: 16.11 kB / 1.256 GB, free: 3.453 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.96e-05/0.5581, allocations: 19.98 kB / 1.256 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.5581, allocations: 7.984 kB / 1.256 GB, free: 3.426 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001937/0.5583, allocations: 155.2 kB / 1.256 GB, free: 3.273 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5583, allocations: 3.938 kB / 1.256 GB, free: 3.27 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004429/0.5587, allocations: 75.98 kB / 1.256 GB, free: 3.195 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.0002145/0.559, allocations: 119.7 kB / 1.257 GB, free: 3.066 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001104/0.5601, allocations: 445.5 kB / 1.257 GB, free: 2.605 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5601, allocations: 0 / 1.257 GB, free: 2.605 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007376/0.5608, allocations: 361.2 kB / 1.257 GB, free: 2.227 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.5613, allocations: 62.19 kB / 1.257 GB, free: 2.168 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.5623, allocations: 416.5 kB / 1.258 GB, free: 1.73 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.5628, allocations: 0.7363 MB / 1.259 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001597/0.5629, allocations: 33.94 kB / 1.259 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.024e-05/0.563, allocations: 23.42 kB / 1.259 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of SimCode: time 5.41e-07/0.563, allocations: 0 / 1.259 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of Templates: time 0.5878/1.151, allocations: 5.341 MB / 1.264 GB, free: 174.2 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