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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.193/2.193, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.001389/0.001389, allocations: 186.5 kB / 490.8 MB, free: 1.922 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.538/1.538, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.00109/0.00109, allocations: 92.67 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6666/0.6677, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.929, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.196/2.125, allocations: 434.6 MB / 1.636 GB, free: 13.45 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003486/2.126, allocations: 82.64 kB / 1.636 GB, free: 13.41 MB / 1.057 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 2.664/4.79, allocations: 0.6515 GB / 2.288 GB, free: 226.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.047e-05/4.79, allocations: 14.34 kB / 2.288 GB, free: 226.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002821/4.792, allocations: 487.8 kB / 2.288 GB, free: 226.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003911/4.796, allocations: 1.313 MB / 2.289 GB, free: 226 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000366/4.797, allocations: 104.6 kB / 2.289 GB, free: 226 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/4.797, allocations: 47.5 kB / 2.29 GB, free: 226 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001463/4.799, allocations: 0.6295 MB / 2.29 GB, free: 226 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/4.8, allocations: 0.7581 MB / 2.291 GB, free: 225.8 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/4.8, allocations: 6 kB / 2.291 GB, free: 225.8 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.652e-05/4.8, allocations: 3.906 kB / 2.291 GB, free: 225.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.53e-05/4.8, allocations: 32.44 kB / 2.291 GB, free: 225.8 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006913/4.807, allocations: 4.763 MB / 2.296 GB, free: 223.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002604/4.81, allocations: 0.6781 MB / 2.296 GB, free: 223.2 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/4.81, allocations: 198 kB / 2.296 GB, free: 223.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004934/4.811, allocations: 0.9135 MB / 2.297 GB, free: 222.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/4.811, allocations: 41.25 kB / 2.297 GB, free: 222.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=42): time 2.785e-06/4.811, allocations: 0 / 2.297 GB, free: 222.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=42): time 0.003198/4.814, allocations: 0.7868 MB / 2.298 GB, free: 222.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/4.814, allocations: 54.41 kB / 2.298 GB, free: 222 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/4.815, allocations: 0.7374 MB / 2.299 GB, free: 221.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001163/4.816, allocations: 25.7 kB / 2.299 GB, free: 221.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/4.816, allocations: 397.3 kB / 2.299 GB, free: 221.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/4.816, allocations: 135 kB / 2.299 GB, free: 221.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/4.816, allocations: 0 / 2.299 GB, free: 221.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001229/4.816, allocations: 328.7 kB / 2.3 GB, free: 221.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003486/4.817, allocations: 175.4 kB / 2.3 GB, free: 221.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005655/4.817, allocations: 418.2 kB / 2.3 GB, free: 221 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009209/4.818, allocations: 270.3 kB / 2.301 GB, free: 221 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/4.818, allocations: 7.062 kB / 2.301 GB, free: 221 MB / 1.167 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003651/4.822, allocations: 0.9327 MB / 2.301 GB, free: 220.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000535/4.822, allocations: 1.669 MB / 2.303 GB, free: 219.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/4.822, allocations: 3.719 kB / 2.303 GB, free: 219.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000752/4.823, allocations: 231.3 kB / 2.303 GB, free: 219.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005631/4.824, allocations: 127.1 kB / 2.303 GB, free: 219.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/4.825, allocations: 0.8777 MB / 2.304 GB, free: 218.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/4.826, allocations: 187.3 kB / 2.305 GB, free: 218.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/4.826, allocations: 29.56 kB / 2.305 GB, free: 218.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/4.827, allocations: 3.938 kB / 2.305 GB, free: 218.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002899/4.829, allocations: 0.8124 MB / 2.305 GB, free: 218.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/4.829, allocations: 3.875 kB / 2.305 GB, free: 218.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006211/4.83, allocations: 234.8 kB / 2.306 GB, free: 218.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/4.831, allocations: 122.7 kB / 2.306 GB, free: 218.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008959/4.831, allocations: 0.8731 MB / 2.307 GB, free: 218 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/4.833, allocations: 143.3 kB / 2.307 GB, free: 218 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.812e-05/4.833, allocations: 33.38 kB / 2.307 GB, free: 218 MB / 1.167 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.0002248/4.833, allocations: 128.9 kB / 2.307 GB, free: 217.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/4.833, allocations: 99.03 kB / 2.307 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003235/4.837, allocations: 0.9612 MB / 2.308 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/4.837, allocations: 3.938 kB / 2.308 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/4.837, allocations: 3.844 kB / 2.308 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/4.837, allocations: 2.844 kB / 2.308 GB, free: 217.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00472/4.841, allocations: 1.92 MB / 2.31 GB, free: 217.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/4.841, allocations: 3.875 kB / 2.31 GB, free: 217.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/4.842, allocations: 69.45 kB / 2.31 GB, free: 217.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006741/4.842, allocations: 248.5 kB / 2.31 GB, free: 217.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.888e-05/4.842, allocations: 9.391 kB / 2.31 GB, free: 217.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009562/4.843, allocations: 0.9096 MB / 2.311 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/4.843, allocations: 7.219 kB / 2.311 GB, free: 216.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002995/4.846, allocations: 1.129 MB / 2.312 GB, free: 216.4 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003219/4.85, allocations: 1.562 MB / 2.314 GB, free: 215.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005549/4.85, allocations: 268 kB / 2.314 GB, free: 215.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002246/4.851, allocations: 9.031 kB / 2.314 GB, free: 215.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009739/4.851, allocations: 110.7 kB / 2.314 GB, free: 215.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.894e-05/4.852, allocations: 32.86 kB / 2.314 GB, free: 215.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.23e-05/4.852, allocations: 22.67 kB / 2.314 GB, free: 215.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.0009229/4.853, allocations: 0.5709 MB / 2.315 GB, free: 215.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003772/4.856, allocations: 0.8097 MB / 2.315 GB, free: 215.3 MB / 1.167 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.001532/4.858, allocations: 0.672 MB / 2.316 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001699/4.86, allocations: 0.8033 MB / 2.317 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/4.86, allocations: 3.281 kB / 2.317 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004948/4.86, allocations: 269 kB / 2.317 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/4.862, allocations: 369.1 kB / 2.317 GB, free: 215.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005402/4.868, allocations: 1.615 MB / 2.319 GB, free: 214.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008066/4.868, allocations: 1.169 MB / 2.32 GB, free: 214 MB / 1.167 GB Notification: Performance of SimCode: time 7.02e-07/4.868, allocations: 2.516 kB / 2.32 GB, free: 214 MB / 1.167 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)