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.001404/0.001404, allocations: 107.7 kB / 16.64 MB, free: 6.809 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.001262/0.001262, allocations: 186 kB / 17.57 MB, free: 5.922 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.515/1.515, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8149/0.8149, allocations: 125.4 MB / 416.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 63.89 kB / 0.4943 GB, free: 4.809 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.378, allocations: 78.56 MB / 0.571 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05471/0.4328, allocations: 60.73 MB / 0.6303 GB, free: 10.9 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01899/0.4518, allocations: 11.9 MB / 0.6419 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002985/0.4548, allocations: 55.62 kB / 0.642 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002406/0.4573, allocations: 0.5829 MB / 0.6426 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006581/0.4639, allocations: 1.816 MB / 0.6443 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003585/0.4675, allocations: 1.094 MB / 0.6454 GB, free: 11.42 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005313/0.4729, allocations: 3.091 MB / 0.6484 GB, free: 8.316 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001916/0.4748, allocations: 1.098 MB / 0.6495 GB, free: 7.191 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004181/0.479, allocations: 1.457 MB / 0.6509 GB, free: 5.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001816/0.4808, allocations: 0.91 MB / 0.6518 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002298/0.4811, allocations: 112 kB / 0.6519 GB, free: 4.707 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003117/0.4842, allocations: 1.443 MB / 0.6533 GB, free: 3.262 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00035/0.4846, allocations: 298.8 kB / 0.6536 GB, free: 2.969 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009853/0.4856, allocations: 0.7036 MB / 0.6543 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002896/0.4885, allocations: 1.75 MB / 0.656 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.4885, allocations: 0 / 0.656 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4885, allocations: 0 / 0.656 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.928e-05/0.4885, allocations: 0 / 0.656 GB, free: 0.5078 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.003412/0.492, allocations: 1.715 MB / 0.6577 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.492, allocations: 8.031 kB / 0.6577 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00223/0.4943, allocations: 410.8 kB / 0.6581 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/0.4965, allocations: 1.135 MB / 0.6592 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003541/0.4969, allocations: 117.9 kB / 0.6593 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.4971, allocations: 80 kB / 0.6594 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/0.4992, allocations: 0.9739 MB / 0.6603 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.4992, allocations: 4 kB / 0.6603 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.361e-05/0.4993, allocations: 32 kB / 0.6604 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.4994, allocations: 20 kB / 0.6604 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002298/0.5017, allocations: 0.8664 MB / 0.6612 GB, free: 10.99 MB / 0.4981 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.0072/0.5089, allocations: 4.842 MB / 0.6659 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003441/0.5123, allocations: 0.7946 MB / 0.6667 GB, free: 5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007522/0.5131, allocations: 307.1 kB / 0.667 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008149/0.5139, allocations: 0.9064 MB / 0.6679 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.514, allocations: 38.5 kB / 0.6679 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=43): time 5.34e-06/0.514, allocations: 3.984 kB / 0.6679 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.008638/0.5226, allocations: 1.911 MB / 0.6698 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.5227, allocations: 55.41 kB / 0.6699 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.5245, allocations: 1.048 MB / 0.6709 GB, free: 480 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.639e-05/0.5246, allocations: 37.7 kB / 0.6709 GB, free: 436 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005168/0.5252, allocations: 0.5234 MB / 0.6714 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.5253, allocations: 157.8 kB / 0.6716 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.5256, allocations: 122.1 kB / 0.6717 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.5258, allocations: 330 kB / 0.672 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008947/0.5267, allocations: 306.9 kB / 0.6723 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.5278, allocations: 0.5064 MB / 0.6728 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/0.5295, allocations: 0.6888 MB / 0.6735 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.5295, allocations: 0 / 0.6735 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002844/0.5324, allocations: 0.9927 MB / 0.6744 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.5324, allocations: 4 kB / 0.6744 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.5324, allocations: 4 kB / 0.6744 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.5338, allocations: 323.6 kB / 0.6748 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005443/0.5343, allocations: 127.7 kB / 0.6749 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.5359, allocations: 0.9151 MB / 0.6758 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.5374, allocations: 171.3 kB / 0.6759 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.753e-05/0.5374, allocations: 27.98 kB / 0.676 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001304/0.5388, allocations: 0.5056 MB / 0.6765 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001078/0.5398, allocations: 0.5022 MB / 0.6769 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001627/0.5415, allocations: 0.6638 MB / 0.6776 GB, free: 9.234 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.45e-06/0.5415, allocations: 4 kB / 0.6776 GB, free: 9.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002781/0.5443, allocations: 0.9852 MB / 0.6786 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.5443, allocations: 8 kB / 0.6786 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.5443, allocations: 8 kB / 0.6786 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.5455, allocations: 312.6 kB / 0.6789 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005147/0.546, allocations: 115.9 kB / 0.679 GB, free: 7.797 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.5474, allocations: 0.9063 MB / 0.6799 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/0.5488, allocations: 151.6 kB / 0.68 GB, free: 6.719 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.35e-05/0.5489, allocations: 35.92 kB / 0.68 GB, free: 6.684 MB / 0.5137 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.0002805/0.5491, allocations: 220 kB / 0.6803 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/0.5493, allocations: 110.7 kB / 0.6804 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003781/0.5531, allocations: 1.104 MB / 0.6814 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.5532, allocations: 4 kB / 0.6814 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.5532, allocations: 0 / 0.6814 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.5532, allocations: 3.984 kB / 0.6815 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005288/0.5585, allocations: 2.167 MB / 0.6836 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5585, allocations: 0 / 0.6836 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.5588, allocations: 63.89 kB / 0.6836 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.5598, allocations: 296.9 kB / 0.6839 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.267e-05/0.5599, allocations: 23.98 kB / 0.6839 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/0.5614, allocations: 0.9403 MB / 0.6849 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.5614, allocations: 7.938 kB / 0.6849 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003587/0.565, allocations: 1.17 MB / 0.686 GB, free: 404 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005371/0.5656, allocations: 263.6 kB / 0.6863 GB, free: 120 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.5658, allocations: 11.98 kB / 0.6863 GB, free: 108 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008779/0.5666, allocations: 95.8 kB / 0.6864 GB, free: 12 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.5668, allocations: 39.89 kB / 0.6864 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.869e-05/0.5668, allocations: 23.98 kB / 0.6864 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001231/0.5681, allocations: 0.735 MB / 0.6871 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/0.5681, allocations: 0 / 0.6871 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0016/0.5697, allocations: 0.5613 MB / 0.6877 GB, free: 14.64 MB / 0.5294 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.0008977/0.5706, allocations: 385.6 kB / 0.6881 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003362/0.574, allocations: 1.118 MB / 0.6891 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.574, allocations: 4 kB / 0.6891 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000914/0.5749, allocations: 347.1 kB / 0.6895 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.5773, allocations: 0.5079 MB / 0.69 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005797/0.5831, allocations: 2.453 MB / 0.6924 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007329/0.5838, allocations: 1.061 MB / 0.6934 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.5841, allocations: 79.42 kB / 0.6935 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of SimCode: time 4.61e-07/0.5841, allocations: 0 / 0.6935 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of Templates: time 0.03477/0.6189, allocations: 23.77 MB / 0.7167 GB, free: 1.055 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)