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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001917/0.001917, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002063/0.002063, allocations: 193.4 kB / 16.25 MB, free: 6.621 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.431/1.431, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.456/2.456, allocations: 390.2 MB / 0.6644 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 63.91 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5874/0.5889, allocations: 140.4 MB / 0.9492 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05337/0.6423, allocations: 60.71 MB / 1.009 GB, free: 5.145 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01556/0.6579, allocations: 11.91 MB / 1.02 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002192/0.6602, allocations: 55.62 kB / 1.02 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.6624, allocations: 0.579 MB / 1.021 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006028/0.6685, allocations: 1.832 MB / 1.023 GB, free: 6.727 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002894/0.6714, allocations: 1.093 MB / 1.024 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004425/0.6758, allocations: 3.104 MB / 1.027 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/0.6776, allocations: 1.102 MB / 1.028 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002805/0.6804, allocations: 1.346 MB / 1.029 GB, free: 56 kB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.6817, allocations: 0.9141 MB / 1.03 GB, free: 15.13 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002814/0.682, allocations: 116 kB / 1.03 GB, free: 15.02 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00274/0.6848, allocations: 1.45 MB / 1.031 GB, free: 13.57 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000371/0.6852, allocations: 290.9 kB / 1.032 GB, free: 13.29 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0009839/0.6862, allocations: 0.7036 MB / 1.032 GB, free: 12.58 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003564/0.6897, allocations: 2.279 MB / 1.035 GB, free: 10.29 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.6897, allocations: 0 / 1.035 GB, free: 10.29 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.367e-06/0.6898, allocations: 0 / 1.035 GB, free: 10.29 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.543e-05/0.6898, allocations: 3.938 kB / 1.035 GB, free: 10.29 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.003488/0.6933, allocations: 1.715 MB / 1.036 GB, free: 8.512 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.6934, allocations: 8.031 kB / 1.036 GB, free: 8.504 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000177/0.6935, allocations: 126.9 kB / 1.036 GB, free: 8.371 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002237/0.6958, allocations: 410.6 kB / 1.037 GB, free: 7.969 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.6985, allocations: 1.12 MB / 1.038 GB, free: 6.793 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003328/0.6989, allocations: 117.9 kB / 1.038 GB, free: 6.676 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.699, allocations: 80 kB / 1.038 GB, free: 6.598 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001957/0.701, allocations: 0.9816 MB / 1.039 GB, free: 5.574 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.701, allocations: 4 kB / 1.039 GB, free: 5.57 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.589e-05/0.7011, allocations: 32 kB / 1.039 GB, free: 5.539 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.7011, allocations: 16 kB / 1.039 GB, free: 5.523 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.7033, allocations: 0.8742 MB / 1.04 GB, free: 4.645 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.006259/0.7096, allocations: 4.84 MB / 1.045 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003213/0.7128, allocations: 0.792 MB / 1.045 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006589/0.7135, allocations: 300.7 kB / 1.046 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005869/0.7141, allocations: 0.9024 MB / 1.047 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.7141, allocations: 46.48 kB / 1.047 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=43): time 2.354e-06/0.7141, allocations: 0 / 1.047 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of matching and sorting (n=43): time 0.008279/0.7224, allocations: 1.911 MB / 1.049 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.7225, allocations: 59.36 kB / 1.049 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001767/0.7242, allocations: 1.044 MB / 1.05 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.799e-05/0.7244, allocations: 37.7 kB / 1.05 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004195/0.7248, allocations: 0.5273 MB / 1.05 GB, free: 9.547 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.725, allocations: 157.8 kB / 1.05 GB, free: 9.391 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.7252, allocations: 130 kB / 1.05 GB, free: 9.258 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.7253, allocations: 325.9 kB / 1.051 GB, free: 8.934 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008415/0.7262, allocations: 310.9 kB / 1.051 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.7272, allocations: 0.5025 MB / 1.052 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.7287, allocations: 0.6966 MB / 1.052 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.7288, allocations: 8 kB / 1.052 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002696/0.7315, allocations: 0.9695 MB / 1.053 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.7315, allocations: 8 kB / 1.053 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.7315, allocations: 7.984 kB / 1.053 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.7328, allocations: 319 kB / 1.054 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.7334, allocations: 119.8 kB / 1.054 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.7348, allocations: 0.919 MB / 1.055 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.7362, allocations: 171.2 kB / 1.055 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.307e-05/0.7363, allocations: 27.98 kB / 1.055 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001215/0.7375, allocations: 0.5127 MB / 1.055 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009794/0.7385, allocations: 0.5022 MB / 1.056 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001501/0.74, allocations: 0.6641 MB / 1.056 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.186e-06/0.74, allocations: 0 / 1.056 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002519/0.7426, allocations: 0.9884 MB / 1.057 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.7426, allocations: 9.875 kB / 1.057 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.7426, allocations: 4 kB / 1.057 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.7437, allocations: 311.2 kB / 1.058 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004963/0.7442, allocations: 119.8 kB / 1.058 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.7455, allocations: 0.8997 MB / 1.059 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.7468, allocations: 159.5 kB / 1.059 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.525e-05/0.7469, allocations: 35.92 kB / 1.059 GB, free: 336 kB / 0.8106 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.0002398/0.7471, allocations: 212.1 kB / 1.059 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003063/0.7475, allocations: 110.6 kB / 1.059 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003664/0.7511, allocations: 1.109 MB / 1.06 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.7512, allocations: 8.094 kB / 1.06 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.7512, allocations: 0 / 1.06 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.7512, allocations: 3.984 kB / 1.06 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005013/0.7562, allocations: 2.167 MB / 1.062 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.7562, allocations: 0 / 1.062 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.7565, allocations: 60.17 kB / 1.062 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009383/0.7574, allocations: 304.5 kB / 1.063 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/0.7575, allocations: 16 kB / 1.063 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.7589, allocations: 0.942 MB / 1.064 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.7589, allocations: 7.938 kB / 1.064 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003321/0.7623, allocations: 1.163 MB / 1.065 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004355/0.7627, allocations: 263.5 kB / 1.065 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/0.7629, allocations: 8 kB / 1.065 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009106/0.7638, allocations: 99.8 kB / 1.065 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/0.7639, allocations: 35.89 kB / 1.065 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.183e-05/0.764, allocations: 27.92 kB / 1.065 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001115/0.7651, allocations: 0.7389 MB / 1.066 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.7651, allocations: 3.938 kB / 1.066 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001485/0.7666, allocations: 0.5574 MB / 1.066 GB, free: 8.301 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.004167/0.7708, allocations: 1.979 MB / 1.068 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002905/0.7737, allocations: 1.114 MB / 1.069 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.7737, allocations: 4 kB / 1.069 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008022/0.7745, allocations: 358.5 kB / 1.07 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.7767, allocations: 0.4998 MB / 1.07 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01864/0.7953, allocations: 8.928 MB / 1.079 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006019/0.796, allocations: 1.065 MB / 1.08 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000973/0.797, allocations: 216.6 kB / 1.08 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005372/0.7975, allocations: 411.3 kB / 1.081 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of SimCode: time 8.51e-07/0.7975, allocations: 0 / 1.081 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.225/3.022, allocations: 32.74 MB / 1.113 GB, free: 8.941 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003208/3.023, allocations: 261.2 kB / 1.113 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/5.653, allocations: 0 / 1.113 GB, free: 8.59 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)