Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_latest_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.001418/0.001418, 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.001692/0.001692, allocations: 195.9 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.543/2.543, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 68.62 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2465, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05257/0.2991, allocations: 61.2 MB / 1.113 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01427/0.3134, allocations: 12 MB / 1.124 GB, free: 14.82 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.3149, allocations: 59.62 kB / 1.124 GB, free: 14.76 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.3167, allocations: 0.683 MB / 1.125 GB, free: 14.07 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006411/0.3232, allocations: 1.962 MB / 1.127 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003113/0.3263, allocations: 1.197 MB / 1.128 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.00415/0.3305, allocations: 3.075 MB / 1.131 GB, free: 7.836 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001908/0.3324, allocations: 1.096 MB / 1.132 GB, free: 6.711 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003067/0.3355, allocations: 1.334 MB / 1.134 GB, free: 5.375 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001521/0.337, allocations: 0.8867 MB / 1.134 GB, free: 4.484 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002879/0.3373, allocations: 116 kB / 1.135 GB, free: 4.371 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002865/0.3402, allocations: 1.439 MB / 1.136 GB, free: 2.93 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0003565/0.3405, allocations: 290.9 kB / 1.136 GB, free: 2.645 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0009608/0.3415, allocations: 0.6958 MB / 1.137 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.003166/0.3447, allocations: 2.255 MB / 1.139 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3447, allocations: 0 / 1.139 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3447, allocations: 0 / 1.139 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.589e-05/0.3447, allocations: 0 / 1.139 GB, free: 15.68 MB / 0.9044 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.003114/0.3479, allocations: 1.73 MB / 1.141 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3479, allocations: 12.62 kB / 1.141 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/0.3481, allocations: 118.9 kB / 1.141 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002157/0.3502, allocations: 410.8 kB / 1.141 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001924/0.3522, allocations: 1.101 MB / 1.142 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003569/0.3525, allocations: 125.9 kB / 1.143 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.3527, allocations: 80 kB / 1.143 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.3546, allocations: 1.009 MB / 1.144 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.3546, allocations: 4 kB / 1.144 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.924e-05/0.3547, allocations: 32 kB / 1.144 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.3547, allocations: 23.94 kB / 1.144 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002259/0.357, allocations: 0.8625 MB / 1.144 GB, free: 10 MB / 0.9044 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.006066/0.363, allocations: 5.263 MB / 1.15 GB, free: 4.367 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003391/0.3664, allocations: 0.7959 MB / 1.15 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007211/0.3672, allocations: 302.4 kB / 1.151 GB, free: 3.262 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005968/0.3678, allocations: 0.8986 MB / 1.152 GB, free: 2.16 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.3678, allocations: 46.48 kB / 1.152 GB, free: 2.105 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=43): time 2.074e-06/0.3678, allocations: 0 / 1.152 GB, free: 2.105 MB / 0.9044 GB Notification: Performance of matching and sorting (n=43): time 0.008493/0.3763, allocations: 1.918 MB / 1.153 GB, free: 160 kB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.3764, allocations: 59.36 kB / 1.154 GB, free: 88 kB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.378, allocations: 1.076 MB / 1.155 GB, free: 14.99 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.81e-05/0.378, allocations: 37.7 kB / 1.155 GB, free: 14.95 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004013/0.3784, allocations: 0.5272 MB / 1.155 GB, free: 14.42 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.3786, allocations: 153.8 kB / 1.155 GB, free: 14.27 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002197/0.3788, allocations: 138.1 kB / 1.155 GB, free: 14.13 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.3789, allocations: 326 kB / 1.156 GB, free: 13.8 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009016/0.3798, allocations: 315.3 kB / 1.156 GB, free: 13.49 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.3809, allocations: 0.5385 MB / 1.157 GB, free: 12.85 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.3825, allocations: 0.7254 MB / 1.157 GB, free: 12.05 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.3826, allocations: 4 kB / 1.157 GB, free: 12.05 MB / 0.92 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002736/0.3853, allocations: 1.027 MB / 1.158 GB, free: 11.01 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3853, allocations: 8 kB / 1.158 GB, free: 11 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3854, allocations: 4 kB / 1.158 GB, free: 11 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/0.3866, allocations: 320.7 kB / 1.159 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005408/0.3872, allocations: 127.8 kB / 1.159 GB, free: 10.56 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.3886, allocations: 0.918 MB / 1.16 GB, free: 9.617 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.3898, allocations: 156.2 kB / 1.16 GB, free: 9.465 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.748e-05/0.3899, allocations: 31.98 kB / 1.16 GB, free: 9.434 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001146/0.391, allocations: 0.5168 MB / 1.16 GB, free: 8.914 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001024/0.3921, allocations: 0.5346 MB / 1.161 GB, free: 8.281 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0016/0.3937, allocations: 0.718 MB / 1.161 GB, free: 7.492 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.858e-06/0.3937, allocations: 0 / 1.161 GB, free: 7.492 MB / 0.92 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002615/0.3963, allocations: 1.02 MB / 1.162 GB, free: 6.461 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.3964, allocations: 11.94 kB / 1.163 GB, free: 6.449 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3964, allocations: 7.938 kB / 1.163 GB, free: 6.441 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.3974, allocations: 312.7 kB / 1.163 GB, free: 6.133 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005126/0.3979, allocations: 127.8 kB / 1.163 GB, free: 6.008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.3994, allocations: 0.9036 MB / 1.164 GB, free: 5.078 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.4005, allocations: 151.5 kB / 1.164 GB, free: 4.93 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.4006, allocations: 27.98 kB / 1.164 GB, free: 4.902 MB / 0.92 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.0002027/0.4008, allocations: 228 kB / 1.164 GB, free: 4.672 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.401, allocations: 110.7 kB / 1.164 GB, free: 4.562 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003722/0.4047, allocations: 1.094 MB / 1.165 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.4047, allocations: 15.92 kB / 1.165 GB, free: 3.438 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4048, allocations: 0 / 1.165 GB, free: 3.438 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.4048, allocations: 3.938 kB / 1.165 GB, free: 3.434 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00486/0.4096, allocations: 2.162 MB / 1.168 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4097, allocations: 4 kB / 1.168 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.4099, allocations: 55.95 kB / 1.168 GB, free: 1.133 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000962/0.4109, allocations: 305.7 kB / 1.168 GB, free: 0.832 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.591e-05/0.4109, allocations: 15.98 kB / 1.168 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001413/0.4124, allocations: 0.9409 MB / 1.169 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.4124, allocations: 7.938 kB / 1.169 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/0.4159, allocations: 1.168 MB / 1.17 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/0.4162, allocations: 259.6 kB / 1.17 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.4164, allocations: 8 kB / 1.17 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008066/0.4172, allocations: 75.91 kB / 1.17 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.754e-05/0.4173, allocations: 39.89 kB / 1.17 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.743e-05/0.4173, allocations: 23.98 kB / 1.17 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001057/0.4184, allocations: 0.7512 MB / 1.171 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4184, allocations: 4 kB / 1.171 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001406/0.4198, allocations: 0.5652 MB / 1.172 GB, free: 12.88 MB / 0.9356 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.004327/0.4242, allocations: 1.983 MB / 1.174 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003074/0.4273, allocations: 1.151 MB / 1.175 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4273, allocations: 1.125 kB / 1.175 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008768/0.4282, allocations: 362.6 kB / 1.175 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/0.4303, allocations: 0.5078 MB / 1.176 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/0.446, allocations: 8.726 MB / 1.184 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005813/0.4466, allocations: 1.065 MB / 1.185 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0009473/0.4476, allocations: 228.8 kB / 1.185 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005073/0.4481, allocations: 407.3 kB / 1.186 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of SimCode: time 7.92e-07/0.4481, allocations: 4 kB / 1.186 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9182/1.366, allocations: 33.36 MB / 1.218 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/15.78, allocations: 10.34 kB / 1.218 GB, free: 12.95 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)