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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001131/0.00113, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00131/0.00131, allocations: 190 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 239.9 MB, free: 4.488 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.2 MB / 0.6644 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001588, allocations: 59.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.564/0.5656, allocations: 140.4 MB / 0.9492 GB, free: 9.035 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.06954/0.6352, allocations: 74.55 MB / 1.022 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01876/0.654, allocations: 15.05 MB / 1.037 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002311/0.6564, allocations: 59.62 kB / 1.037 GB, free: 8.109 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00239/0.6588, allocations: 0.7112 MB / 1.037 GB, free: 7.395 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.006791/0.6656, allocations: 2.415 MB / 1.04 GB, free: 4.969 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003457/0.6691, allocations: 1.282 MB / 1.041 GB, free: 3.699 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00519/0.6743, allocations: 4.447 MB / 1.045 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002127/0.6764, allocations: 1.441 MB / 1.047 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003405/0.6798, allocations: 1.648 MB / 1.048 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001751/0.6816, allocations: 1.252 MB / 1.05 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0003323/0.6819, allocations: 164 kB / 1.05 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002682/0.6846, allocations: 1.415 MB / 1.051 GB, free: 9.281 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.6851, allocations: 406.6 kB / 1.052 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001124/0.6862, allocations: 0.9099 MB / 1.052 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003429/0.6896, allocations: 2.844 MB / 1.055 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.6897, allocations: 0 / 1.055 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.542e-06/0.6897, allocations: 0 / 1.055 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.99e-05/0.6897, allocations: 0 / 1.055 GB, free: 5.117 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.003403/0.6931, allocations: 2.091 MB / 1.057 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.6931, allocations: 8.031 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.6933, allocations: 152.1 kB / 1.057 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007232/0.694, allocations: 230.8 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002212/0.6963, allocations: 1.496 MB / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.82e-05/0.6963, allocations: 81.94 kB / 1.059 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.6965, allocations: 100 kB / 1.059 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001924/0.6984, allocations: 1.1 MB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.6985, allocations: 3.906 kB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.699e-05/0.6985, allocations: 40 kB / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.6986, allocations: 24 kB / 1.06 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/0.7004, allocations: 0.8978 MB / 1.061 GB, free: 14.73 MB / 0.8262 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.005507/0.7059, allocations: 4.907 MB / 1.066 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.7072, allocations: 0.6159 MB / 1.067 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006507/0.7079, allocations: 346.3 kB / 1.067 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005521/0.7085, allocations: 0.8238 MB / 1.068 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.7085, allocations: 39.12 kB / 1.068 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 2.484e-06/0.7085, allocations: 0 / 1.068 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.006689/0.7152, allocations: 1.697 MB / 1.07 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.7153, allocations: 59.91 kB / 1.07 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/0.717, allocations: 1.218 MB / 1.071 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.7172, allocations: 37.7 kB / 1.071 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000481/0.7177, allocations: 0.6104 MB / 1.071 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.7179, allocations: 209 kB / 1.072 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.7181, allocations: 150.6 kB / 1.072 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.7183, allocations: 345.9 kB / 1.072 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006477/0.7189, allocations: 288.7 kB / 1.072 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007948/0.7197, allocations: 0.4905 MB / 1.073 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.7211, allocations: 0.7051 MB / 1.074 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.7211, allocations: 0 / 1.074 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004337/0.7254, allocations: 1.277 MB / 1.075 GB, free: 232 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.7255, allocations: 12.06 kB / 1.075 GB, free: 220 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.7255, allocations: 4 kB / 1.075 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00054/0.726, allocations: 136.7 kB / 1.075 GB, free: 76 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.7266, allocations: 155.8 kB / 1.075 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007594/0.7274, allocations: 0.7044 MB / 1.076 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.7285, allocations: 163 kB / 1.076 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.974e-05/0.7286, allocations: 31.98 kB / 1.076 GB, free: 15 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009912/0.7296, allocations: 0.5487 MB / 1.077 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007721/0.7304, allocations: 0.489 MB / 1.077 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001273/0.7317, allocations: 0.6973 MB / 1.078 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.867e-06/0.7317, allocations: 4 kB / 1.078 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.00435/0.736, allocations: 1.277 MB / 1.079 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.7361, allocations: 11.94 kB / 1.079 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.7361, allocations: 4 kB / 1.079 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004628/0.7365, allocations: 136.8 kB / 1.079 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000555/0.7371, allocations: 155.8 kB / 1.079 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007532/0.7379, allocations: 0.7084 MB / 1.08 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.739, allocations: 139.5 kB / 1.08 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.239e-05/0.7391, allocations: 24 kB / 1.08 GB, free: 10.65 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000237/0.7393, allocations: 232.6 kB / 1.08 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002646/0.7396, allocations: 134.3 kB / 1.08 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004311/0.7439, allocations: 1.271 MB / 1.082 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.7439, allocations: 8 kB / 1.082 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.7439, allocations: 0 / 1.082 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003782/0.7477, allocations: 1.103 MB / 1.083 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006257/0.754, allocations: 2.614 MB / 1.085 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.754, allocations: 4 kB / 1.085 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004918/0.7545, allocations: 107.9 kB / 1.085 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004811/0.755, allocations: 136.9 kB / 1.086 GB, free: 4.871 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.7551, allocations: 20 kB / 1.086 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004788/0.7599, allocations: 2.63 MB / 1.088 GB, free: 2.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.7599, allocations: 7.938 kB / 1.088 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004915/0.7649, allocations: 1.699 MB / 1.09 GB, free: 296 kB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00066/0.7655, allocations: 299.2 kB / 1.09 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/0.7658, allocations: 23.98 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009027/0.7667, allocations: 79.83 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.7668, allocations: 64.23 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.7669, allocations: 31.98 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001192/0.7681, allocations: 0.874 MB / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7681, allocations: 0 / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001774/0.7699, allocations: 0.7135 MB / 1.092 GB, free: 14.19 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005865/0.7758, allocations: 2.582 MB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002657/0.7784, allocations: 1.153 MB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.7785, allocations: 192 / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.7799, allocations: 0.5564 MB / 1.096 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/0.7834, allocations: 0.8083 MB / 1.097 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/0.8069, allocations: 10.87 MB / 1.107 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008332/0.8078, allocations: 1.179 MB / 1.109 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001337/0.8091, allocations: 307 kB / 1.109 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006917/0.8098, allocations: 0.5187 MB / 1.109 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of SimCode: time 1.011e-06/0.8098, allocations: 4 kB / 1.109 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.41/3.22, allocations: 41.63 MB / 1.15 GB, free: 2.535 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003698/3.221, allocations: 259.4 kB / 1.15 GB, free: 2.184 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.694/5.914, allocations: 0 / 1.15 GB, free: 2.184 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/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)