Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.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_TCon,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 185.2 kB / 7.8 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4677/0.4677, allocations: 90.85 MB / 99.06 MB, free: 14.93 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.292/1.292, allocations: 221.4 MB / 342.8 MB, free: 5.121 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.001011/0.001011, allocations: 99.03 kB / 415.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1796/0.1806, allocations: 78.45 MB / 494 MB, free: 7.965 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4011/0.5817, allocations: 72.29 MB / 0.553 GB, free: 73.28 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6241/1.206, allocations: 386 MB / 0.93 GB, free: 5.188 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/1.206, allocations: 89.45 kB / 0.9301 GB, free: 5.145 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 2.177/3.384, allocations: 0.6514 GB / 1.581 GB, free: 64.48 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/3.384, allocations: 6.812 kB / 1.581 GB, free: 64.48 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002126/3.386, allocations: 493.9 kB / 1.582 GB, free: 64.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/3.388, allocations: 1.314 MB / 1.583 GB, free: 63.35 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003569/3.389, allocations: 105.8 kB / 1.583 GB, free: 63.33 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/3.389, allocations: 47.41 kB / 1.583 GB, free: 63.33 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001132/3.39, allocations: 0.6284 MB / 1.584 GB, free: 63.03 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/3.391, allocations: 0.7639 MB / 1.585 GB, free: 62.54 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/3.391, allocations: 3.938 kB / 1.585 GB, free: 62.54 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/3.391, allocations: 0 / 1.585 GB, free: 62.54 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.921e-05/3.391, allocations: 37.33 kB / 1.585 GB, free: 62.53 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005969/3.397, allocations: 4.768 MB / 1.589 GB, free: 58.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/3.4, allocations: 0.6868 MB / 1.59 GB, free: 58.16 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/3.4, allocations: 191.9 kB / 1.59 GB, free: 58.07 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004829/3.401, allocations: 0.9026 MB / 1.591 GB, free: 57.01 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/3.401, allocations: 41.06 kB / 1.591 GB, free: 56.96 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=42): time 3.887e-06/3.401, allocations: 0 / 1.591 GB, free: 56.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=42): time 0.00286/3.404, allocations: 0.787 MB / 1.592 GB, free: 56.61 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/3.404, allocations: 55.25 kB / 1.592 GB, free: 56.55 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009471/3.404, allocations: 0.7408 MB / 1.593 GB, free: 56.13 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.587e-05/3.405, allocations: 36.17 kB / 1.593 GB, free: 56.09 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/3.405, allocations: 392.2 kB / 1.593 GB, free: 55.76 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.984e-05/3.405, allocations: 140.4 kB / 1.593 GB, free: 55.64 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/3.405, allocations: 3.938 kB / 1.593 GB, free: 55.63 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.379e-05/3.405, allocations: 321.8 kB / 1.594 GB, free: 55.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/3.405, allocations: 176.6 kB / 1.594 GB, free: 55.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003853/3.406, allocations: 413.9 kB / 1.594 GB, free: 54.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007007/3.406, allocations: 271.2 kB / 1.594 GB, free: 54.7 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/3.406, allocations: 1.719 kB / 1.594 GB, free: 54.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002937/3.409, allocations: 0.9325 MB / 1.595 GB, free: 54.28 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002651/3.41, allocations: 1.666 MB / 1.597 GB, free: 52.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/3.41, allocations: 3.094 kB / 1.597 GB, free: 52.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006463/3.41, allocations: 230.6 kB / 1.597 GB, free: 52.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/3.411, allocations: 133.5 kB / 1.597 GB, free: 52.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009503/3.412, allocations: 0.8843 MB / 1.598 GB, free: 51.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/3.413, allocations: 170.2 kB / 1.598 GB, free: 51.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/3.413, allocations: 35.95 kB / 1.598 GB, free: 51.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/3.413, allocations: 3.031 kB / 1.598 GB, free: 51.6 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002887/3.416, allocations: 0.8123 MB / 1.599 GB, free: 51.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/3.416, allocations: 10.94 kB / 1.599 GB, free: 51.25 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006917/3.417, allocations: 232.2 kB / 1.599 GB, free: 51.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/3.417, allocations: 123.6 kB / 1.6 GB, free: 51.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009595/3.418, allocations: 0.8799 MB / 1.6 GB, free: 50.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/3.42, allocations: 149.2 kB / 1.601 GB, free: 50.36 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.062e-05/3.42, allocations: 33.92 kB / 1.601 GB, free: 50.35 MB / 0.6198 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.0001899/3.42, allocations: 113.4 kB / 1.601 GB, free: 50.24 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/3.42, allocations: 97.34 kB / 1.601 GB, free: 50.19 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003229/3.424, allocations: 0.9615 MB / 1.602 GB, free: 49.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/3.424, allocations: 7.906 kB / 1.602 GB, free: 49.73 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/3.424, allocations: 3.906 kB / 1.602 GB, free: 49.72 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/3.424, allocations: 3.984 kB / 1.602 GB, free: 49.72 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004553/3.428, allocations: 1.917 MB / 1.604 GB, free: 48.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/3.428, allocations: 3.906 kB / 1.604 GB, free: 48.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002852/3.428, allocations: 71.89 kB / 1.604 GB, free: 48.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006381/3.429, allocations: 244.7 kB / 1.604 GB, free: 48.07 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/3.429, allocations: 7.938 kB / 1.604 GB, free: 48.06 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009432/3.43, allocations: 0.9117 MB / 1.605 GB, free: 47.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/3.43, allocations: 0 / 1.605 GB, free: 47.12 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003044/3.433, allocations: 1.137 MB / 1.606 GB, free: 45.9 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003082/3.436, allocations: 1.571 MB / 1.607 GB, free: 44.23 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005112/3.437, allocations: 259.7 kB / 1.608 GB, free: 43.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/3.437, allocations: 7.906 kB / 1.608 GB, free: 43.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008876/3.438, allocations: 111.8 kB / 1.608 GB, free: 43.84 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/3.438, allocations: 35.86 kB / 1.608 GB, free: 43.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.214e-05/3.438, allocations: 19.98 kB / 1.608 GB, free: 43.79 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0007521/3.439, allocations: 0.5677 MB / 1.608 GB, free: 43.21 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.003235/3.442, allocations: 0.8098 MB / 1.609 GB, free: 42.4 MB / 0.6198 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.001095/3.443, allocations: 0.6707 MB / 1.61 GB, free: 41.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00155/3.445, allocations: 0.791 MB / 1.611 GB, free: 41.02 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/3.445, allocations: 4 kB / 1.611 GB, free: 41.01 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004428/3.445, allocations: 265.8 kB / 1.611 GB, free: 40.75 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/3.447, allocations: 386.8 kB / 1.611 GB, free: 40.39 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004767/3.452, allocations: 1.618 MB / 1.613 GB, free: 38.72 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000648/3.452, allocations: 1.163 MB / 1.614 GB, free: 37.53 MB / 0.6198 GB Notification: Performance of SimCode: time 1.232e-06/3.452, allocations: 0 / 1.614 GB, free: 37.53 MB / 0.6198 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)