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.0009853/0.0009852, allocations: 100.1 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.001059/0.001059, 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.438/1.438, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.587/2.587, allocations: 409.2 MB / 0.6838 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003395, allocations: 12 kB / 0.8375 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6495/0.6499, allocations: 146.8 MB / 0.9809 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05034/0.7003, allocations: 51.32 MB / 1.031 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01584/0.7161, allocations: 10.31 MB / 1.041 GB, free: 8.438 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002119/0.7183, allocations: 47.62 kB / 1.041 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.7209, allocations: 0.6296 MB / 1.042 GB, free: 7.758 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.006466/0.7274, allocations: 1.947 MB / 1.044 GB, free: 5.809 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0044/0.7318, allocations: 1.312 MB / 1.045 GB, free: 4.52 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004727/0.7366, allocations: 1.851 MB / 1.047 GB, free: 2.668 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001911/0.7385, allocations: 0.8118 MB / 1.047 GB, free: 1.832 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002575/0.7411, allocations: 0.9847 MB / 1.048 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001428/0.7425, allocations: 0.5988 MB / 1.049 GB, free: 248 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003222/0.7429, allocations: 44 kB / 1.049 GB, free: 204 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002871/0.7457, allocations: 0.9829 MB / 1.05 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004218/0.7462, allocations: 199.1 kB / 1.05 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000618/0.7468, allocations: 281 kB / 1.05 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002599/0.7494, allocations: 1.57 MB / 1.052 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.7494, allocations: 3.938 kB / 1.052 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.843e-06/0.7494, allocations: 0 / 1.052 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.518e-05/0.7495, allocations: 4 kB / 1.052 GB, free: 13.16 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.00344/0.753, allocations: 1.477 MB / 1.053 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.753, allocations: 8.031 kB / 1.053 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002582/0.7533, allocations: 118.7 kB / 1.054 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002212/0.7555, allocations: 473.9 kB / 1.054 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/0.7577, allocations: 1.051 MB / 1.055 GB, free: 9.914 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003743/0.7581, allocations: 129.9 kB / 1.055 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.7582, allocations: 83.95 kB / 1.055 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.7603, allocations: 0.9973 MB / 1.056 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.7604, allocations: 7.938 kB / 1.056 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.984e-05/0.7605, allocations: 32 kB / 1.056 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.7605, allocations: 16 kB / 1.056 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002367/0.7628, allocations: 0.9211 MB / 1.057 GB, free: 7.691 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.006823/0.7697, allocations: 4.922 MB / 1.062 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00329/0.773, allocations: 0.9057 MB / 1.063 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007054/0.7737, allocations: 0.8947 MB / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.7738, allocations: 42.55 kB / 1.064 GB, free: 352 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=43): time 3.096e-06/0.7738, allocations: 0 / 1.064 GB, free: 352 kB / 0.8106 GB Notification: Performance of matching and sorting (n=43): time 0.008546/0.7823, allocations: 2.145 MB / 1.066 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.7824, allocations: 63.39 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.784, allocations: 1.055 MB / 1.067 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.251e-05/0.7841, allocations: 33.7 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004248/0.7845, allocations: 0.5274 MB / 1.068 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.7847, allocations: 153.8 kB / 1.068 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.7847, allocations: 11.94 kB / 1.068 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.7848, allocations: 325.9 kB / 1.068 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008597/0.7857, allocations: 320.9 kB / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.7868, allocations: 0.5259 MB / 1.069 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000909/0.7877, allocations: 357.3 kB / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.7877, allocations: 4 kB / 1.069 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003739/0.7915, allocations: 1.22 MB / 1.07 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007431/0.7922, allocations: 1.672 MB / 1.072 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.7922, allocations: 7.984 kB / 1.072 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.7935, allocations: 322 kB / 1.072 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.794, allocations: 123.8 kB / 1.072 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/0.7955, allocations: 0.9425 MB / 1.073 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.7968, allocations: 199.2 kB / 1.074 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.482e-05/0.7968, allocations: 27.98 kB / 1.074 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.567e-06/0.7969, allocations: 4 kB / 1.074 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003198/0.8001, allocations: 1.07 MB / 1.075 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.8001, allocations: 4 kB / 1.075 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.8011, allocations: 329.9 kB / 1.075 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005052/0.8017, allocations: 127.8 kB / 1.075 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.8031, allocations: 0.9364 MB / 1.076 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.8043, allocations: 171.3 kB / 1.076 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.805e-05/0.8043, allocations: 27.98 kB / 1.076 GB, free: 3.34 MB / 0.8262 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.0005941/0.8049, allocations: 345 kB / 1.076 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.8051, allocations: 114.6 kB / 1.077 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003669/0.8088, allocations: 1.203 MB / 1.078 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.8088, allocations: 8 kB / 1.078 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.8088, allocations: 0 / 1.078 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.8088, allocations: 3.984 kB / 1.078 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005069/0.8139, allocations: 2.277 MB / 1.08 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.8139, allocations: 0 / 1.08 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002761/0.8142, allocations: 67.89 kB / 1.08 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.8153, allocations: 330.6 kB / 1.08 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.824e-05/0.8153, allocations: 15.95 kB / 1.08 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.8168, allocations: 0.9658 MB / 1.081 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.8168, allocations: 4.031 kB / 1.081 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003611/0.8204, allocations: 1.375 MB / 1.083 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005939/0.821, allocations: 295.4 kB / 1.083 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.8212, allocations: 12 kB / 1.083 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008705/0.822, allocations: 115.8 kB / 1.083 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.881e-05/0.8221, allocations: 35.95 kB / 1.083 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.077e-05/0.8222, allocations: 23.98 kB / 1.083 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001206/0.8234, allocations: 0.7506 MB / 1.084 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8234, allocations: 0 / 1.084 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001478/0.8249, allocations: 0.5613 MB / 1.084 GB, free: 10.6 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.004711/0.8296, allocations: 2.793 MB / 1.087 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00308/0.8327, allocations: 1.164 MB / 1.088 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.8328, allocations: 4 kB / 1.088 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008648/0.8336, allocations: 366.5 kB / 1.089 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002304/0.8359, allocations: 0.49 MB / 1.089 GB, free: 5.715 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007246/0.8432, allocations: 5.943 MB / 1.095 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006444/0.8439, allocations: 1.077 MB / 1.096 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001024/0.8449, allocations: 220.6 kB / 1.096 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.8455, allocations: 415.3 kB / 1.097 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of SimCode: time 7.31e-07/0.8455, allocations: 0 / 1.097 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05876/0.9042, allocations: 32.91 MB / 1.129 GB, free: 13.42 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/0.9045, allocations: 250.7 kB / 1.129 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.786/3.69, allocations: 0 / 1.129 GB, free: 13.08 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