Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_9_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.0009455/0.0009455, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.007007/0.007007, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.317/1.317, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.339/2.339, allocations: 390.9 MB / 0.6664 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003424, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5521/0.5525, allocations: 142.4 MB / 0.9552 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.0512/0.6037, allocations: 59.75 MB / 1.014 GB, free: 3.359 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0145/0.6182, allocations: 11.91 MB / 1.025 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001379/0.6197, allocations: 51.62 kB / 1.025 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.621, allocations: 0.5438 MB / 1.026 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.003944/0.625, allocations: 1.815 MB / 1.028 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002324/0.6273, allocations: 1.091 MB / 1.029 GB, free: 3.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.003711/0.631, allocations: 3.894 MB / 1.032 GB, free: 8 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.6322, allocations: 0.9041 MB / 1.033 GB, free: 15.07 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.6339, allocations: 1.116 MB / 1.034 GB, free: 13.95 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009997/0.635, allocations: 0.8553 MB / 1.035 GB, free: 13.09 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.6351, allocations: 40 kB / 1.035 GB, free: 13.05 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002185/0.6373, allocations: 1.321 MB / 1.037 GB, free: 11.73 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.6375, allocations: 210.8 kB / 1.037 GB, free: 11.52 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0005701/0.6381, allocations: 0.6311 MB / 1.037 GB, free: 10.88 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002304/0.6404, allocations: 2.185 MB / 1.039 GB, free: 8.691 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.6404, allocations: 4 kB / 1.039 GB, free: 8.688 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6404, allocations: 4 kB / 1.039 GB, free: 8.684 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.259e-05/0.6404, allocations: 0 / 1.039 GB, free: 8.684 MB / 0.795 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.002425/0.6428, allocations: 1.477 MB / 1.041 GB, free: 7.148 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.6429, allocations: 8.031 kB / 1.041 GB, free: 7.141 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.643, allocations: 118.9 kB / 1.041 GB, free: 7.016 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002237/0.6453, allocations: 486.6 kB / 1.041 GB, free: 6.539 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/0.6471, allocations: 1.124 MB / 1.043 GB, free: 5.355 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003725/0.6475, allocations: 129.9 kB / 1.043 GB, free: 5.23 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.6477, allocations: 80 kB / 1.043 GB, free: 5.152 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001959/0.6496, allocations: 1.009 MB / 1.044 GB, free: 4.098 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.6497, allocations: 0 / 1.044 GB, free: 4.098 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-05/0.6497, allocations: 32 kB / 1.044 GB, free: 4.066 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.6498, allocations: 23.98 kB / 1.044 GB, free: 4.043 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002368/0.6521, allocations: 0.9133 MB / 1.045 GB, free: 3.129 MB / 0.795 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.005768/0.6579, allocations: 4.887 MB / 1.049 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00363/0.6616, allocations: 0.9031 MB / 1.05 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007634/0.6623, allocations: 322.2 kB / 1.051 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005878/0.663, allocations: 0.9102 MB / 1.052 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.663, allocations: 38.56 kB / 1.052 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=43): time 2.304e-06/0.663, allocations: 0 / 1.052 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=43): time 0.009235/0.6722, allocations: 2.161 MB / 1.054 GB, free: 9.305 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.6723, allocations: 59.36 kB / 1.054 GB, free: 9.234 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.6737, allocations: 1.059 MB / 1.055 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.488e-05/0.6738, allocations: 37.7 kB / 1.055 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.6742, allocations: 0.5234 MB / 1.055 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.6743, allocations: 145.9 kB / 1.055 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.44e-05/0.6744, allocations: 53.69 kB / 1.056 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.158e-05/0.6745, allocations: 325.9 kB / 1.056 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009304/0.6754, allocations: 320.9 kB / 1.056 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.6765, allocations: 0.5454 MB / 1.057 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.6783, allocations: 0.7279 MB / 1.057 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.6783, allocations: 4 kB / 1.057 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00267/0.6809, allocations: 1.055 MB / 1.058 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.6811, allocations: 217.6 kB / 1.059 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.6811, allocations: 7.938 kB / 1.059 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.6824, allocations: 339.1 kB / 1.059 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005408/0.6829, allocations: 127.8 kB / 1.059 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.6844, allocations: 0.9347 MB / 1.06 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.6857, allocations: 195.3 kB / 1.06 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.869e-05/0.6858, allocations: 31.98 kB / 1.06 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.163e-06/0.6858, allocations: 4 kB / 1.06 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002518/0.6883, allocations: 0.9101 MB / 1.061 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.6883, allocations: 4.438 kB / 1.061 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.6894, allocations: 328.6 kB / 1.061 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005255/0.69, allocations: 127.9 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.6914, allocations: 0.9404 MB / 1.062 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.6925, allocations: 159.5 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.277e-05/0.6926, allocations: 31.98 kB / 1.063 GB, free: 15.81 MB / 0.8262 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.0004148/0.693, allocations: 356.8 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.6932, allocations: 110.6 kB / 1.063 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003978/0.6971, allocations: 1.199 MB / 1.064 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.6972, allocations: 11.94 kB / 1.064 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.6972, allocations: 3.984 kB / 1.064 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.6972, allocations: 0 / 1.064 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005179/0.7024, allocations: 2.261 MB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.423e-06/0.7024, allocations: 4 kB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002945/0.7027, allocations: 67.89 kB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.7038, allocations: 338.2 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.7038, allocations: 11.98 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.7053, allocations: 0.9659 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.7053, allocations: 4.031 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/0.7091, allocations: 1.257 MB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003841/0.7095, allocations: 291.4 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.7096, allocations: 15.94 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009628/0.7106, allocations: 115.8 kB / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.516e-05/0.7107, allocations: 35.89 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.973e-05/0.7108, allocations: 19.98 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001104/0.7119, allocations: 0.7467 MB / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7119, allocations: 0 / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001445/0.7133, allocations: 0.5613 MB / 1.071 GB, free: 7.254 MB / 0.8262 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.00464/0.718, allocations: 2.068 MB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003207/0.7212, allocations: 1.169 MB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.7212, allocations: 4 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0009296/0.7221, allocations: 370.3 kB / 1.074 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/0.7249, allocations: 0.4986 MB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01878/0.7437, allocations: 9.207 MB / 1.084 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.7443, allocations: 1.061 MB / 1.085 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0008777/0.7452, allocations: 220.6 kB / 1.085 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005134/0.7457, allocations: 403.3 kB / 1.085 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.7457, allocations: 0 / 1.085 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05444/0.8002, allocations: 32.06 MB / 1.117 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002183/0.8004, allocations: 268.3 kB / 1.117 GB, free: 7.77 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.469/3.269, allocations: 4 kB / 1.117 GB, free: 7.766 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)