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.00173/0.001731, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001525/0.001525, allocations: 191.5 kB / 16.25 MB, free: 6.633 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.46/1.46, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.542/2.542, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 71.89 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.867/0.8685, allocations: 140.4 MB / 0.9491 GB, free: 9.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Examples.TWetBul_TDryBulPhi): time 0.002974/0.8716, allocations: 1.962 MB / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1775/1.049, allocations: 153.2 MB / 1.101 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002736/1.049, allocations: 7.938 kB / 1.101 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002366/1.05, allocations: 15.86 kB / 1.101 GB, free: 6.324 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004562/1.05, allocations: 71.53 kB / 1.101 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/1.051, allocations: 231.4 kB / 1.101 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003416/1.051, allocations: 267.1 kB / 1.101 GB, free: 5.766 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/1.052, allocations: 68.38 kB / 1.101 GB, free: 5.699 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001965/1.054, allocations: 249.7 kB / 1.101 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/1.054, allocations: 95.59 kB / 1.102 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/1.054, allocations: 20 kB / 1.102 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003595/1.054, allocations: 183.7 kB / 1.102 GB, free: 5.188 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/1.054, allocations: 39.91 kB / 1.102 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001042/1.054, allocations: 99.5 kB / 1.102 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004029/1.055, allocations: 275.1 kB / 1.102 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/1.055, allocations: 4 kB / 1.102 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/1.055, allocations: 0 / 1.102 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.653e-06/1.055, allocations: 4 kB / 1.102 GB, free: 4.773 MB / 0.8575 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.0009917/1.056, allocations: 0.5223 MB / 1.103 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/1.056, allocations: 8.031 kB / 1.103 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008905/1.057, allocations: 87.62 kB / 1.103 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/1.057, allocations: 226.6 kB / 1.103 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.256e-05/1.057, allocations: 42.03 kB / 1.103 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.704e-05/1.057, allocations: 16 kB / 1.103 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006552/1.058, allocations: 266.5 kB / 1.103 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/1.058, allocations: 0 / 1.103 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/1.058, allocations: 8 kB / 1.103 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/1.058, allocations: 7.984 kB / 1.103 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004634/1.058, allocations: 175.7 kB / 1.103 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/1.06, allocations: 1.173 MB / 1.105 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007884/1.061, allocations: 214.6 kB / 1.105 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/1.061, allocations: 64.83 kB / 1.105 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/1.061, allocations: 3.984 kB / 1.105 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/1.061, allocations: 34.56 kB / 1.105 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/1.061, allocations: 0 / 1.105 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.002814/1.064, allocations: 0.6296 MB / 1.106 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/1.064, allocations: 59.34 kB / 1.106 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/1.064, allocations: 215 kB / 1.106 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/1.064, allocations: 25.7 kB / 1.106 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/1.064, allocations: 140 kB / 1.106 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.532e-05/1.065, allocations: 47.34 kB / 1.106 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/1.065, allocations: 49.67 kB / 1.106 GB, free: 492 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001265/1.065, allocations: 330.8 kB / 1.106 GB, free: 152 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/1.065, allocations: 67.95 kB / 1.106 GB, free: 84 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/1.065, allocations: 140.2 kB / 1.107 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004173/1.066, allocations: 190.8 kB / 1.107 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.066, allocations: 0 / 1.107 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00149/1.067, allocations: 378.6 kB / 1.107 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/1.067, allocations: 4 kB / 1.107 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/1.067, allocations: 4 kB / 1.107 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/1.068, allocations: 161.8 kB / 1.107 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/1.069, allocations: 43.89 kB / 1.107 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004829/1.074, allocations: 3.237 MB / 1.11 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004255/1.074, allocations: 39.8 kB / 1.111 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/1.074, allocations: 7.984 kB / 1.111 GB, free: 11.54 MB / 0.8731 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.0002138/1.074, allocations: 138.6 kB / 1.111 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.835e-05/1.074, allocations: 19.75 kB / 1.111 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/1.076, allocations: 372.3 kB / 1.111 GB, free: 11 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/1.076, allocations: 8 kB / 1.111 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/1.076, allocations: 0 / 1.111 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/1.076, allocations: 3.938 kB / 1.111 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000355/1.076, allocations: 281.3 kB / 1.111 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/1.076, allocations: 8 kB / 1.111 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/1.076, allocations: 23.92 kB / 1.111 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008518/1.077, allocations: 141.6 kB / 1.111 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/1.077, allocations: 0 / 1.111 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00381/1.081, allocations: 3.304 MB / 1.115 GB, free: 6.891 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/1.081, allocations: 4 kB / 1.115 GB, free: 6.887 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/1.082, allocations: 426.6 kB / 1.115 GB, free: 6.449 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/1.082, allocations: 124.7 kB / 1.115 GB, free: 6.309 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/1.083, allocations: 0 / 1.115 GB, free: 6.309 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/1.083, allocations: 15.98 kB / 1.115 GB, free: 6.293 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/1.083, allocations: 15.97 kB / 1.115 GB, free: 6.277 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/1.083, allocations: 8 kB / 1.115 GB, free: 6.27 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001869/1.083, allocations: 159.2 kB / 1.115 GB, free: 6.113 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.6e-07/1.083, allocations: 0 / 1.115 GB, free: 6.113 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004325/1.084, allocations: 79.94 kB / 1.116 GB, free: 6.035 MB / 0.8731 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.0002217/1.084, allocations: 115.2 kB / 1.116 GB, free: 5.914 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001152/1.085, allocations: 445.5 kB / 1.116 GB, free: 5.453 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/1.085, allocations: 0 / 1.116 GB, free: 5.453 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007016/1.086, allocations: 362.3 kB / 1.116 GB, free: 5.074 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/1.086, allocations: 59.88 kB / 1.116 GB, free: 5.016 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/1.087, allocations: 489.7 kB / 1.117 GB, free: 4.512 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/1.088, allocations: 0.7323 MB / 1.118 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002186/1.088, allocations: 38.03 kB / 1.118 GB, free: 3.715 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/1.088, allocations: 27.36 kB / 1.118 GB, free: 3.688 MB / 0.8731 GB Notification: Performance of SimCode: time 3.51e-07/1.088, allocations: 0 / 1.118 GB, free: 3.688 MB / 0.8731 GB Notification: Performance of Templates: time 0.01036/1.098, allocations: 5.232 MB / 1.123 GB, free: 14.51 MB / 0.8887 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