Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.796/2.796, allocations: 472.6 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 59.22 kB / 0.912 GB, free: 33.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3253, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.06691/0.3922, allocations: 61.24 MB / 1.128 GB, free: 12.94 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01994/0.4122, allocations: 12.01 MB / 1.14 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002666/0.4149, allocations: 59.62 kB / 1.14 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002364/0.4174, allocations: 0.6791 MB / 1.14 GB, free: 164 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00645/0.4238, allocations: 1.97 MB / 1.142 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003363/0.4272, allocations: 1.197 MB / 1.144 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004731/0.432, allocations: 3.075 MB / 1.147 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002207/0.4342, allocations: 1.132 MB / 1.148 GB, free: 8.738 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003686/0.4379, allocations: 1.321 MB / 1.149 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002096/0.44, allocations: 0.9101 MB / 1.15 GB, free: 6.5 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005292/0.4406, allocations: 120 kB / 1.15 GB, free: 6.383 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003953/0.4445, allocations: 1.443 MB / 1.151 GB, free: 4.938 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005974/0.4451, allocations: 306.8 kB / 1.152 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.4468, allocations: 0.6998 MB / 1.152 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.4514, allocations: 2.29 MB / 1.155 GB, free: 1.637 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4514, allocations: 0 / 1.155 GB, free: 1.637 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.374e-06/0.4514, allocations: 0 / 1.155 GB, free: 1.637 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.677e-05/0.4515, allocations: 0 / 1.155 GB, free: 1.637 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.00432/0.4558, allocations: 1.732 MB / 1.156 GB, free: 15.85 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/0.4559, allocations: 8.031 kB / 1.156 GB, free: 15.84 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002713/0.4586, allocations: 462.7 kB / 1.157 GB, free: 15.39 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/0.4611, allocations: 1.111 MB / 1.158 GB, free: 14.22 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003759/0.4615, allocations: 121.9 kB / 1.158 GB, free: 14.1 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.4617, allocations: 80 kB / 1.158 GB, free: 14.02 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002382/0.4641, allocations: 1.002 MB / 1.159 GB, free: 12.99 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.4641, allocations: 7.938 kB / 1.159 GB, free: 12.98 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-05/0.4642, allocations: 35.94 kB / 1.159 GB, free: 12.95 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.34e-05/0.4643, allocations: 27.97 kB / 1.159 GB, free: 12.92 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002761/0.467, allocations: 0.9485 MB / 1.16 GB, free: 11.97 MB / 0.92 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.007635/0.4747, allocations: 4.708 MB / 1.165 GB, free: 6.914 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004174/0.4789, allocations: 0.997 MB / 1.165 GB, free: 5.91 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.48, allocations: 419.6 kB / 1.166 GB, free: 5.5 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001034/0.4811, allocations: 1.017 MB / 1.167 GB, free: 4.258 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.4811, allocations: 39 kB / 1.167 GB, free: 4.211 MB / 0.92 GB Notification: Performance of pre-optimization done (n=53): time 2.364e-06/0.4811, allocations: 3.938 kB / 1.167 GB, free: 4.207 MB / 0.92 GB Notification: Performance of matching and sorting (n=53): time 0.009936/0.4911, allocations: 2.228 MB / 1.169 GB, free: 1.949 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.4911, allocations: 59.84 kB / 1.169 GB, free: 1.879 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.4928, allocations: 0.9547 MB / 1.17 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.4929, allocations: 37.7 kB / 1.17 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004428/0.4934, allocations: 0.4963 MB / 1.171 GB, free: 372 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.4936, allocations: 177.3 kB / 1.171 GB, free: 192 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.4939, allocations: 138 kB / 1.171 GB, free: 48 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.494, allocations: 322 kB / 1.171 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.4951, allocations: 362.8 kB / 1.172 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.4963, allocations: 0.5124 MB / 1.172 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002139/0.4985, allocations: 0.7696 MB / 1.173 GB, free: 14 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4985, allocations: 0 / 1.173 GB, free: 14 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003167/0.5016, allocations: 1.072 MB / 1.174 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.5017, allocations: 7.938 kB / 1.174 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.5017, allocations: 4.312 kB / 1.174 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.5031, allocations: 324.5 kB / 1.174 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006532/0.5037, allocations: 131.8 kB / 1.174 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.5053, allocations: 0.9094 MB / 1.175 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.5065, allocations: 127.3 kB / 1.175 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.62e-05/0.5066, allocations: 35.92 kB / 1.175 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001434/0.508, allocations: 0.5556 MB / 1.176 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00121/0.5092, allocations: 0.5194 MB / 1.176 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002123/0.5114, allocations: 0.7541 MB / 1.177 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.537e-06/0.5114, allocations: 0 / 1.177 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.003138/0.5145, allocations: 1.057 MB / 1.178 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.5145, allocations: 8.312 kB / 1.178 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.5146, allocations: 4 kB / 1.178 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.5157, allocations: 308.5 kB / 1.178 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006482/0.5164, allocations: 139.7 kB / 1.179 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.5179, allocations: 0.9017 MB / 1.179 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.519, allocations: 119.6 kB / 1.18 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-05/0.5191, allocations: 31.92 kB / 1.18 GB, free: 6.832 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002539/0.5194, allocations: 218.2 kB / 1.18 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003118/0.5197, allocations: 114.6 kB / 1.18 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004799/0.5245, allocations: 1.322 MB / 1.181 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/0.5245, allocations: 8 kB / 1.181 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.5245, allocations: 0 / 1.181 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.5246, allocations: 3.984 kB / 1.181 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006294/0.5309, allocations: 2.42 MB / 1.184 GB, free: 2.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.5309, allocations: 4 kB / 1.184 GB, free: 2.648 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005726/0.5315, allocations: 103.8 kB / 1.184 GB, free: 2.547 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.5326, allocations: 306.5 kB / 1.184 GB, free: 2.246 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.579e-05/0.5327, allocations: 19.98 kB / 1.184 GB, free: 2.227 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001701/0.5344, allocations: 0.9424 MB / 1.185 GB, free: 1.258 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.5344, allocations: 8.062 kB / 1.185 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004711/0.5392, allocations: 1.339 MB / 1.186 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008228/0.54, allocations: 271.5 kB / 1.187 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003067/0.5403, allocations: 23.92 kB / 1.187 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.5413, allocations: 75.91 kB / 1.187 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.5415, allocations: 36.39 kB / 1.187 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-05/0.5416, allocations: 23.98 kB / 1.187 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001198/0.5428, allocations: 0.6674 MB / 1.187 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.21e-07/0.5428, allocations: 0 / 1.187 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002108/0.5449, allocations: 0.573 MB / 1.188 GB, free: 14.18 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001104/0.546, allocations: 384 kB / 1.188 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004231/0.5502, allocations: 1.342 MB / 1.19 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5503, allocations: 4 kB / 1.19 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.5516, allocations: 464.8 kB / 1.19 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/0.554, allocations: 0.4886 MB / 1.19 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004238/0.5583, allocations: 1.924 MB / 1.192 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006849/0.559, allocations: 1.062 MB / 1.193 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001157/0.5601, allocations: 238.7 kB / 1.194 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002496/0.5604, allocations: 79.41 kB / 1.194 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of SimCode: time 1.713e-06/0.5604, allocations: 0 / 1.194 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of Templates: time 0.04259/0.603, allocations: 24.74 MB / 1.218 GB, free: 15.7 MB / 0.9825 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & ./Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)