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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.418/2.418, allocations: 390.5 MB / 398 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 176.9 kB / 491.2 MB, free: 1.613 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 98.77 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/1.991e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2863, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.195/1.482, allocations: 434.7 MB / 1.637 GB, free: 12.15 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/1.482, allocations: 91.75 kB / 1.637 GB, free: 12.11 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.783/4.265, allocations: 0.6464 GB / 2.283 GB, free: 267.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.824e-06/4.265, allocations: 0 / 2.283 GB, free: 267.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002249/4.265, allocations: 36.03 kB / 2.283 GB, free: 267.5 MB / 1.151 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.004745/4.27, allocations: 1.485 MB / 2.285 GB, free: 266.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/4.27, allocations: 14.56 kB / 2.285 GB, free: 266.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00254/4.273, allocations: 443 kB / 2.285 GB, free: 266.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003398/4.276, allocations: 1.302 MB / 2.287 GB, free: 266.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003473/4.277, allocations: 100 kB / 2.287 GB, free: 266.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/4.277, allocations: 53.16 kB / 2.287 GB, free: 266.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001436/4.278, allocations: 0.6266 MB / 2.287 GB, free: 266.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/4.28, allocations: 0.7542 MB / 2.288 GB, free: 266.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/4.28, allocations: 6.844 kB / 2.288 GB, free: 266.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.831e-05/4.28, allocations: 7.422 kB / 2.288 GB, free: 266.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.422e-05/4.28, allocations: 34.2 kB / 2.288 GB, free: 266.2 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.00683/4.287, allocations: 4.528 MB / 2.293 GB, free: 263.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/4.289, allocations: 0.6601 MB / 2.293 GB, free: 263.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/4.29, allocations: 191.6 kB / 2.293 GB, free: 263.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005829/4.29, allocations: 0.9149 MB / 2.294 GB, free: 262.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/4.29, allocations: 38.06 kB / 2.294 GB, free: 262.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/4.29, allocations: 0 / 2.294 GB, free: 262.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=42): time 0.002967/4.293, allocations: 0.7572 MB / 2.295 GB, free: 262.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/4.293, allocations: 59.31 kB / 2.295 GB, free: 262.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/4.294, allocations: 0.7375 MB / 2.296 GB, free: 262.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001075/4.295, allocations: 28.95 kB / 2.296 GB, free: 262.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003488/4.295, allocations: 0.5433 MB / 2.296 GB, free: 262.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/4.295, allocations: 141.5 kB / 2.297 GB, free: 262.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/4.295, allocations: 0 / 2.297 GB, free: 262.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.089e-05/4.295, allocations: 325.4 kB / 2.297 GB, free: 261.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/4.295, allocations: 167.3 kB / 2.297 GB, free: 261.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000427/4.296, allocations: 413 kB / 2.297 GB, free: 261.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007149/4.297, allocations: 265 kB / 2.298 GB, free: 261.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/4.297, allocations: 0 / 2.298 GB, free: 261.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002893/4.3, allocations: 0.9244 MB / 2.299 GB, free: 261.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003986/4.3, allocations: 1.659 MB / 2.3 GB, free: 259.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/4.3, allocations: 6.812 kB / 2.3 GB, free: 259.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006388/4.301, allocations: 222.9 kB / 2.3 GB, free: 259.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/4.301, allocations: 123.1 kB / 2.301 GB, free: 259.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009141/4.302, allocations: 0.8755 MB / 2.301 GB, free: 259.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/4.303, allocations: 168.5 kB / 2.302 GB, free: 259.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.129e-05/4.304, allocations: 32 kB / 2.302 GB, free: 259.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/4.304, allocations: 6.875 kB / 2.302 GB, free: 259.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002748/4.306, allocations: 0.7702 MB / 2.302 GB, free: 259.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/4.306, allocations: 11.17 kB / 2.302 GB, free: 259.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005761/4.307, allocations: 234.2 kB / 2.303 GB, free: 259.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004853/4.307, allocations: 124.1 kB / 2.303 GB, free: 259.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008664/4.308, allocations: 0.8559 MB / 2.304 GB, free: 258.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/4.31, allocations: 136.7 kB / 2.304 GB, free: 258.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.563e-05/4.31, allocations: 36.27 kB / 2.304 GB, free: 258.6 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {2 15} Notification: Performance of prepare postOptimizeDAE: time 0.0001995/4.31, allocations: 123.8 kB / 2.304 GB, free: 258.5 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002505/4.312, allocations: 0.7496 MB / 2.305 GB, free: 258.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/4.312, allocations: 95.19 kB / 2.305 GB, free: 258.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002842/4.315, allocations: 0.9098 MB / 2.306 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/4.315, allocations: 7.75 kB / 2.306 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/4.315, allocations: 0 / 2.306 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/4.315, allocations: 3.422 kB / 2.306 GB, free: 258.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004285/4.32, allocations: 1.884 MB / 2.307 GB, free: 257.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/4.32, allocations: 3.969 kB / 2.307 GB, free: 257.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/4.32, allocations: 60.72 kB / 2.307 GB, free: 257.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005816/4.321, allocations: 246.6 kB / 2.308 GB, free: 257.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/4.321, allocations: 10.86 kB / 2.308 GB, free: 257.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008913/4.322, allocations: 0.8926 MB / 2.309 GB, free: 257.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/4.322, allocations: 4.719 kB / 2.309 GB, free: 257.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0028/4.324, allocations: 1.106 MB / 2.31 GB, free: 256.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005075/4.325, allocations: 260.7 kB / 2.31 GB, free: 256.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/4.325, allocations: 7.031 kB / 2.31 GB, free: 256.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008049/4.326, allocations: 97.17 kB / 2.31 GB, free: 256.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/4.326, allocations: 44.56 kB / 2.31 GB, free: 256.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.279e-05/4.326, allocations: 19.5 kB / 2.31 GB, free: 256.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.000718/4.327, allocations: 0.5668 MB / 2.311 GB, free: 256.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/4.327, allocations: 0 / 2.311 GB, free: 256.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001777/4.328, allocations: 0.6215 MB / 2.311 GB, free: 256.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * 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 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.003987/4.332, allocations: 2.772 MB / 2.314 GB, free: 255 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001494/4.334, allocations: 0.7941 MB / 2.315 GB, free: 255 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/4.334, allocations: 0 / 2.315 GB, free: 255 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004022/4.334, allocations: 266.5 kB / 2.315 GB, free: 255 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/4.336, allocations: 379.4 kB / 2.315 GB, free: 255 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005112/4.341, allocations: 1.769 MB / 2.317 GB, free: 254.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/4.342, allocations: 1.086 MB / 2.318 GB, free: 253.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001149/4.343, allocations: 240.8 kB / 2.318 GB, free: 253.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/4.344, allocations: 386.6 kB / 2.319 GB, free: 253.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.082e-06/4.344, allocations: 0 / 2.319 GB, free: 253.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05556/4.399, allocations: 32.17 MB / 2.35 GB, free: 252.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/4.399, allocations: 166.5 kB / 2.35 GB, free: 252.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.059/7.458, allocations: 0 / 2.35 GB, free: 252.4 MB / 1.151 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) 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