Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_10_Buildings_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.006617/0.006617, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001838/0.001838, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.306/2.306, allocations: 437.1 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 63.91 kB / 1.018 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6126/0.6144, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06108/0.6755, allocations: 61.22 MB / 1.226 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01539/0.6909, allocations: 11.99 MB / 1.238 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.6923, allocations: 59.62 kB / 1.238 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.6939, allocations: 0.6792 MB / 1.238 GB, free: 9.578 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004228/0.6981, allocations: 1.968 MB / 1.24 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002484/0.7006, allocations: 1.218 MB / 1.242 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003421/0.704, allocations: 3.079 MB / 1.245 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.7053, allocations: 1.088 MB / 1.246 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002239/0.7075, allocations: 1.348 MB / 1.247 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001062/0.7086, allocations: 0.8906 MB / 1.248 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.7088, allocations: 116 kB / 1.248 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00225/0.711, allocations: 1.439 MB / 1.249 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.7113, allocations: 290.9 kB / 1.25 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0006355/0.7119, allocations: 0.6958 MB / 1.25 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002648/0.7146, allocations: 2.296 MB / 1.252 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.7146, allocations: 4 kB / 1.252 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.042e-06/0.7146, allocations: 0 / 1.252 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.147e-05/0.7146, allocations: 0 / 1.252 GB, free: 11.1 MB / 0.9825 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.002683/0.7173, allocations: 1.767 MB / 1.254 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.7174, allocations: 8.922 kB / 1.254 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001431/0.7175, allocations: 126.9 kB / 1.254 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001951/0.7195, allocations: 415.6 kB / 1.255 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.7214, allocations: 1.172 MB / 1.256 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.458e-05/0.7215, allocations: 62 kB / 1.256 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.7216, allocations: 80 kB / 1.256 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.7235, allocations: 1.005 MB / 1.257 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.7235, allocations: 4 kB / 1.257 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.4e-05/0.7236, allocations: 35.94 kB / 1.257 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.7236, allocations: 16 kB / 1.257 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.7258, allocations: 0.8586 MB / 1.258 GB, free: 5.379 MB / 0.9825 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.005849/0.7316, allocations: 5.221 MB / 1.263 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003154/0.7348, allocations: 0.7841 MB / 1.264 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006715/0.7355, allocations: 296.7 kB / 1.264 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006509/0.7361, allocations: 0.9025 MB / 1.265 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.7362, allocations: 46.48 kB / 1.265 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=43): time 3.035e-06/0.7362, allocations: 3.984 kB / 1.265 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43): time 0.007654/0.7438, allocations: 1.845 MB / 1.267 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.7439, allocations: 55.41 kB / 1.267 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/0.7453, allocations: 1.079 MB / 1.268 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.7453, allocations: 37.7 kB / 1.268 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000423/0.7458, allocations: 0.5437 MB / 1.268 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.7459, allocations: 154.7 kB / 1.269 GB, free: 9.758 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.7461, allocations: 138.2 kB / 1.269 GB, free: 9.617 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.7462, allocations: 330 kB / 1.269 GB, free: 9.289 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008587/0.7471, allocations: 307.3 kB / 1.269 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.7481, allocations: 0.5346 MB / 1.27 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.7498, allocations: 0.7133 MB / 1.271 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.7498, allocations: 8 kB / 1.271 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002479/0.7523, allocations: 1.013 MB / 1.272 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.7523, allocations: 12 kB / 1.272 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.7523, allocations: 4 kB / 1.272 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.7534, allocations: 304.6 kB / 1.272 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.7539, allocations: 131.8 kB / 1.272 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.7553, allocations: 0.902 MB / 1.273 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009698/0.7563, allocations: 155.4 kB / 1.273 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.527e-05/0.7563, allocations: 35.98 kB / 1.273 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001085/0.7574, allocations: 0.509 MB / 1.274 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001015/0.7585, allocations: 0.5385 MB / 1.274 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001572/0.76, allocations: 0.7061 MB / 1.275 GB, free: 3.051 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.094e-06/0.7601, allocations: 0 / 1.275 GB, free: 3.051 MB / 0.9981 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002461/0.7625, allocations: 1.008 MB / 1.276 GB, free: 2.031 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.7625, allocations: 11.94 kB / 1.276 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.7625, allocations: 4 kB / 1.276 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009671/0.7635, allocations: 300.7 kB / 1.276 GB, free: 1.719 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004969/0.764, allocations: 127.8 kB / 1.276 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.7653, allocations: 0.893 MB / 1.277 GB, free: 0.6758 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009712/0.7663, allocations: 139.7 kB / 1.277 GB, free: 0.5391 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.426e-05/0.7664, allocations: 27.98 kB / 1.277 GB, free: 0.5117 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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.0001724/0.7666, allocations: 228 kB / 1.277 GB, free: 288 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.7667, allocations: 115.2 kB / 1.278 GB, free: 172 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.7703, allocations: 1.087 MB / 1.279 GB, free: 15.07 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.7703, allocations: 4 kB / 1.279 GB, free: 15.06 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.7703, allocations: 3.938 kB / 1.279 GB, free: 15.06 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.7703, allocations: 7.984 kB / 1.279 GB, free: 15.05 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00456/0.7749, allocations: 2.146 MB / 1.281 GB, free: 12.82 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.7749, allocations: 0 / 1.281 GB, free: 12.82 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.7751, allocations: 60.23 kB / 1.281 GB, free: 12.76 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008648/0.776, allocations: 306.9 kB / 1.281 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.7761, allocations: 11.98 kB / 1.281 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.7774, allocations: 0.9231 MB / 1.282 GB, free: 11.5 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/0.7774, allocations: 7.922 kB / 1.282 GB, free: 11.49 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/0.7807, allocations: 1.157 MB / 1.283 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003226/0.781, allocations: 272.2 kB / 1.283 GB, free: 10 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.7812, allocations: 12 kB / 1.283 GB, free: 9.992 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000735/0.7819, allocations: 67.91 kB / 1.283 GB, free: 9.926 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/0.782, allocations: 39.83 kB / 1.283 GB, free: 9.887 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.612e-05/0.782, allocations: 23.98 kB / 1.283 GB, free: 9.863 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001027/0.7831, allocations: 0.7551 MB / 1.284 GB, free: 9.102 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7831, allocations: 7.938 kB / 1.284 GB, free: 9.094 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001194/0.7843, allocations: 0.5691 MB / 1.285 GB, free: 8.523 MB / 1.014 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.004166/0.7885, allocations: 1.984 MB / 1.287 GB, free: 6.496 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002873/0.7913, allocations: 1.128 MB / 1.288 GB, free: 5.367 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.7914, allocations: 0 / 1.288 GB, free: 5.367 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0008268/0.7922, allocations: 346.5 kB / 1.288 GB, free: 5.027 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.7941, allocations: 0.4987 MB / 1.289 GB, free: 4.535 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.8087, allocations: 8.294 MB / 1.297 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000629/0.8093, allocations: 1.065 MB / 1.298 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0006285/0.81, allocations: 220.8 kB / 1.298 GB, free: 10.6 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/0.8105, allocations: 411.3 kB / 1.298 GB, free: 10.2 MB / 1.029 GB Notification: Performance of SimCode: time 2.8e-07/0.8105, allocations: 4 kB / 1.298 GB, free: 10.2 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.505/2.315, allocations: 33.56 MB / 1.331 GB, free: 9.008 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.56/22.87, allocations: 3.859 kB / 1.331 GB, free: 9.004 MB / 1.061 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)