Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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_y,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y",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.0008022/0.0008022, 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.0008305/0.0008304, 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.323/1.323, allocations: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.344/2.344, allocations: 390.4 MB / 0.6655 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003097, allocations: 8 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6817/0.682, allocations: 142.3 MB / 0.9538 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.06704/0.7491, allocations: 69.44 MB / 1.022 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01854/0.7677, allocations: 14.2 MB / 1.036 GB, free: 12.28 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002515/0.7702, allocations: 55.62 kB / 1.036 GB, free: 12.23 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002332/0.7726, allocations: 0.5666 MB / 1.036 GB, free: 11.66 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.006869/0.7795, allocations: 1.985 MB / 1.038 GB, free: 9.664 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003458/0.783, allocations: 0.964 MB / 1.039 GB, free: 8.711 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.007327/0.7903, allocations: 4.819 MB / 1.044 GB, free: 3.879 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002646/0.793, allocations: 1.021 MB / 1.045 GB, free: 2.832 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003872/0.7969, allocations: 1.271 MB / 1.046 GB, free: 1.555 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/0.7993, allocations: 1.089 MB / 1.047 GB, free: 472 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0004433/0.7997, allocations: 56 kB / 1.047 GB, free: 416 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003316/0.803, allocations: 0.9238 MB / 1.048 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0005438/0.8036, allocations: 270.7 kB / 1.048 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0008457/0.8045, allocations: 360.9 kB / 1.049 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003202/0.8077, allocations: 2.085 MB / 1.051 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.8077, allocations: 0 / 1.051 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.475e-06/0.8077, allocations: 0 / 1.051 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.658e-05/0.8078, allocations: 0 / 1.051 GB, free: 12.77 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.00394/0.8118, allocations: 1.803 MB / 1.052 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.8118, allocations: 8.031 kB / 1.052 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002872/0.8121, allocations: 147.9 kB / 1.053 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008342/0.8129, allocations: 241.9 kB / 1.053 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002592/0.8155, allocations: 1.451 MB / 1.054 GB, free: 8.992 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.78e-05/0.8156, allocations: 81.94 kB / 1.054 GB, free: 8.914 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.8158, allocations: 100 kB / 1.054 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001968/0.8177, allocations: 1.116 MB / 1.055 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.8178, allocations: 0 / 1.055 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-05/0.8179, allocations: 47.95 kB / 1.055 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/0.8179, allocations: 27.94 kB / 1.056 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.8198, allocations: 0.9213 MB / 1.056 GB, free: 6.672 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.005739/0.8255, allocations: 4.908 MB / 1.061 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.8269, allocations: 0.6369 MB / 1.062 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006725/0.8276, allocations: 366.3 kB / 1.062 GB, free: 484 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006355/0.8282, allocations: 0.8315 MB / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.8283, allocations: 47.12 kB / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 2.334e-06/0.8283, allocations: 0 / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.00647/0.8348, allocations: 1.892 MB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.8348, allocations: 59.97 kB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.8364, allocations: 1.198 MB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.634e-05/0.8365, allocations: 45.69 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004967/0.837, allocations: 0.6026 MB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/0.8372, allocations: 216.9 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.8373, allocations: 12 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.8374, allocations: 337.9 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006513/0.8381, allocations: 297.8 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007748/0.8388, allocations: 0.5007 MB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006978/0.8395, allocations: 355 kB / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.8396, allocations: 0 / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004351/0.8439, allocations: 1.398 MB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001946/0.8441, allocations: 202.2 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.8442, allocations: 4 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006029/0.8448, allocations: 152.7 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006268/0.8454, allocations: 159.8 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008433/0.8463, allocations: 0.7123 MB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.8475, allocations: 164.5 kB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-05/0.8476, allocations: 35.94 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/0.8476, allocations: 4 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004014/0.8516, allocations: 1.257 MB / 1.072 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.8517, allocations: 4 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004815/0.8522, allocations: 149.2 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.8528, allocations: 163.8 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008256/0.8536, allocations: 0.7124 MB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.8549, allocations: 171 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.648e-05/0.8549, allocations: 35.98 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0008342/0.8558, allocations: 432.8 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.856, allocations: 134.4 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004238/0.8603, allocations: 1.385 MB / 1.075 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/0.8603, allocations: 15.98 kB / 1.075 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.8603, allocations: 4 kB / 1.075 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003785/0.8641, allocations: 1.228 MB / 1.077 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006367/0.8705, allocations: 2.739 MB / 1.079 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.8705, allocations: 4 kB / 1.079 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/0.871, allocations: 136.2 kB / 1.079 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004432/0.8714, allocations: 132.8 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.392e-05/0.8715, allocations: 19.98 kB / 1.08 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00431/0.8758, allocations: 2.47 MB / 1.082 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.198e-06/0.8758, allocations: 4 kB / 1.082 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004916/0.8808, allocations: 1.851 MB / 1.084 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006569/0.8814, allocations: 335.1 kB / 1.084 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.8816, allocations: 19.98 kB / 1.084 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008231/0.8825, allocations: 87.97 kB / 1.084 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.8826, allocations: 60.27 kB / 1.084 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.42e-05/0.8827, allocations: 43.97 kB / 1.084 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001245/0.8839, allocations: 0.8545 MB / 1.085 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8839, allocations: 0 / 1.085 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001857/0.8858, allocations: 0.7095 MB / 1.086 GB, free: 7.273 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * 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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005798/0.8916, allocations: 2.713 MB / 1.089 GB, free: 4.492 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002616/0.8942, allocations: 1.153 MB / 1.09 GB, free: 3.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.8943, allocations: 8.188 kB / 1.09 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.8957, allocations: 0.5992 MB / 1.09 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/0.8993, allocations: 0.7595 MB / 1.091 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/0.9184, allocations: 8.362 MB / 1.099 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008028/0.9192, allocations: 1.183 MB / 1.1 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001454/0.9207, allocations: 306.9 kB / 1.101 GB, free: 7.699 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007165/0.9214, allocations: 0.511 MB / 1.101 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of SimCode: time 1.012e-06/0.9214, allocations: 4 kB / 1.101 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06748/0.9889, allocations: 42.1 MB / 1.142 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/0.9892, allocations: 259.7 kB / 1.142 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.808/3.797, allocations: 0 / 1.142 GB, free: 13.32 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat does not exist to compare? outputFormat=mat