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.001032/0.001032, allocations: 108 kB / 15.61 MB, free: 152 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.001015/0.001015, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.223/1.223, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.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.464/2.464, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.89 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5253/0.5265, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05327/0.5798, allocations: 61.22 MB / 1.077 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01436/0.5942, allocations: 11.99 MB / 1.089 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.5956, allocations: 55.69 kB / 1.089 GB, free: 8.969 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.5971, allocations: 0.6869 MB / 1.09 GB, free: 8.277 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003733/0.6008, allocations: 1.963 MB / 1.092 GB, free: 6.305 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.6031, allocations: 1.198 MB / 1.093 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00274/0.6059, allocations: 3.075 MB / 1.096 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.607, allocations: 1.094 MB / 1.097 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002128/0.6091, allocations: 1.33 MB / 1.098 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009603/0.6101, allocations: 0.8906 MB / 1.099 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.6103, allocations: 116 kB / 1.099 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002154/0.6124, allocations: 1.435 MB / 1.1 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002381/0.6127, allocations: 298.8 kB / 1.101 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0005787/0.6133, allocations: 0.6881 MB / 1.101 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002378/0.6157, allocations: 2.271 MB / 1.104 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.6157, allocations: 0 / 1.104 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.113e-06/0.6157, allocations: 0 / 1.104 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.239e-05/0.6157, allocations: 0 / 1.104 GB, free: 9.867 MB / 0.8575 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.00254/0.6182, allocations: 1.715 MB / 1.105 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.6183, allocations: 11.97 kB / 1.105 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001271/0.6184, allocations: 126.9 kB / 1.105 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002065/0.6205, allocations: 410.8 kB / 1.106 GB, free: 7.543 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/0.6222, allocations: 1.097 MB / 1.107 GB, free: 6.391 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/0.6226, allocations: 117.9 kB / 1.107 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.6227, allocations: 80 kB / 1.107 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.6245, allocations: 1.009 MB / 1.108 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.6246, allocations: 7.938 kB / 1.108 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.543e-05/0.6246, allocations: 32 kB / 1.108 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.6247, allocations: 20 kB / 1.108 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002217/0.6269, allocations: 0.8587 MB / 1.109 GB, free: 4.211 MB / 0.8575 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.005629/0.6325, allocations: 5.27 MB / 1.114 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003366/0.6359, allocations: 0.7964 MB / 1.115 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.6366, allocations: 306.2 kB / 1.115 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000587/0.6372, allocations: 0.9102 MB / 1.116 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.6373, allocations: 34.5 kB / 1.116 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=43): time 1.734e-06/0.6373, allocations: 0 / 1.116 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.008355/0.6456, allocations: 1.918 MB / 1.118 GB, free: 10.35 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.6457, allocations: 63.39 kB / 1.118 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.647, allocations: 1.068 MB / 1.119 GB, free: 9.195 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.6471, allocations: 37.7 kB / 1.119 GB, free: 9.152 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003752/0.6475, allocations: 0.5351 MB / 1.12 GB, free: 8.613 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.6476, allocations: 145.8 kB / 1.12 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.6478, allocations: 142.1 kB / 1.12 GB, free: 8.324 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6479, allocations: 326 kB / 1.12 GB, free: 8 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009061/0.6488, allocations: 319.2 kB / 1.121 GB, free: 7.684 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/0.6499, allocations: 0.5346 MB / 1.121 GB, free: 7.051 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/0.6516, allocations: 0.7213 MB / 1.122 GB, free: 6.258 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.6516, allocations: 8 kB / 1.122 GB, free: 6.25 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002624/0.6542, allocations: 1.027 MB / 1.123 GB, free: 5.211 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.6542, allocations: 8 kB / 1.123 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.6543, allocations: 4 kB / 1.123 GB, free: 5.199 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.6555, allocations: 317.4 kB / 1.123 GB, free: 4.887 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005325/0.6561, allocations: 135.7 kB / 1.123 GB, free: 4.754 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.6575, allocations: 0.9159 MB / 1.124 GB, free: 3.812 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.6586, allocations: 156.7 kB / 1.124 GB, free: 3.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.946e-05/0.6587, allocations: 31.98 kB / 1.124 GB, free: 3.629 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001112/0.6598, allocations: 0.5168 MB / 1.125 GB, free: 3.105 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001034/0.6608, allocations: 0.5346 MB / 1.125 GB, free: 2.473 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001644/0.6625, allocations: 0.718 MB / 1.126 GB, free: 1.684 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.238e-06/0.6625, allocations: 0 / 1.126 GB, free: 1.684 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002601/0.6651, allocations: 1.02 MB / 1.127 GB, free: 0.6523 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.6651, allocations: 8 kB / 1.127 GB, free: 0.6445 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.6652, allocations: 4 kB / 1.127 GB, free: 0.6406 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.6662, allocations: 306.6 kB / 1.127 GB, free: 348 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005233/0.6667, allocations: 131.7 kB / 1.127 GB, free: 216 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.6682, allocations: 0.9113 MB / 1.128 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.6693, allocations: 135.6 kB / 1.128 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.324e-05/0.6693, allocations: 35.98 kB / 1.128 GB, free: 15.11 MB / 0.8887 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.0001833/0.6695, allocations: 224.7 kB / 1.129 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.6697, allocations: 110.7 kB / 1.129 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00373/0.6735, allocations: 1.098 MB / 1.13 GB, free: 13.65 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.6735, allocations: 11.94 kB / 1.13 GB, free: 13.64 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6735, allocations: 4 kB / 1.13 GB, free: 13.64 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.6735, allocations: 7.984 kB / 1.13 GB, free: 13.63 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004883/0.6784, allocations: 2.173 MB / 1.132 GB, free: 11.38 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.6784, allocations: 4 kB / 1.132 GB, free: 11.37 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002727/0.6787, allocations: 68.17 kB / 1.132 GB, free: 11.3 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009704/0.6797, allocations: 302.3 kB / 1.132 GB, free: 11.01 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.6797, allocations: 12 kB / 1.132 GB, free: 11 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.6812, allocations: 0.9425 MB / 1.133 GB, free: 10.03 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.6812, allocations: 11.94 kB / 1.133 GB, free: 10.02 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003517/0.6847, allocations: 1.16 MB / 1.134 GB, free: 8.809 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/0.6851, allocations: 267.5 kB / 1.135 GB, free: 8.527 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.6852, allocations: 12 kB / 1.135 GB, free: 8.516 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008126/0.686, allocations: 71.91 kB / 1.135 GB, free: 8.445 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.664e-05/0.6861, allocations: 35.89 kB / 1.135 GB, free: 8.41 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.6862, allocations: 23.92 kB / 1.135 GB, free: 8.387 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001071/0.6873, allocations: 0.759 MB / 1.136 GB, free: 7.621 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6873, allocations: 0 / 1.136 GB, free: 7.621 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001384/0.6887, allocations: 0.5614 MB / 1.136 GB, free: 7.059 MB / 0.8887 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.004516/0.6932, allocations: 1.981 MB / 1.138 GB, free: 5.027 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003167/0.6964, allocations: 1.149 MB / 1.139 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.6964, allocations: 4 kB / 1.139 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008841/0.6973, allocations: 346.6 kB / 1.14 GB, free: 3.539 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/0.6994, allocations: 0.5062 MB / 1.14 GB, free: 3.047 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01587/0.7153, allocations: 8.749 MB / 1.149 GB, free: 9.82 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005794/0.7159, allocations: 1.065 MB / 1.15 GB, free: 8.723 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0008395/0.7167, allocations: 220.8 kB / 1.15 GB, free: 8.504 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004978/0.7172, allocations: 407.3 kB / 1.15 GB, free: 8.105 MB / 0.9044 GB Notification: Performance of SimCode: time 3.5e-07/0.7172, allocations: 0 / 1.15 GB, free: 8.105 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.019/2.737, allocations: 33.37 MB / 1.183 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/17.54, allocations: 9.938 kB / 1.183 GB, free: 7.145 MB / 0.9356 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=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)