Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_y",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/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 192.5 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4735/0.4735, allocations: 90.85 MB / 99.07 MB, free: 14.98 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 221.4 MB / 342.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009877/0.0009877, allocations: 96.3 kB / 415.5 MB, free: 6.473 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1627/0.1637, allocations: 78.45 MB / 494 MB, free: 8.027 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.5463, allocations: 72.3 MB / 0.553 GB, free: 73.46 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5816/1.128, allocations: 381.9 MB / 0.9259 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/1.128, allocations: 86.83 kB / 0.926 GB, free: 9.273 MB / 0.5886 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 1.956/3.084, allocations: 0.5688 GB / 1.495 GB, free: 71.85 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/3.084, allocations: 7.688 kB / 1.495 GB, free: 71.85 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/3.086, allocations: 251.5 kB / 1.495 GB, free: 71.77 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00493/3.091, allocations: 1.728 MB / 1.497 GB, free: 71.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/3.091, allocations: 33.7 kB / 1.497 GB, free: 71.45 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003516/3.091, allocations: 67.62 kB / 1.497 GB, free: 71.45 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001847/3.093, allocations: 0.7014 MB / 1.498 GB, free: 71.45 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/3.095, allocations: 0.8815 MB / 1.498 GB, free: 71.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.778e-05/3.095, allocations: 2.344 kB / 1.498 GB, free: 71.32 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/3.095, allocations: 3.969 kB / 1.498 GB, free: 71.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.032e-05/3.095, allocations: 36.34 kB / 1.498 GB, free: 71.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008011/3.103, allocations: 5.068 MB / 1.503 GB, free: 69.08 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009008/3.104, allocations: 466.4 kB / 1.504 GB, free: 69.05 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003779/3.105, allocations: 256.4 kB / 1.504 GB, free: 69.04 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005243/3.105, allocations: 0.8289 MB / 1.505 GB, free: 68.1 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/3.105, allocations: 45.59 kB / 1.505 GB, free: 68.06 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=59): time 3.627e-06/3.105, allocations: 2.25 kB / 1.505 GB, free: 68.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=59): time 0.005065/3.11, allocations: 1.03 MB / 1.506 GB, free: 67.95 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/3.11, allocations: 63.25 kB / 1.506 GB, free: 67.88 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/3.112, allocations: 0.8838 MB / 1.507 GB, free: 67.74 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/3.112, allocations: 25.7 kB / 1.507 GB, free: 67.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/3.112, allocations: 451.1 kB / 1.507 GB, free: 67.45 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/3.113, allocations: 195.8 kB / 1.507 GB, free: 67.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/3.113, allocations: 3.656 kB / 1.507 GB, free: 67.32 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.174e-05/3.113, allocations: 335.9 kB / 1.508 GB, free: 67.02 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/3.113, allocations: 188.9 kB / 1.508 GB, free: 67.02 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004586/3.114, allocations: 418.2 kB / 1.508 GB, free: 66.77 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/3.114, allocations: 290.1 kB / 1.509 GB, free: 66.76 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/3.114, allocations: 0 / 1.509 GB, free: 66.76 MB / 0.6198 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004544/3.119, allocations: 1.171 MB / 1.51 GB, free: 66.65 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003538/3.119, allocations: 1.412 MB / 1.511 GB, free: 65.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/3.119, allocations: 2.969 kB / 1.511 GB, free: 65.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004473/3.12, allocations: 112.2 kB / 1.511 GB, free: 65.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006877/3.12, allocations: 162.8 kB / 1.511 GB, free: 65.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/3.122, allocations: 0.7925 MB / 1.512 GB, free: 64.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/3.123, allocations: 131.4 kB / 1.512 GB, free: 64.62 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/3.123, allocations: 34.53 kB / 1.512 GB, free: 64.62 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/3.123, allocations: 4.438 kB / 1.512 GB, free: 64.62 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00407/3.127, allocations: 1.026 MB / 1.513 GB, free: 64.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/3.127, allocations: 3.781 kB / 1.513 GB, free: 64.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/3.128, allocations: 109.6 kB / 1.513 GB, free: 64.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006281/3.128, allocations: 162.2 kB / 1.514 GB, free: 64.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/3.13, allocations: 0.7978 MB / 1.514 GB, free: 64.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/3.131, allocations: 115.8 kB / 1.515 GB, free: 64.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.331e-05/3.131, allocations: 32.19 kB / 1.515 GB, free: 64.05 MB / 0.6198 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaPum.COP:VARIABLE(min = 0.0 unit = "1" ) "Coefficient of performance" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 71 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002557/3.131, allocations: 124.3 kB / 1.515 GB, free: 63.94 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003107/3.132, allocations: 126.4 kB / 1.515 GB, free: 63.88 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00449/3.136, allocations: 1.168 MB / 1.516 GB, free: 63.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/3.136, allocations: 7.5 kB / 1.516 GB, free: 63.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/3.136, allocations: 3.375 kB / 1.516 GB, free: 63.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003895/3.14, allocations: 1.084 MB / 1.517 GB, free: 63.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006856/3.147, allocations: 2.359 MB / 1.519 GB, free: 63.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/3.147, allocations: 3.938 kB / 1.519 GB, free: 63.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005517/3.147, allocations: 128.1 kB / 1.519 GB, free: 63.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003344/3.148, allocations: 103.9 kB / 1.52 GB, free: 63.2 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/3.148, allocations: 14.09 kB / 1.52 GB, free: 63.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003519/3.151, allocations: 2.132 MB / 1.522 GB, free: 61.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/3.151, allocations: 6.375 kB / 1.522 GB, free: 61.9 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004825/3.156, allocations: 1.732 MB / 1.523 GB, free: 61.39 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005354/3.162, allocations: 2.491 MB / 1.526 GB, free: 60.49 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007813/3.162, allocations: 307 kB / 1.526 GB, free: 60.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003554/3.163, allocations: 10.62 kB / 1.526 GB, free: 60.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/3.164, allocations: 67.55 kB / 1.526 GB, free: 60.32 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/3.164, allocations: 47.94 kB / 1.526 GB, free: 60.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-05/3.164, allocations: 27.52 kB / 1.526 GB, free: 60.32 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0012/3.165, allocations: 0.6817 MB / 1.527 GB, free: 60.21 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.004728/3.17, allocations: 1.033 MB / 1.528 GB, free: 60.07 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete 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 (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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001714/3.172, allocations: 0.7835 MB / 1.529 GB, free: 59.88 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002771/3.174, allocations: 1.054 MB / 1.53 GB, free: 59.85 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/3.174, allocations: 3.656 kB / 1.53 GB, free: 59.85 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.00117/3.176, allocations: 494.3 kB / 1.53 GB, free: 59.75 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/3.179, allocations: 0.5348 MB / 1.531 GB, free: 59.74 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004627/3.183, allocations: 1.757 MB / 1.532 GB, free: 59.19 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/3.184, allocations: 1.307 MB / 1.534 GB, free: 58.48 MB / 0.6198 GB Notification: Performance of SimCode: time 9.62e-07/3.184, allocations: 0 / 1.534 GB, free: 58.48 MB / 0.6198 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_y.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)