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.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_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.001142/0.001142, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001277/0.001277, allocations: 177.3 kB / 15.95 MB, free: 216 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.345/1.345, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.294/2.294, allocations: 390.3 MB / 0.6653 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.0003279, allocations: 12 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7398/0.7401, allocations: 142.3 MB / 0.9536 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.0516/0.7918, allocations: 51.32 MB / 1.004 GB, free: 12.87 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01614/0.808, allocations: 10.31 MB / 1.014 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.8103, allocations: 47.69 kB / 1.014 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002739/0.8131, allocations: 0.6257 MB / 1.014 GB, free: 1.859 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.007569/0.8207, allocations: 1.952 MB / 1.016 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00454/0.8252, allocations: 1.312 MB / 1.018 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005381/0.8306, allocations: 1.846 MB / 1.019 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001784/0.8324, allocations: 0.8235 MB / 1.02 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002757/0.8352, allocations: 0.9847 MB / 1.021 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.8365, allocations: 0.5949 MB / 1.022 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.8366, allocations: 44 kB / 1.022 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00263/0.8392, allocations: 0.9868 MB / 1.023 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000247/0.8395, allocations: 195.1 kB / 1.023 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004029/0.8399, allocations: 285 kB / 1.023 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002251/0.8422, allocations: 1.574 MB / 1.025 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.8422, allocations: 3.938 kB / 1.025 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.954e-06/0.8422, allocations: 0 / 1.025 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.767e-05/0.8422, allocations: 0 / 1.025 GB, free: 7.242 MB / 0.7794 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.003171/0.8454, allocations: 1.478 MB / 1.026 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.8455, allocations: 8.031 kB / 1.026 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001871/0.8457, allocations: 122.7 kB / 1.026 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00229/0.848, allocations: 473.9 kB / 1.027 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/0.8502, allocations: 1.051 MB / 1.028 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003612/0.8505, allocations: 129.9 kB / 1.028 GB, free: 3.871 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.8507, allocations: 88 kB / 1.028 GB, free: 3.785 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.8529, allocations: 0.9934 MB / 1.029 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.8529, allocations: 7.922 kB / 1.029 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.139e-05/0.853, allocations: 32 kB / 1.029 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.119e-05/0.8531, allocations: 23.95 kB / 1.029 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002509/0.8556, allocations: 0.9133 MB / 1.03 GB, free: 1.773 MB / 0.7794 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.008598/0.8642, allocations: 4.903 MB / 1.035 GB, free: 12.52 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003668/0.8679, allocations: 0.8953 MB / 1.036 GB, free: 11.61 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009155/0.8688, allocations: 0.9025 MB / 1.036 GB, free: 10.51 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.8689, allocations: 46.48 kB / 1.037 GB, free: 10.45 MB / 0.795 GB Notification: Performance of pre-optimization done (n=43): time 2.865e-06/0.8689, allocations: 0 / 1.037 GB, free: 10.45 MB / 0.795 GB Notification: Performance of matching and sorting (n=43): time 0.009078/0.878, allocations: 2.143 MB / 1.039 GB, free: 8.281 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.8781, allocations: 55.41 kB / 1.039 GB, free: 8.215 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/0.88, allocations: 1.071 MB / 1.04 GB, free: 7.129 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.8801, allocations: 33.7 kB / 1.04 GB, free: 7.09 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004477/0.8805, allocations: 0.5234 MB / 1.04 GB, free: 6.562 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.8807, allocations: 149.9 kB / 1.04 GB, free: 6.414 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.8808, allocations: 15.94 kB / 1.04 GB, free: 6.398 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.8809, allocations: 325.9 kB / 1.041 GB, free: 6.074 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009977/0.8819, allocations: 324.9 kB / 1.041 GB, free: 5.758 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.8831, allocations: 0.522 MB / 1.042 GB, free: 5.152 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009804/0.884, allocations: 369.3 kB / 1.042 GB, free: 4.793 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.8841, allocations: 0 / 1.042 GB, free: 4.793 MB / 0.795 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003945/0.888, allocations: 1.216 MB / 1.043 GB, free: 3.566 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007955/0.8888, allocations: 1.678 MB / 1.045 GB, free: 1.766 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.8889, allocations: 4 kB / 1.045 GB, free: 1.762 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.8902, allocations: 326.2 kB / 1.045 GB, free: 1.441 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005913/0.8908, allocations: 127.8 kB / 1.045 GB, free: 1.316 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/0.8925, allocations: 0.9386 MB / 1.046 GB, free: 360 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.8941, allocations: 195.2 kB / 1.046 GB, free: 164 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.323e-05/0.8942, allocations: 35.94 kB / 1.046 GB, free: 128 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.8942, allocations: 4 kB / 1.046 GB, free: 124 kB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003484/0.8977, allocations: 1.078 MB / 1.047 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.8977, allocations: 4 kB / 1.047 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.8989, allocations: 323 kB / 1.048 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005551/0.8994, allocations: 127.8 kB / 1.048 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.9009, allocations: 0.931 MB / 1.049 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.9022, allocations: 171.3 kB / 1.049 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/0.9023, allocations: 31.92 kB / 1.049 GB, free: 13.44 MB / 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 (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.0005999/0.9029, allocations: 353 kB / 1.049 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.9031, allocations: 106.7 kB / 1.049 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003935/0.9071, allocations: 1.199 MB / 1.051 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.9071, allocations: 4 kB / 1.051 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.9071, allocations: 8 kB / 1.051 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.9071, allocations: 7.938 kB / 1.051 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005581/0.9127, allocations: 2.272 MB / 1.053 GB, free: 9.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.9128, allocations: 4.281 kB / 1.053 GB, free: 9.379 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.9131, allocations: 75.89 kB / 1.053 GB, free: 9.305 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.9142, allocations: 325.9 kB / 1.053 GB, free: 8.984 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/0.9143, allocations: 8 kB / 1.053 GB, free: 8.977 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.916, allocations: 0.9753 MB / 1.054 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.916, allocations: 7.938 kB / 1.054 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004729/0.9207, allocations: 1.359 MB / 1.055 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009316/0.9217, allocations: 287.4 kB / 1.056 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/0.9219, allocations: 19.94 kB / 1.056 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009571/0.9229, allocations: 111.8 kB / 1.056 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.923, allocations: 39.91 kB / 1.056 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.946e-05/0.9231, allocations: 23.92 kB / 1.056 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001513/0.9246, allocations: 0.7467 MB / 1.057 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of sort global known variables: time 5.01e-07/0.9246, allocations: 0 / 1.057 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002067/0.9267, allocations: 0.5692 MB / 1.057 GB, free: 4.699 MB / 0.8106 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.005507/0.9322, allocations: 2.787 MB / 1.06 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003449/0.9357, allocations: 1.16 MB / 1.061 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.9357, allocations: 4 kB / 1.061 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008897/0.9366, allocations: 364.5 kB / 1.061 GB, free: 316 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.9392, allocations: 0.495 MB / 1.062 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007793/0.947, allocations: 5.942 MB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006966/0.9477, allocations: 1.085 MB / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001016/0.9487, allocations: 220.6 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005629/0.9493, allocations: 411.3 kB / 1.069 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of SimCode: time 9.52e-07/0.9493, allocations: 3.938 kB / 1.069 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07595/1.025, allocations: 32.9 MB / 1.101 GB, free: 7.516 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/1.026, allocations: 245.1 kB / 1.102 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.463/3.488, allocations: 5.688 kB / 1.102 GB, free: 7.23 MB / 0.8575 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat does not exist to compare? outputFormat=mat