Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0008486/0.0008485, allocations: 93.59 kB / 16.66 MB, free: 5.859 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.0008548/0.0008548, allocations: 176.7 kB / 17.57 MB, free: 5.543 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.367/1.367, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7503/0.7503, allocations: 115.5 MB / 408.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.0003789, allocations: 8.281 kB / 496.5 MB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4278/0.4282, allocations: 77.53 MB / 0.5606 GB, free: 35.69 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05281/0.4811, allocations: 59.69 MB / 0.6189 GB, free: 7.688 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01748/0.4986, allocations: 11.91 MB / 0.6305 GB, free: 11.77 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002842/0.5015, allocations: 51.69 kB / 0.6306 GB, free: 11.72 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.5037, allocations: 0.5477 MB / 0.6311 GB, free: 11.17 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006048/0.5098, allocations: 1.796 MB / 0.6328 GB, free: 9.363 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003182/0.513, allocations: 1.075 MB / 0.6339 GB, free: 8.297 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.005246/0.5182, allocations: 3.909 MB / 0.6377 GB, free: 4.383 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001495/0.5198, allocations: 0.8981 MB / 0.6386 GB, free: 3.453 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002755/0.5225, allocations: 1.124 MB / 0.6397 GB, free: 2.324 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.5241, allocations: 0.8476 MB / 0.6405 GB, free: 1.473 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.5242, allocations: 44 kB / 0.6406 GB, free: 1.43 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002906/0.5271, allocations: 1.321 MB / 0.6418 GB, free: 108 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002856/0.5274, allocations: 222.9 kB / 0.6421 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007858/0.5282, allocations: 0.6272 MB / 0.6427 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002325/0.5306, allocations: 1.682 MB / 0.6443 GB, free: 13.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.5306, allocations: 0 / 0.6443 GB, free: 13.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.5306, allocations: 7.938 kB / 0.6443 GB, free: 13.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.5306, allocations: 0 / 0.6443 GB, free: 13.56 MB / 494.1 MB 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.002748/0.5334, allocations: 1.489 MB / 0.6458 GB, free: 12.01 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.5334, allocations: 15.97 kB / 0.6458 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/0.5356, allocations: 466.9 kB / 0.6462 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002046/0.5377, allocations: 1.128 MB / 0.6473 GB, free: 10.35 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003603/0.538, allocations: 125.9 kB / 0.6475 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.5382, allocations: 80 kB / 0.6475 GB, free: 10.15 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.5402, allocations: 1.005 MB / 0.6485 GB, free: 9.102 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.5403, allocations: 7.938 kB / 0.6485 GB, free: 9.094 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.857e-05/0.5404, allocations: 32 kB / 0.6485 GB, free: 9.062 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.5404, allocations: 16 kB / 0.6486 GB, free: 9.047 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002403/0.5428, allocations: 0.9173 MB / 0.6495 GB, free: 8.133 MB / 494.1 MB 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.006515/0.5493, allocations: 4.904 MB / 0.6542 GB, free: 2.871 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003627/0.553, allocations: 0.8947 MB / 0.6551 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007798/0.5538, allocations: 324.7 kB / 0.6554 GB, free: 1.648 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000634/0.5544, allocations: 0.9063 MB / 0.6563 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.5545, allocations: 42.5 kB / 0.6564 GB, free: 500 kB / 494.1 MB Notification: Performance of pre-optimization done (n=43): time 2.334e-06/0.5545, allocations: 4 kB / 0.6564 GB, free: 496 kB / 494.1 MB Notification: Performance of matching and sorting (n=43): time 0.009349/0.5638, allocations: 2.161 MB / 0.6585 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.5639, allocations: 59.41 kB / 0.6585 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.5656, allocations: 1.055 MB / 0.6596 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.872e-05/0.5657, allocations: 33.7 kB / 0.6596 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004131/0.5661, allocations: 0.5312 MB / 0.6601 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.5663, allocations: 145.8 kB / 0.6602 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.865e-05/0.5663, allocations: 49.69 kB / 0.6603 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.5665, allocations: 330 kB / 0.6606 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009314/0.5674, allocations: 324.9 kB / 0.6609 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.5685, allocations: 0.5376 MB / 0.6614 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.5702, allocations: 0.7318 MB / 0.6622 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.5703, allocations: 0 / 0.6622 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002858/0.5731, allocations: 1.048 MB / 0.6632 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.5733, allocations: 217.4 kB / 0.6634 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.5733, allocations: 4 kB / 0.6634 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/0.5747, allocations: 339.5 kB / 0.6637 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005419/0.5752, allocations: 131.8 kB / 0.6638 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.5768, allocations: 0.9463 MB / 0.6648 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.5781, allocations: 191.3 kB / 0.665 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.178e-05/0.5782, allocations: 27.98 kB / 0.665 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.5782, allocations: 5.875 kB / 0.665 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002545/0.5808, allocations: 0.9145 MB / 0.6659 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.5808, allocations: 8 kB / 0.6659 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.5819, allocations: 324.7 kB / 0.6662 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.5825, allocations: 127.8 kB / 0.6663 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.5839, allocations: 0.9412 MB / 0.6672 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.5852, allocations: 167.4 kB / 0.6674 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.916e-05/0.5853, allocations: 27.98 kB / 0.6674 GB, free: 4.801 MB / 0.4981 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 (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.000552/0.5858, allocations: 357.7 kB / 0.6678 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.586, allocations: 110.7 kB / 0.6679 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00403/0.59, allocations: 1.202 MB / 0.669 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.5901, allocations: 7.984 kB / 0.669 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.5901, allocations: 0 / 0.669 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.5901, allocations: 3.938 kB / 0.6691 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005361/0.5955, allocations: 2.261 MB / 0.6713 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.5955, allocations: 3.984 kB / 0.6713 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.5958, allocations: 76.17 kB / 0.6713 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.5969, allocations: 316.6 kB / 0.6716 GB, free: 384 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.597, allocations: 15.98 kB / 0.6717 GB, free: 368 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.5985, allocations: 0.9812 MB / 0.6726 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.5985, allocations: 4 kB / 0.6726 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003853/0.6024, allocations: 1.257 MB / 0.6738 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005423/0.603, allocations: 283.5 kB / 0.6741 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.6031, allocations: 8 kB / 0.6741 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009259/0.604, allocations: 115.8 kB / 0.6742 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.889e-05/0.6041, allocations: 35.89 kB / 0.6743 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.815e-05/0.6042, allocations: 23.98 kB / 0.6743 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001174/0.6054, allocations: 0.7467 MB / 0.675 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6054, allocations: 0 / 0.675 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001521/0.6069, allocations: 0.5574 MB / 0.6756 GB, free: 12.26 MB / 0.5137 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 (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.0008007/0.6077, allocations: 387.8 kB / 0.6759 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003239/0.611, allocations: 1.168 MB / 0.6771 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.611, allocations: 0 / 0.6771 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009196/0.6119, allocations: 371.1 kB / 0.6774 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/0.6148, allocations: 0.5021 MB / 0.6779 GB, free: 9.859 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00577/0.6206, allocations: 2.558 MB / 0.6804 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005899/0.6212, allocations: 1.058 MB / 0.6814 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002846/0.6215, allocations: 83.41 kB / 0.6815 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of SimCode: time 1.133e-06/0.6215, allocations: 0 / 0.6815 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of Templates: time 0.03192/0.6535, allocations: 23.66 MB / 0.7046 GB, free: 14.57 MB / 0.545 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)