Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.253/2.253, allocations: 284.8 MB / 292.1 MB, free: 10.82 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001617/0.001617, allocations: 185.3 kB / 360.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.786/1.786, allocations: 205.1 MB / 0.6187 GB, free: 13.21 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001326/0.001325, allocations: 84.58 kB / 0.7317 GB, free: 45.15 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.276/0.2773, allocations: 121.4 MB / 0.8502 GB, free: 3.945 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6605/0.9379, allocations: 115.2 MB / 0.9627 GB, free: 78.48 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.162/6.1, allocations: 2.121 GB / 3.083 GB, free: 256.1 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/6.1, allocations: 89.56 kB / 3.083 GB, free: 256.1 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 9.194/15.29, allocations: 1.987 GB / 5.071 GB, free: 111 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 6.736e-05/15.29, allocations: 12.44 kB / 5.071 GB, free: 111 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/15.3, allocations: 0.8548 MB / 5.072 GB, free: 110.2 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/15.32, allocations: 2.401 MB / 5.074 GB, free: 107.8 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/15.32, allocations: 48 kB / 5.074 GB, free: 107.7 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005968/15.32, allocations: 98.19 kB / 5.074 GB, free: 107.6 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004931/15.32, allocations: 1.357 MB / 5.075 GB, free: 106.3 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005188/15.33, allocations: 1.563 MB / 5.077 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.646e-05/15.33, allocations: 7.609 kB / 5.077 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002538/15.33, allocations: 4 kB / 5.077 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.135e-05/15.33, allocations: 58.89 kB / 5.077 GB, free: 104.6 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02073/15.35, allocations: 8.293 MB / 5.085 GB, free: 95.9 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/15.35, allocations: 0.9517 MB / 5.086 GB, free: 94.95 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/15.35, allocations: 0.615 MB / 5.087 GB, free: 94.34 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008165/15.35, allocations: 384.3 kB / 5.087 GB, free: 93.89 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001518/15.35, allocations: 0.6044 MB / 5.088 GB, free: 93.28 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=102): time 4.328e-06/15.35, allocations: 4 kB / 5.088 GB, free: 93.27 MB / 0.9792 GB Notification: Performance of matching and sorting (n=105): time 0.01349/15.37, allocations: 3.014 MB / 5.091 GB, free: 90.21 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/15.37, allocations: 163.2 kB / 5.091 GB, free: 90.01 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002745/15.37, allocations: 1.211 MB / 5.092 GB, free: 88.76 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0003964/15.37, allocations: 32.86 kB / 5.092 GB, free: 88.73 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006686/15.37, allocations: 0.6237 MB / 5.093 GB, free: 88.09 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006118/15.37, allocations: 354.7 kB / 5.093 GB, free: 87.74 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/15.37, allocations: 0 / 5.093 GB, free: 87.74 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001284/15.37, allocations: 353.9 kB / 5.093 GB, free: 87.39 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/15.37, allocations: 450.5 kB / 5.094 GB, free: 86.95 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/15.38, allocations: 0.8058 MB / 5.094 GB, free: 86 MB / 0.9792 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.01313/15.39, allocations: 2.078 MB / 5.096 GB, free: 83.96 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/15.39, allocations: 0 / 5.096 GB, free: 83.96 MB / 0.9792 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005317/15.39, allocations: 1.463 MB / 5.098 GB, free: 82.5 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007865/15.39, allocations: 3.004 MB / 5.101 GB, free: 79.29 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.356e-05/15.39, allocations: 8 kB / 5.101 GB, free: 79.28 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003137/15.4, allocations: 48.78 kB / 5.101 GB, free: 79.23 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003422/15.4, allocations: 287.2 kB / 5.101 GB, free: 78.95 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/15.4, allocations: 1.429 MB / 5.103 GB, free: 77.41 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003846/15.4, allocations: 134.2 kB / 5.103 GB, free: 77.29 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004774/15.4, allocations: 59.97 kB / 5.103 GB, free: 77.23 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/15.4, allocations: 10.75 kB / 5.103 GB, free: 77.23 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003959/15.41, allocations: 1.217 MB / 5.104 GB, free: 76.02 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/15.41, allocations: 8 kB / 5.104 GB, free: 76.01 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001977/15.41, allocations: 48.78 kB / 5.104 GB, free: 75.96 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002447/15.41, allocations: 285.3 kB / 5.104 GB, free: 75.68 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/15.41, allocations: 1.421 MB / 5.106 GB, free: 74.15 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003644/15.42, allocations: 135.6 kB / 5.106 GB, free: 74.03 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/15.42, allocations: 51.98 kB / 5.106 GB, free: 73.98 MB / 0.9792 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.0005144/15.42, allocations: 147.6 kB / 5.106 GB, free: 73.83 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004734/15.42, allocations: 189.7 kB / 5.106 GB, free: 73.64 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004357/15.42, allocations: 1.291 MB / 5.107 GB, free: 72.35 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/15.42, allocations: 12 kB / 5.107 GB, free: 72.34 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/15.42, allocations: 0 / 5.107 GB, free: 72.34 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002845/15.43, allocations: 1.037 MB / 5.108 GB, free: 71.28 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009236/15.43, allocations: 3.023 MB / 5.111 GB, free: 68.21 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/15.43, allocations: 4 kB / 5.111 GB, free: 68.21 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002469/15.44, allocations: 230.3 kB / 5.112 GB, free: 67.98 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004214/15.44, allocations: 80.33 kB / 5.112 GB, free: 67.91 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002306/15.44, allocations: 15.98 kB / 5.112 GB, free: 67.89 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002523/15.44, allocations: 2.636 MB / 5.114 GB, free: 65.04 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.195e-06/15.44, allocations: 7.938 kB / 5.114 GB, free: 65.03 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005467/15.45, allocations: 2.051 MB / 5.116 GB, free: 62.91 MB / 0.9792 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007583/15.45, allocations: 3.281 MB / 5.119 GB, free: 59.56 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001703/15.46, allocations: 381.5 kB / 5.12 GB, free: 59.17 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006672/15.46, allocations: 11.98 kB / 5.12 GB, free: 59.16 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003625/15.46, allocations: 124.4 kB / 5.12 GB, free: 59.05 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/15.46, allocations: 64.89 kB / 5.12 GB, free: 58.98 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/15.46, allocations: 35.98 kB / 5.12 GB, free: 58.95 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.002148/15.46, allocations: 0.9139 MB / 5.121 GB, free: 58.01 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.01173/15.47, allocations: 2.038 MB / 5.123 GB, free: 55.97 MB / 0.9792 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.007611/15.48, allocations: 3.677 MB / 5.127 GB, free: 52.68 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.005443/15.49, allocations: 2.153 MB / 5.129 GB, free: 50.49 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/15.49, allocations: 0 / 5.129 GB, free: 50.49 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.00162/15.49, allocations: 0.7413 MB / 5.129 GB, free: 49.73 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008572/15.5, allocations: 0.8923 MB / 5.13 GB, free: 48.86 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/15.51, allocations: 3.252 MB / 5.133 GB, free: 45.57 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003038/15.52, allocations: 1.81 MB / 5.135 GB, free: 43.72 MB / 0.9792 GB Notification: Performance of SimCode: time 2.114e-06/15.52, allocations: 7.938 kB / 5.135 GB, free: 43.71 MB / 0.9792 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)