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: "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008212/0.0008212, allocations: 92.95 kB / 16.02 MB, free: 84 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.0008286/0.0008286, allocations: 182.7 kB / 16.92 MB, free: 6.91 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.215/1.215, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.617/0.617, allocations: 115.5 MB / 407.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002979, allocations: 12 kB / 495.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1217, allocations: 77.54 MB / 0.56 GB, free: 8.934 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.2591/0.3808, allocations: 59.67 MB / 0.6183 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01422/0.3951, allocations: 11.91 MB / 0.6299 GB, free: 6.973 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.3965, allocations: 57.16 kB / 0.63 GB, free: 6.945 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.3978, allocations: 0.547 MB / 0.6305 GB, free: 6.613 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003979/0.4018, allocations: 1.802 MB / 0.6323 GB, free: 5.539 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002422/0.4042, allocations: 1.08 MB / 0.6333 GB, free: 4.906 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004086/0.4083, allocations: 3.898 MB / 0.6372 GB, free: 2.73 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001358/0.4097, allocations: 0.9052 MB / 0.638 GB, free: 2.152 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.4119, allocations: 1.117 MB / 0.6391 GB, free: 1.508 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001387/0.4133, allocations: 0.8541 MB / 0.64 GB, free: 1.012 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.4135, allocations: 41.94 kB / 0.64 GB, free: 1.012 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002228/0.4157, allocations: 1.325 MB / 0.6413 GB, free: 264 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.416, allocations: 218.9 kB / 0.6415 GB, free: 96 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008309/0.4168, allocations: 0.6272 MB / 0.6421 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002491/0.4193, allocations: 2.191 MB / 0.6443 GB, free: 14.25 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4193, allocations: 4 kB / 0.6443 GB, free: 14.25 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4193, allocations: 0 / 0.6443 GB, free: 14.25 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.136e-05/0.4194, allocations: 0 / 0.6443 GB, free: 14.25 MB / 478.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.002466/0.4218, allocations: 1.477 MB / 0.6457 GB, free: 13.09 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.4219, allocations: 9.156 kB / 0.6457 GB, free: 13.09 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.422, allocations: 123.5 kB / 0.6458 GB, free: 12.98 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001959/0.424, allocations: 472 kB / 0.6463 GB, free: 12.79 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.4257, allocations: 1.137 MB / 0.6474 GB, free: 11.87 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003188/0.426, allocations: 123.6 kB / 0.6475 GB, free: 11.82 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.4261, allocations: 89.88 kB / 0.6476 GB, free: 11.79 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.4279, allocations: 1.007 MB / 0.6486 GB, free: 11.16 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.428, allocations: 0 / 0.6486 GB, free: 11.16 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-05/0.428, allocations: 30.72 kB / 0.6486 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.4281, allocations: 19.84 kB / 0.6486 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002121/0.4302, allocations: 0.9207 MB / 0.6495 GB, free: 10.71 MB / 478.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.005393/0.4356, allocations: 4.902 MB / 0.6543 GB, free: 5.578 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/0.4389, allocations: 0.8897 MB / 0.6552 GB, free: 4.68 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007066/0.4396, allocations: 328.6 kB / 0.6555 GB, free: 4.355 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005362/0.4402, allocations: 0.9024 MB / 0.6564 GB, free: 3.25 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.4402, allocations: 38.5 kB / 0.6564 GB, free: 3.203 MB / 478.1 MB Notification: Performance of pre-optimization done (n=43): time 2.956e-06/0.4402, allocations: 7.984 kB / 0.6564 GB, free: 3.195 MB / 478.1 MB Notification: Performance of matching and sorting (n=43): time 0.008325/0.4485, allocations: 2.165 MB / 0.6585 GB, free: 1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.4486, allocations: 59.34 kB / 0.6586 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/0.4499, allocations: 1.055 MB / 0.6596 GB, free: 15.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.032e-05/0.45, allocations: 37.7 kB / 0.6597 GB, free: 15.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003645/0.4503, allocations: 0.5195 MB / 0.6602 GB, free: 15.29 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.4504, allocations: 149.8 kB / 0.6603 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-05/0.4505, allocations: 53.69 kB / 0.6604 GB, free: 15.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.989e-05/0.4506, allocations: 326 kB / 0.6607 GB, free: 14.76 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008516/0.4515, allocations: 324.9 kB / 0.661 GB, free: 14.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000977/0.4525, allocations: 0.5337 MB / 0.6615 GB, free: 13.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.454, allocations: 0.7364 MB / 0.6622 GB, free: 13.03 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4541, allocations: 3.938 kB / 0.6622 GB, free: 13.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002458/0.4565, allocations: 1.052 MB / 0.6633 GB, free: 11.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.4566, allocations: 209.3 kB / 0.6635 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4566, allocations: 4 kB / 0.6635 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.4578, allocations: 341.4 kB / 0.6638 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.4583, allocations: 127.8 kB / 0.6639 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.4597, allocations: 0.9482 MB / 0.6648 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.4609, allocations: 188.1 kB / 0.665 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.849e-05/0.461, allocations: 27.98 kB / 0.665 GB, free: 10.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.113e-06/0.461, allocations: 4 kB / 0.665 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002281/0.4633, allocations: 0.9146 MB / 0.6659 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.4633, allocations: 12.06 kB / 0.6659 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.4643, allocations: 320.5 kB / 0.6662 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000475/0.4648, allocations: 127.8 kB / 0.6664 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/0.4661, allocations: 0.9321 MB / 0.6673 GB, free: 7.719 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.4671, allocations: 175.4 kB / 0.6674 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.845e-05/0.4672, allocations: 24.09 kB / 0.6675 GB, free: 7.523 MB / 494.1 MB 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.0004222/0.4676, allocations: 364.8 kB / 0.6678 GB, free: 7.156 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4677, allocations: 106.7 kB / 0.6679 GB, free: 7.051 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/0.4713, allocations: 1.2 MB / 0.6691 GB, free: 5.84 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.4714, allocations: 7.984 kB / 0.6691 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4714, allocations: 0 / 0.6691 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.4714, allocations: 3.938 kB / 0.6691 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004697/0.4761, allocations: 2.261 MB / 0.6713 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.4761, allocations: 0 / 0.6713 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.4764, allocations: 67.89 kB / 0.6714 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009765/0.4774, allocations: 326.8 kB / 0.6717 GB, free: 3.098 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.702e-05/0.4774, allocations: 19.98 kB / 0.6717 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.4788, allocations: 0.9659 MB / 0.6727 GB, free: 2.086 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4788, allocations: 8.062 kB / 0.6727 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003512/0.4823, allocations: 1.264 MB / 0.6739 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004072/0.4827, allocations: 283.5 kB / 0.6742 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.4829, allocations: 8 kB / 0.6742 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008555/0.4837, allocations: 119.7 kB / 0.6743 GB, free: 352 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.141e-05/0.4838, allocations: 35.94 kB / 0.6743 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/0.4839, allocations: 23.98 kB / 0.6743 GB, free: 292 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.4849, allocations: 0.7467 MB / 0.6751 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4849, allocations: 0 / 0.6751 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001356/0.4863, allocations: 0.5574 MB / 0.6756 GB, free: 14.97 MB / 0.4981 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.004328/0.4906, allocations: 2.073 MB / 0.6776 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002973/0.4936, allocations: 1.165 MB / 0.6788 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.4936, allocations: 7.938 kB / 0.6788 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008306/0.4944, allocations: 367.1 kB / 0.6791 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/0.4971, allocations: 0.5049 MB / 0.6796 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01706/0.5142, allocations: 9.196 MB / 0.6886 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.5147, allocations: 1.065 MB / 0.6896 GB, free: 112 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008732/0.5156, allocations: 223.5 kB / 0.6899 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004532/0.5161, allocations: 403.3 kB / 0.6902 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of SimCode: time 6.21e-07/0.5161, allocations: 0 / 0.6902 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.195/2.711, allocations: 32.05 MB / 0.7215 GB, free: 15.88 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002388/2.712, allocations: 267.2 kB / 0.7218 GB, free: 15.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.145/5.856, allocations: 0 / 0.7218 GB, free: 15.53 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)