Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",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 7.0.3-maint.7.0.x/package.mo): time 1.24/1.24, allocations: 249.4 MB / 256.7 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 193.2 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.169/1.169, allocations: 205.1 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008368/0.0008368, allocations: 86.72 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.341/0.3419, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.5038, allocations: 106.3 MB / 0.8847 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.025/1.528, allocations: 402.8 MB / 1.278 GB, free: 327.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/1.529, allocations: 90.91 kB / 1.278 GB, free: 327.1 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 7.72/9.249, allocations: 2.669 GB / 3.948 GB, free: 49.64 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/9.249, allocations: 10.34 kB / 3.948 GB, free: 49.64 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002698/9.252, allocations: 0.7732 MB / 3.948 GB, free: 49.27 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1296/9.382, allocations: 58.06 MB / 4.005 GB, free: 45.45 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/9.382, allocations: 134.8 kB / 4.005 GB, free: 45.45 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006978/9.382, allocations: 257 kB / 4.005 GB, free: 45.45 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004863/9.387, allocations: 2.538 MB / 4.008 GB, free: 45.42 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005459/9.393, allocations: 3.591 MB / 4.011 GB, free: 44.63 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.203e-05/9.393, allocations: 14.25 kB / 4.011 GB, free: 44.62 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002923/9.393, allocations: 8.875 kB / 4.011 GB, free: 44.62 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.006e-05/9.393, allocations: 116.7 kB / 4.011 GB, free: 44.62 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02554/9.419, allocations: 26 MB / 4.037 GB, free: 27.36 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/9.42, allocations: 1.097 MB / 4.038 GB, free: 26.91 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/9.422, allocations: 1.096 MB / 4.039 GB, free: 26.5 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002113/9.424, allocations: 3.938 MB / 4.043 GB, free: 22.04 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/9.424, allocations: 63.59 kB / 4.043 GB, free: 21.97 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=225): time 3.827e-06/9.424, allocations: 4 kB / 4.043 GB, free: 21.97 MB / 0.9948 GB Notification: Performance of matching and sorting (n=225): time 0.007802/9.432, allocations: 2.96 MB / 4.046 GB, free: 20.91 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/9.432, allocations: 74.81 kB / 4.046 GB, free: 20.85 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00586/9.438, allocations: 3.285 MB / 4.049 GB, free: 19.58 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005495/9.438, allocations: 31.67 kB / 4.049 GB, free: 19.55 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001384/9.44, allocations: 1.708 MB / 4.051 GB, free: 18.38 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001129/9.441, allocations: 0.7544 MB / 4.052 GB, free: 17.78 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/9.441, allocations: 0 / 4.052 GB, free: 17.78 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001147/9.441, allocations: 410.5 kB / 4.052 GB, free: 17.43 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/9.442, allocations: 0.7399 MB / 4.053 GB, free: 17.12 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001578/9.444, allocations: 1.714 MB / 4.054 GB, free: 15.55 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003661/9.448, allocations: 1.412 MB / 4.056 GB, free: 15.07 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.337e-05/9.448, allocations: 6.156 kB / 4.056 GB, free: 15.07 MB / 0.9948 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.008541/9.456, allocations: 3.552 MB / 4.059 GB, free: 13.79 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001365/9.458, allocations: 10.28 MB / 4.069 GB, free: 2.789 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-05/9.458, allocations: 21.59 kB / 4.069 GB, free: 2.789 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008696/9.459, allocations: 376.7 kB / 4.07 GB, free: 2.672 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/9.461, allocations: 0.5081 MB / 4.07 GB, free: 2.621 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/9.463, allocations: 2.85 MB / 4.073 GB, free: 224 kB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005594/9.468, allocations: 0.4956 MB / 4.073 GB, free: 56 kB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004904/9.469, allocations: 139.6 kB / 4.073 GB, free: 28 kB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/9.469, allocations: 7.719 kB / 4.073 GB, free: 24 kB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007413/9.476, allocations: 2.827 MB / 4.076 GB, free: 14.19 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/9.476, allocations: 24.94 kB / 4.076 GB, free: 14.16 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/9.477, allocations: 397.1 kB / 4.077 GB, free: 13.83 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/9.479, allocations: 0.5076 MB / 4.077 GB, free: 13.39 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008488/9.488, allocations: 7.309 MB / 4.084 GB, free: 6.027 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004911/9.492, allocations: 470.7 kB / 4.085 GB, free: 5.664 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/9.493, allocations: 127.2 kB / 4.085 GB, free: 5.547 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (291): * Single equations (assignments): 287 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 14,1 11,1 14,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0006865/9.493, allocations: 180.6 kB / 4.085 GB, free: 5.363 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/9.494, allocations: 0.4978 MB / 4.086 GB, free: 4.859 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008596/9.503, allocations: 4.151 MB / 4.09 GB, free: 1.422 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.713e-05/9.503, allocations: 38.84 kB / 4.09 GB, free: 1.391 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/9.503, allocations: 0 / 4.09 GB, free: 1.391 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007934/9.511, allocations: 2.932 MB / 4.092 GB, free: 15.46 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01711/9.528, allocations: 8.13 MB / 4.1 GB, free: 8.73 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/9.528, allocations: 0 / 4.1 GB, free: 8.73 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/9.53, allocations: 385.9 kB / 4.101 GB, free: 8.406 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004627/9.53, allocations: 221.7 kB / 4.101 GB, free: 8.203 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/9.53, allocations: 41.33 kB / 4.101 GB, free: 8.172 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001735/9.532, allocations: 2.521 MB / 4.103 GB, free: 5.598 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/9.532, allocations: 7.906 kB / 4.103 GB, free: 5.59 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008958/9.541, allocations: 4.839 MB / 4.108 GB, free: 1.137 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.4618/10, allocations: 6.945 MB / 4.115 GB, free: 142 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003059/10.01, allocations: 0.9639 MB / 4.116 GB, free: 141.9 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009807/10.01, allocations: 3.844 kB / 4.116 GB, free: 141.9 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003335/10.01, allocations: 395.6 kB / 4.116 GB, free: 141.9 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/10.01, allocations: 141.7 kB / 4.116 GB, free: 141.9 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001987/10.01, allocations: 103.5 kB / 4.117 GB, free: 141.9 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.00339/10.01, allocations: 2.437 MB / 4.119 GB, free: 141.7 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.01544/10.03, allocations: 4.779 MB / 4.124 GB, free: 141.5 MB / 1.026 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005401/10.04, allocations: 3.424 MB / 4.127 GB, free: 140.4 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.006276/10.04, allocations: 4.248 MB / 4.131 GB, free: 139.9 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/10.04, allocations: 5.594 kB / 4.131 GB, free: 139.9 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.001647/10.04, allocations: 1.247 MB / 4.132 GB, free: 139.8 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01217/10.06, allocations: 2.524 MB / 4.135 GB, free: 139.8 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/10.07, allocations: 7.318 MB / 4.142 GB, free: 138 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00321/10.07, allocations: 3.466 MB / 4.145 GB, free: 137.2 MB / 1.026 GB Notification: Performance of SimCode: time 8.82e-07/10.07, allocations: 2.156 kB / 4.145 GB, free: 137.2 MB / 1.026 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)