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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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.001041/0.001041, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001289/0.001289, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.2 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.44/2.44, allocations: 409.4 MB / 0.684 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003259, allocations: 12 kB / 0.8378 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6334/0.6338, allocations: 146.8 MB / 0.9811 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05293/0.6867, allocations: 56.51 MB / 1.036 GB, free: 13.57 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01467/0.7015, allocations: 11.22 MB / 1.047 GB, free: 2.32 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00176/0.7033, allocations: 51.62 kB / 1.047 GB, free: 2.27 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.7049, allocations: 464.9 kB / 1.048 GB, free: 1.812 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004415/0.7093, allocations: 1.523 MB / 1.049 GB, free: 288 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002492/0.7118, allocations: 0.863 MB / 1.05 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.004366/0.7162, allocations: 3.39 MB / 1.053 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.7175, allocations: 0.7898 MB / 1.054 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.7197, allocations: 1.038 MB / 1.055 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001217/0.721, allocations: 0.8049 MB / 1.056 GB, free: 9.363 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.7211, allocations: 44 kB / 1.056 GB, free: 9.32 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.7234, allocations: 1.091 MB / 1.057 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.7236, allocations: 203 kB / 1.057 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003262/0.7239, allocations: 289 kB / 1.058 GB, free: 7.738 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.7258, allocations: 1.621 MB / 1.059 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.7258, allocations: 0 / 1.059 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7258, allocations: 0 / 1.059 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.383e-05/0.7258, allocations: 4 kB / 1.059 GB, free: 6.109 MB / 0.8106 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.002453/0.7283, allocations: 1.493 MB / 1.061 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.7283, allocations: 8.031 kB / 1.061 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.7285, allocations: 126.7 kB / 1.061 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001923/0.7304, allocations: 473.9 kB / 1.061 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.7324, allocations: 1.086 MB / 1.062 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003155/0.7328, allocations: 129.9 kB / 1.062 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.7329, allocations: 83.95 kB / 1.062 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/0.7348, allocations: 0.9973 MB / 1.063 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.7349, allocations: 11.94 kB / 1.063 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.376e-05/0.7349, allocations: 28 kB / 1.063 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.735, allocations: 20 kB / 1.063 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00219/0.7372, allocations: 0.9056 MB / 1.064 GB, free: 0.5977 MB / 0.8106 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.006461/0.7436, allocations: 4.894 MB / 1.069 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003041/0.7467, allocations: 0.9018 MB / 1.07 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006779/0.7474, allocations: 322.1 kB / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006537/0.7481, allocations: 0.8986 MB / 1.071 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.7481, allocations: 46.48 kB / 1.071 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=43): time 2.645e-06/0.7481, allocations: 0 / 1.071 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of matching and sorting (n=43): time 0.007872/0.756, allocations: 2.141 MB / 1.073 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.518e-05/0.7561, allocations: 63.36 kB / 1.073 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.758, allocations: 1.04 MB / 1.074 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.125e-05/0.7581, allocations: 37.7 kB / 1.074 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004563/0.7585, allocations: 0.539 MB / 1.075 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.7587, allocations: 149.8 kB / 1.075 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.7588, allocations: 12 kB / 1.075 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.7589, allocations: 325.9 kB / 1.075 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008011/0.7597, allocations: 320.9 kB / 1.076 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.7608, allocations: 0.5298 MB / 1.076 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008817/0.7617, allocations: 357.3 kB / 1.077 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.7617, allocations: 0 / 1.077 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003454/0.7652, allocations: 1.223 MB / 1.078 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.7653, allocations: 209.3 kB / 1.078 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.7653, allocations: 4 kB / 1.078 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.7665, allocations: 332.7 kB / 1.078 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.767, allocations: 131.8 kB / 1.078 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.7685, allocations: 0.9361 MB / 1.079 GB, free: 396 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.7698, allocations: 200.6 kB / 1.08 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.041e-05/0.7699, allocations: 27.98 kB / 1.08 GB, free: 168 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.967e-06/0.7699, allocations: 4 kB / 1.08 GB, free: 164 kB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003084/0.773, allocations: 1.066 MB / 1.081 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.773, allocations: 11.94 kB / 1.081 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.7741, allocations: 319 kB / 1.081 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/0.7746, allocations: 135.8 kB / 1.081 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.7759, allocations: 0.9348 MB / 1.082 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.7771, allocations: 167.4 kB / 1.082 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.7772, allocations: 31.98 kB / 1.082 GB, free: 13.47 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005357/0.7777, allocations: 346.5 kB / 1.083 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.7779, allocations: 110.6 kB / 1.083 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/0.7814, allocations: 1.207 MB / 1.084 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.7815, allocations: 11.94 kB / 1.084 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.7815, allocations: 0 / 1.084 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.7815, allocations: 3.984 kB / 1.084 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004901/0.7864, allocations: 2.262 MB / 1.086 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.7864, allocations: 4 kB / 1.086 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.7867, allocations: 68.17 kB / 1.086 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/0.7878, allocations: 321.7 kB / 1.086 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.7878, allocations: 12 kB / 1.086 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/0.7893, allocations: 0.9737 MB / 1.087 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.7893, allocations: 8 kB / 1.087 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003346/0.7926, allocations: 1.249 MB / 1.089 GB, free: 6.73 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005487/0.7932, allocations: 283.4 kB / 1.089 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.7934, allocations: 11.94 kB / 1.089 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.7947, allocations: 115.8 kB / 1.089 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.7948, allocations: 39.84 kB / 1.089 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-05/0.7949, allocations: 23.98 kB / 1.089 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001821/0.7967, allocations: 0.735 MB / 1.09 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7967, allocations: 0 / 1.09 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002466/0.7992, allocations: 0.5535 MB / 1.09 GB, free: 4.949 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.00668/0.8059, allocations: 2.065 MB / 1.092 GB, free: 2.836 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004935/0.8109, allocations: 1.16 MB / 1.093 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.8109, allocations: 0 / 1.093 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.8122, allocations: 370.5 kB / 1.094 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004093/0.8163, allocations: 0.4904 MB / 1.094 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0237/0.8401, allocations: 6.84 MB / 1.101 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008905/0.841, allocations: 1.073 MB / 1.102 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001537/0.8426, allocations: 228.6 kB / 1.102 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007693/0.8433, allocations: 407.3 kB / 1.103 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of SimCode: time 1.002e-06/0.8433, allocations: 0 / 1.103 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05694/0.9003, allocations: 33.22 MB / 1.135 GB, free: 7.18 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.9005, allocations: 259.6 kB / 1.135 GB, free: 6.84 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.491/3.392, allocations: 0 / 1.135 GB, free: 6.84 MB / 0.8887 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat does not exist to compare? outputFormat=mat