Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001433/0.001433, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.459/2.459, allocations: 436.5 MB / 0.7104 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003304, allocations: 8 kB / 0.8707 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5763/0.5767, allocations: 153.7 MB / 1.021 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05091/0.6276, allocations: 51.32 MB / 1.071 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01412/0.6418, allocations: 10.31 MB / 1.081 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001597/0.6434, allocations: 51.62 kB / 1.081 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.6453, allocations: 0.6335 MB / 1.082 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005402/0.6507, allocations: 1.944 MB / 1.084 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0035/0.6542, allocations: 1.31 MB / 1.085 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003332/0.6575, allocations: 1.859 MB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.6587, allocations: 0.7979 MB / 1.087 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.661, allocations: 0.9847 MB / 1.088 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.6621, allocations: 0.6027 MB / 1.089 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.6622, allocations: 44 kB / 1.089 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00219/0.6644, allocations: 0.9829 MB / 1.09 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002141/0.6647, allocations: 199.1 kB / 1.09 GB, free: 10 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003251/0.665, allocations: 285 kB / 1.09 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001929/0.6669, allocations: 1.568 MB / 1.092 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.6669, allocations: 4 kB / 1.092 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.533e-06/0.667, allocations: 0 / 1.092 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.955e-05/0.667, allocations: 0 / 1.092 GB, free: 8.141 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002685/0.6697, allocations: 1.485 MB / 1.093 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.6697, allocations: 15.92 kB / 1.093 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002241/0.672, allocations: 469.9 kB / 1.094 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.6739, allocations: 1.047 MB / 1.095 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003673/0.6743, allocations: 137.9 kB / 1.095 GB, free: 4.883 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.6744, allocations: 80 kB / 1.095 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.6764, allocations: 0.9973 MB / 1.096 GB, free: 3.762 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.6765, allocations: 0 / 1.096 GB, free: 3.762 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.964e-05/0.6766, allocations: 32 kB / 1.096 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/0.6766, allocations: 16 kB / 1.096 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00242/0.679, allocations: 0.9211 MB / 1.097 GB, free: 2.797 MB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007032/0.686, allocations: 4.922 MB / 1.102 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003644/0.6897, allocations: 0.9141 MB / 1.103 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006875/0.6904, allocations: 0.9025 MB / 1.104 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.6905, allocations: 30.56 kB / 1.104 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=43): time 3.757e-06/0.6905, allocations: 0 / 1.104 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=43): time 0.008959/0.6994, allocations: 2.147 MB / 1.106 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.6995, allocations: 55.41 kB / 1.106 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/0.701, allocations: 1.063 MB / 1.107 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.197e-05/0.7011, allocations: 37.7 kB / 1.107 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000382/0.7015, allocations: 0.5195 MB / 1.107 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.7016, allocations: 149.8 kB / 1.108 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-05/0.7017, allocations: 8 kB / 1.108 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.948e-05/0.7018, allocations: 333.9 kB / 1.108 GB, free: 7.07 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009055/0.7027, allocations: 320.9 kB / 1.108 GB, free: 6.758 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.7038, allocations: 0.5259 MB / 1.109 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009749/0.7048, allocations: 365.3 kB / 1.109 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.7048, allocations: 0 / 1.109 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003767/0.7086, allocations: 1.216 MB / 1.11 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005323/0.7091, allocations: 1.667 MB / 1.112 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.7091, allocations: 4 kB / 1.112 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.7104, allocations: 332.5 kB / 1.112 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005582/0.7109, allocations: 127.8 kB / 1.112 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/0.7124, allocations: 0.9487 MB / 1.113 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.7138, allocations: 191.2 kB / 1.113 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.058e-05/0.7139, allocations: 27.98 kB / 1.113 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.7139, allocations: 8 kB / 1.113 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003372/0.7173, allocations: 1.074 MB / 1.114 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.7173, allocations: 4 kB / 1.114 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.7185, allocations: 329 kB / 1.115 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005495/0.7191, allocations: 119.9 kB / 1.115 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.7206, allocations: 0.9387 MB / 1.116 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.7218, allocations: 171.3 kB / 1.116 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.392e-05/0.7219, allocations: 31.98 kB / 1.116 GB, free: 14.43 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005187/0.7224, allocations: 353 kB / 1.116 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.7227, allocations: 106.7 kB / 1.116 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003998/0.7267, allocations: 1.203 MB / 1.118 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.7267, allocations: 11.98 kB / 1.118 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.7267, allocations: 0 / 1.118 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.7267, allocations: 0 / 1.118 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005467/0.7322, allocations: 2.28 MB / 1.12 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.7322, allocations: 4.281 kB / 1.12 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.7325, allocations: 67.89 kB / 1.12 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.7336, allocations: 326 kB / 1.12 GB, free: 9.992 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.7337, allocations: 19.97 kB / 1.12 GB, free: 9.973 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.7351, allocations: 0.9621 MB / 1.121 GB, free: 8.984 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.7352, allocations: 4.031 kB / 1.121 GB, free: 8.98 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00383/0.739, allocations: 1.379 MB / 1.123 GB, free: 7.508 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005569/0.7396, allocations: 287.4 kB / 1.123 GB, free: 7.207 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.7398, allocations: 15.94 kB / 1.123 GB, free: 7.191 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.7408, allocations: 115.8 kB / 1.123 GB, free: 7.078 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.402e-05/0.7409, allocations: 35.95 kB / 1.123 GB, free: 7.043 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.839e-05/0.741, allocations: 23.98 kB / 1.123 GB, free: 7.02 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001263/0.7422, allocations: 0.7467 MB / 1.124 GB, free: 6.266 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.1e-07/0.7422, allocations: 4 kB / 1.124 GB, free: 6.262 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001778/0.744, allocations: 0.5574 MB / 1.124 GB, free: 5.703 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009277/0.745, allocations: 375.5 kB / 1.125 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003634/0.7486, allocations: 1.159 MB / 1.126 GB, free: 4.176 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.7487, allocations: 4 kB / 1.126 GB, free: 4.172 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.7498, allocations: 372.4 kB / 1.126 GB, free: 3.812 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002877/0.7527, allocations: 0.4923 MB / 1.127 GB, free: 3.324 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005873/0.7586, allocations: 2.481 MB / 1.129 GB, free: 0.7852 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007551/0.7594, allocations: 1.085 MB / 1.13 GB, free: 15.67 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001275/0.7607, allocations: 212.7 kB / 1.13 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.7609, allocations: 79.42 kB / 1.13 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of SimCode: time 1.132e-06/0.7609, allocations: 4 kB / 1.13 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of Templates: time 0.03731/0.7983, allocations: 23.28 MB / 1.153 GB, free: 8.367 MB / 0.9044 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches