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.001272/0.001272, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001434/0.001435, allocations: 187.7 kB / 16.13 MB, free: 6.645 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.377/1.377, allocations: 222.9 MB / 239.8 MB, free: 4.566 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.361/2.361, allocations: 390.2 MB / 0.6643 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 71.89 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5796/0.5809, allocations: 140.4 MB / 0.949 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05222/0.6332, allocations: 60.85 MB / 1.008 GB, free: 5.105 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0151/0.6483, allocations: 12.05 MB / 1.02 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.6502, allocations: 55.62 kB / 1.02 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001731/0.6519, allocations: 0.5516 MB / 1.021 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004642/0.6566, allocations: 1.8 MB / 1.023 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002772/0.6594, allocations: 1.076 MB / 1.024 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004556/0.664, allocations: 3.906 MB / 1.027 GB, free: 1.617 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.6656, allocations: 0.9257 MB / 1.028 GB, free: 0.6641 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002771/0.6684, allocations: 1.155 MB / 1.029 GB, free: 15.5 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/0.6699, allocations: 0.8943 MB / 1.03 GB, free: 14.61 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002822/0.6702, allocations: 56 kB / 1.03 GB, free: 14.55 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003189/0.6734, allocations: 1.333 MB / 1.032 GB, free: 13.21 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004453/0.6739, allocations: 242.8 kB / 1.032 GB, free: 12.98 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.6754, allocations: 0.6295 MB / 1.033 GB, free: 12.34 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004239/0.6797, allocations: 2.236 MB / 1.035 GB, free: 10.1 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.6797, allocations: 8 kB / 1.035 GB, free: 10.09 MB / 0.795 GB Notification: Performance of FrontEnd: time 9.52e-07/0.6797, allocations: 0 / 1.035 GB, free: 10.09 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.177e-05/0.6798, allocations: 0 / 1.035 GB, free: 10.09 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.004116/0.6839, allocations: 1.715 MB / 1.036 GB, free: 8.316 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.6839, allocations: 12.03 kB / 1.036 GB, free: 8.305 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.6841, allocations: 122.9 kB / 1.037 GB, free: 8.176 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002284/0.6864, allocations: 414.6 kB / 1.037 GB, free: 7.77 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002312/0.6887, allocations: 1.116 MB / 1.038 GB, free: 6.598 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003423/0.6891, allocations: 117.9 kB / 1.038 GB, free: 6.48 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.6892, allocations: 80 kB / 1.038 GB, free: 6.402 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/0.6911, allocations: 0.9817 MB / 1.039 GB, free: 5.379 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.6912, allocations: 3.938 kB / 1.039 GB, free: 5.375 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.588e-05/0.6912, allocations: 32 kB / 1.039 GB, free: 5.344 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.6913, allocations: 20 kB / 1.039 GB, free: 5.324 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002328/0.6936, allocations: 0.8625 MB / 1.04 GB, free: 4.457 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.006017/0.6996, allocations: 4.848 MB / 1.045 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003377/0.703, allocations: 0.7977 MB / 1.046 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006996/0.7037, allocations: 304.7 kB / 1.046 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006076/0.7044, allocations: 0.9025 MB / 1.047 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.7044, allocations: 34.56 kB / 1.047 GB, free: 13 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=43): time 2.014e-06/0.7044, allocations: 0 / 1.047 GB, free: 13 MB / 0.8106 GB Notification: Performance of matching and sorting (n=43): time 0.008543/0.7129, allocations: 1.919 MB / 1.049 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.713, allocations: 63.34 kB / 1.049 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.7146, allocations: 1.044 MB / 1.05 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.519e-05/0.7147, allocations: 37.7 kB / 1.05 GB, free: 9.875 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000404/0.7151, allocations: 0.5195 MB / 1.05 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.7153, allocations: 153.8 kB / 1.05 GB, free: 9.199 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/0.7155, allocations: 130 kB / 1.051 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.7156, allocations: 329.9 kB / 1.051 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008472/0.7165, allocations: 306.9 kB / 1.051 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.7175, allocations: 0.5103 MB / 1.052 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.7192, allocations: 0.6811 MB / 1.052 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.7192, allocations: 4 kB / 1.052 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002556/0.7217, allocations: 0.9849 MB / 1.053 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.7218, allocations: 8 kB / 1.053 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.7218, allocations: 4 kB / 1.053 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.7231, allocations: 313.1 kB / 1.054 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/0.7236, allocations: 119.8 kB / 1.054 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.7251, allocations: 0.924 MB / 1.055 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.7264, allocations: 168.1 kB / 1.055 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.489e-05/0.7265, allocations: 31.98 kB / 1.055 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001173/0.7277, allocations: 0.501 MB / 1.055 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009993/0.7287, allocations: 0.5022 MB / 1.056 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001545/0.7303, allocations: 0.6797 MB / 1.056 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.256e-06/0.7303, allocations: 0 / 1.056 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002944/0.7332, allocations: 0.9888 MB / 1.057 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.7333, allocations: 8 kB / 1.057 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.7333, allocations: 4 kB / 1.057 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.7344, allocations: 306.7 kB / 1.058 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005144/0.7349, allocations: 115.8 kB / 1.058 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.7364, allocations: 0.9113 MB / 1.059 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.7377, allocations: 159.5 kB / 1.059 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.288e-05/0.7378, allocations: 31.98 kB / 1.059 GB, free: 136 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.0002376/0.738, allocations: 220.1 kB / 1.059 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.7382, allocations: 110.6 kB / 1.059 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/0.742, allocations: 1.105 MB / 1.06 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.742, allocations: 7.984 kB / 1.06 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.742, allocations: 0 / 1.06 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.742, allocations: 96 / 1.06 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00505/0.7471, allocations: 2.159 MB / 1.062 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.7471, allocations: 11.97 kB / 1.062 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.7474, allocations: 59.89 kB / 1.062 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/0.7484, allocations: 302.2 kB / 1.063 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.7485, allocations: 19.98 kB / 1.063 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.7499, allocations: 0.9397 MB / 1.064 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.7499, allocations: 0 / 1.064 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003605/0.7535, allocations: 1.163 MB / 1.065 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005643/0.7541, allocations: 263.5 kB / 1.065 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/0.7543, allocations: 8 kB / 1.065 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008965/0.7552, allocations: 99.8 kB / 1.065 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.7553, allocations: 43.77 kB / 1.065 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-05/0.7553, allocations: 23.98 kB / 1.065 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001105/0.7564, allocations: 0.7389 MB / 1.066 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7564, allocations: 0 / 1.066 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001423/0.7579, allocations: 0.5574 MB / 1.067 GB, free: 8.109 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.004518/0.7624, allocations: 1.979 MB / 1.068 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003204/0.7656, allocations: 1.086 MB / 1.07 GB, free: 5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.7657, allocations: 4 kB / 1.07 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0009292/0.7666, allocations: 358.4 kB / 1.07 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.7691, allocations: 0.4925 MB / 1.07 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/0.7875, allocations: 8.939 MB / 1.079 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005942/0.7881, allocations: 1.057 MB / 1.08 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0009314/0.7891, allocations: 220.6 kB / 1.08 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/0.7896, allocations: 411.3 kB / 1.081 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of SimCode: time 1.012e-06/0.7896, allocations: 0 / 1.081 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7005/1.49, allocations: 31.93 MB / 1.112 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/1.49, allocations: 263.4 kB / 1.112 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/4.218, allocations: 3.938 kB / 1.112 GB, free: 9.184 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)