Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_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.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_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.248/1.248, allocations: 249.4 MB / 256.7 MB, free: 7.031 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.001001/0.001001, allocations: 181.2 kB / 316 MB, free: 3.555 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.181/1.181, allocations: 205.2 MB / 0.5667 GB, free: 15.62 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.0009214/0.0009217, allocations: 86.28 kB / 0.671 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3408/0.3418, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.5078, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.71/4.217, allocations: 2.24 GB / 3.125 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/4.218, allocations: 97.2 kB / 3.125 GB, free: 145.8 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: 382 * Number of variables: 382 Notification: Performance of Generate backend data structure: time 5.804/10.02, allocations: 1.928 GB / 5.053 GB, free: 94.06 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/10.02, allocations: 6.062 kB / 5.053 GB, free: 94.06 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005479/10.03, allocations: 0.8442 MB / 5.054 GB, free: 93.92 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005451/10.03, allocations: 2.414 MB / 5.056 GB, free: 93.54 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.909e-05/10.03, allocations: 53.86 kB / 5.056 GB, free: 93.54 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/10.03, allocations: 98.53 kB / 5.057 GB, free: 93.54 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002151/10.03, allocations: 1.36 MB / 5.058 GB, free: 93.53 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/10.04, allocations: 1.587 MB / 5.059 GB, free: 93.3 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/10.04, allocations: 2.156 kB / 5.059 GB, free: 93.3 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/10.04, allocations: 3.062 kB / 5.059 GB, free: 93.3 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.484e-05/10.04, allocations: 53.41 kB / 5.059 GB, free: 93.3 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009296/10.05, allocations: 8.29 MB / 5.068 GB, free: 89.36 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/10.05, allocations: 0.9585 MB / 5.068 GB, free: 89.32 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007135/10.05, allocations: 0.6169 MB / 5.069 GB, free: 89.3 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004615/10.05, allocations: 384.6 kB / 5.069 GB, free: 88.93 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007655/10.05, allocations: 0.6201 MB / 5.07 GB, free: 88.87 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=102): time 3.086e-06/10.05, allocations: 0 / 5.07 GB, free: 88.87 MB / 0.9323 GB Notification: Performance of matching and sorting (n=105): time 0.006695/10.06, allocations: 3.002 MB / 5.073 GB, free: 88.18 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/10.06, allocations: 166.9 kB / 5.073 GB, free: 88 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/10.06, allocations: 1.22 MB / 5.074 GB, free: 87.79 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 8.643e-05/10.06, allocations: 29.52 kB / 5.074 GB, free: 87.76 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003792/10.06, allocations: 0.6326 MB / 5.075 GB, free: 87.5 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002591/10.06, allocations: 360.9 kB / 5.075 GB, free: 87.32 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.973e-05/10.06, allocations: 2.594 kB / 5.075 GB, free: 87.32 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 6.597e-05/10.06, allocations: 353.2 kB / 5.076 GB, free: 87.02 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005616/10.06, allocations: 448.4 kB / 5.076 GB, free: 87.02 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006969/10.06, allocations: 0.7933 MB / 5.077 GB, free: 86.61 MB / 0.9323 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (hea.vol.dynBal.p_start = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.006036/10.07, allocations: 2.052 MB / 5.079 GB, free: 86.46 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/10.07, allocations: 2.625 kB / 5.079 GB, free: 86.46 MB / 0.9323 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00214/10.07, allocations: 1.453 MB / 5.08 GB, free: 86.3 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004668/10.07, allocations: 3.001 MB / 5.083 GB, free: 83.18 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/10.07, allocations: 12.59 kB / 5.083 GB, free: 83.18 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/10.07, allocations: 45.94 kB / 5.083 GB, free: 83.17 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/10.07, allocations: 296.4 kB / 5.084 GB, free: 83.17 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008343/10.07, allocations: 1.425 MB / 5.085 GB, free: 81.89 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/10.07, allocations: 134.6 kB / 5.085 GB, free: 81.89 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/10.07, allocations: 60.39 kB / 5.085 GB, free: 81.89 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 4.288e-06/10.07, allocations: 2.406 kB / 5.085 GB, free: 81.89 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001842/10.07, allocations: 1.206 MB / 5.086 GB, free: 81.86 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/10.07, allocations: 10.44 kB / 5.086 GB, free: 81.86 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.207e-05/10.07, allocations: 48.5 kB / 5.086 GB, free: 81.85 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/10.08, allocations: 284.3 kB / 5.087 GB, free: 81.85 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007752/10.08, allocations: 1.432 MB / 5.088 GB, free: 80.58 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/10.08, allocations: 141 kB / 5.088 GB, free: 80.57 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.78e-05/10.08, allocations: 58.45 kB / 5.088 GB, free: 80.57 MB / 0.9323 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: vol.dynBal.medium.p = vol.dynBal.p_start Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 143 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002602/10.08, allocations: 141.9 kB / 5.088 GB, free: 80.46 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/10.08, allocations: 190.6 kB / 5.089 GB, free: 80.36 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/10.08, allocations: 1.288 MB / 5.09 GB, free: 80.27 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/10.08, allocations: 10.53 kB / 5.09 GB, free: 80.27 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/10.08, allocations: 5.375 kB / 5.09 GB, free: 80.27 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001486/10.08, allocations: 1.024 MB / 5.091 GB, free: 80.17 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/10.09, allocations: 3.011 MB / 5.094 GB, free: 79.73 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/10.09, allocations: 3.5 kB / 5.094 GB, free: 79.73 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/10.09, allocations: 240.9 kB / 5.094 GB, free: 79.73 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002041/10.09, allocations: 72.47 kB / 5.094 GB, free: 79.71 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.317e-05/10.09, allocations: 16.66 kB / 5.094 GB, free: 79.71 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001543/10.09, allocations: 2.643 MB / 5.097 GB, free: 77.33 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/10.09, allocations: 2.891 kB / 5.097 GB, free: 77.33 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002721/10.09, allocations: 2.04 MB / 5.099 GB, free: 76.91 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003701/10.1, allocations: 3.263 MB / 5.102 GB, free: 76.12 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007576/10.1, allocations: 386.5 kB / 5.102 GB, free: 75.93 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/10.1, allocations: 13.33 kB / 5.102 GB, free: 75.92 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/10.1, allocations: 133.5 kB / 5.102 GB, free: 75.92 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/10.1, allocations: 65.06 kB / 5.102 GB, free: 75.92 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/10.1, allocations: 40.12 kB / 5.102 GB, free: 75.92 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001193/10.1, allocations: 0.9198 MB / 5.103 GB, free: 75.77 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.00647/10.11, allocations: 2.03 MB / 5.105 GB, free: 75.73 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (vol.dynBal.U,vol.dynBal.mXi[1],mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U,hea.vol.dynBal.m,hea.vol.dynBal.mXi[1]) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004488/10.11, allocations: 3.666 MB / 5.109 GB, free: 74.42 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003232/10.11, allocations: 2.137 MB / 5.111 GB, free: 74.06 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/10.11, allocations: 5.469 kB / 5.111 GB, free: 74.06 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0008153/10.12, allocations: 0.7338 MB / 5.112 GB, free: 73.86 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004877/10.12, allocations: 0.8928 MB / 5.113 GB, free: 73.84 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008128/10.13, allocations: 3.276 MB / 5.116 GB, free: 73.07 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001724/10.13, allocations: 1.817 MB / 5.118 GB, free: 72.33 MB / 0.9323 GB Notification: Performance of SimCode: time 1.413e-06/10.13, allocations: 3.656 kB / 5.118 GB, free: 72.33 MB / 0.9323 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)