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.0008034/0.0008033, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008184/0.0008184, allocations: 172.7 kB / 15.95 MB, free: 208 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.34/1.34, allocations: 223.2 MB / 240 MB, free: 5.305 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.335/2.335, allocations: 390.4 MB / 0.6655 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004904/0.0004905, allocations: 8 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7448/0.7453, allocations: 142.3 MB / 0.9538 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.06458/0.81, allocations: 56.52 MB / 1.009 GB, free: 7.449 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01634/0.8264, allocations: 11.21 MB / 1.02 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.8287, allocations: 55.62 kB / 1.02 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.8305, allocations: 456.9 kB / 1.02 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004876/0.8354, allocations: 1.527 MB / 1.022 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002575/0.838, allocations: 0.8634 MB / 1.023 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004241/0.8422, allocations: 3.386 MB / 1.026 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.8435, allocations: 0.796 MB / 1.027 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002163/0.8457, allocations: 1.042 MB / 1.028 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001601/0.8473, allocations: 0.8127 MB / 1.029 GB, free: 3.234 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001504/0.8475, allocations: 44 kB / 1.029 GB, free: 3.191 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002337/0.8498, allocations: 1.088 MB / 1.03 GB, free: 2.102 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002326/0.8501, allocations: 195 kB / 1.03 GB, free: 1.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003745/0.8505, allocations: 285 kB / 1.03 GB, free: 1.625 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.8525, allocations: 1.625 MB / 1.032 GB, free: 15.99 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.8525, allocations: 0 / 1.032 GB, free: 15.99 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8525, allocations: 4 kB / 1.032 GB, free: 15.99 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.318e-05/0.8525, allocations: 0 / 1.032 GB, free: 15.99 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.002607/0.8551, allocations: 1.497 MB / 1.033 GB, free: 14.44 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.8552, allocations: 8.031 kB / 1.033 GB, free: 14.43 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002005/0.8554, allocations: 118.7 kB / 1.033 GB, free: 14.3 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/0.8573, allocations: 477.9 kB / 1.034 GB, free: 13.84 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.8595, allocations: 1.094 MB / 1.035 GB, free: 12.68 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003129/0.8598, allocations: 125.9 kB / 1.035 GB, free: 12.56 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/0.86, allocations: 80 kB / 1.035 GB, free: 12.48 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.8621, allocations: 1.001 MB / 1.036 GB, free: 11.44 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.8621, allocations: 0 / 1.036 GB, free: 11.44 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/0.8622, allocations: 32 kB / 1.036 GB, free: 11.41 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.8622, allocations: 23.95 kB / 1.036 GB, free: 11.38 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002114/0.8643, allocations: 0.9094 MB / 1.037 GB, free: 10.48 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.006561/0.8709, allocations: 4.883 MB / 1.042 GB, free: 5.238 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002986/0.8739, allocations: 0.8952 MB / 1.043 GB, free: 4.336 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006935/0.8746, allocations: 316.7 kB / 1.043 GB, free: 4.023 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006981/0.8754, allocations: 0.9064 MB / 1.044 GB, free: 2.914 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.8754, allocations: 34.56 kB / 1.044 GB, free: 2.871 MB / 0.795 GB Notification: Performance of pre-optimization done (n=43): time 2.625e-06/0.8754, allocations: 0 / 1.044 GB, free: 2.871 MB / 0.795 GB Notification: Performance of matching and sorting (n=43): time 0.007803/0.8832, allocations: 2.149 MB / 1.046 GB, free: 0.6914 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.8833, allocations: 59.41 kB / 1.046 GB, free: 0.6211 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/0.8849, allocations: 1.044 MB / 1.047 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.84e-05/0.885, allocations: 41.69 kB / 1.047 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004417/0.8854, allocations: 0.5273 MB / 1.048 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.8856, allocations: 149.8 kB / 1.048 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.369e-05/0.8856, allocations: 15.94 kB / 1.048 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.8858, allocations: 326 kB / 1.048 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008375/0.8866, allocations: 320.9 kB / 1.048 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009943/0.8876, allocations: 0.5259 MB / 1.049 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008794/0.8885, allocations: 373.2 kB / 1.049 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.8885, allocations: 0 / 1.049 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003466/0.892, allocations: 1.22 MB / 1.051 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001529/0.8922, allocations: 217.2 kB / 1.051 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.8922, allocations: 8 kB / 1.051 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/0.8933, allocations: 328.6 kB / 1.051 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.8939, allocations: 127.8 kB / 1.051 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.8953, allocations: 0.9364 MB / 1.052 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.8966, allocations: 191.2 kB / 1.052 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.237e-05/0.8967, allocations: 31.98 kB / 1.052 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.308e-06/0.8967, allocations: 5.406 kB / 1.052 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003039/0.8998, allocations: 1.086 MB / 1.053 GB, free: 8.977 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.8998, allocations: 4 kB / 1.053 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.9009, allocations: 322.9 kB / 1.054 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004986/0.9014, allocations: 127.8 kB / 1.054 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.9028, allocations: 0.931 MB / 1.055 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.904, allocations: 171.3 kB / 1.055 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.195e-05/0.904, allocations: 27.98 kB / 1.055 GB, free: 7.379 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.0005956/0.9046, allocations: 356.9 kB / 1.055 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.9048, allocations: 106.7 kB / 1.055 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.9083, allocations: 1.199 MB / 1.056 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.9083, allocations: 4 kB / 1.057 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.9084, allocations: 0 / 1.057 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.9084, allocations: 3.984 kB / 1.057 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/0.9134, allocations: 2.276 MB / 1.059 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.9134, allocations: 4 kB / 1.059 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.9137, allocations: 68.17 kB / 1.059 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.9147, allocations: 324.5 kB / 1.059 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.9148, allocations: 16 kB / 1.059 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001432/0.9162, allocations: 0.9711 MB / 1.06 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.9162, allocations: 3.938 kB / 1.06 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003308/0.9195, allocations: 1.249 MB / 1.061 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005631/0.9201, allocations: 283.4 kB / 1.062 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.9202, allocations: 23.88 kB / 1.062 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008111/0.9211, allocations: 111.8 kB / 1.062 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/0.9212, allocations: 35.89 kB / 1.062 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/0.9212, allocations: 23.98 kB / 1.062 GB, free: 140 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001185/0.9224, allocations: 0.7311 MB / 1.062 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9224, allocations: 0 / 1.062 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001505/0.9239, allocations: 0.5535 MB / 1.063 GB, free: 14.84 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 (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.004247/0.9282, allocations: 2.061 MB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003094/0.9313, allocations: 1.163 MB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.9313, allocations: 0 / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008458/0.9322, allocations: 364.5 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.9347, allocations: 0.4984 MB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/0.9505, allocations: 6.862 MB / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007883/0.9514, allocations: 1.061 MB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001106/0.9525, allocations: 220.6 kB / 1.075 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005327/0.953, allocations: 407.3 kB / 1.075 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of SimCode: time 6.21e-07/0.953, allocations: 0 / 1.075 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06014/1.013, allocations: 33.21 MB / 1.108 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003165/1.014, allocations: 249.2 kB / 1.108 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.591, allocations: 0 / 1.108 GB, free: 0.7344 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