Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",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 9.1.1-maint.9.1.x/package.mo): time 2.081/2.081, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 183.6 kB / 487 MB, free: 5.363 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 221.3 MB / 0.7819 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 99.7 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6747/0.6759, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.9885, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.77/5.759, allocations: 1.96 GB / 3.165 GB, free: 345 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/5.759, allocations: 99.88 kB / 3.165 GB, free: 345 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 7.466/13.22, allocations: 2.093 GB / 5.258 GB, free: 297.3 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/13.22, allocations: 7.25 kB / 5.258 GB, free: 297.3 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006416/13.23, allocations: 0.9349 MB / 5.259 GB, free: 297.1 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00677/13.24, allocations: 2.26 MB / 5.262 GB, free: 296.8 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.51e-05/13.24, allocations: 43.22 kB / 5.262 GB, free: 296.8 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003127/13.24, allocations: 85.03 kB / 5.262 GB, free: 296.8 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002235/13.24, allocations: 1.175 MB / 5.263 GB, free: 296.8 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/13.24, allocations: 1.366 MB / 5.264 GB, free: 296.5 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/13.24, allocations: 4.562 kB / 5.264 GB, free: 296.5 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/13.24, allocations: 7.438 kB / 5.264 GB, free: 296.5 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.255e-05/13.24, allocations: 46.36 kB / 5.264 GB, free: 296.5 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01107/13.25, allocations: 7.82 MB / 5.272 GB, free: 292.5 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007994/13.25, allocations: 0.5787 MB / 5.272 GB, free: 292.5 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006323/13.26, allocations: 487.3 kB / 5.273 GB, free: 292.5 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001159/13.26, allocations: 0.9304 MB / 5.274 GB, free: 291.5 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007447/13.26, allocations: 0.5037 MB / 5.274 GB, free: 291.5 MB / 1.182 GB Notification: Performance of pre-optimization done (n=86): time 3.637e-06/13.26, allocations: 0 / 5.274 GB, free: 291.5 MB / 1.182 GB Notification: Performance of matching and sorting (n=86): time 0.004114/13.26, allocations: 1.142 MB / 5.275 GB, free: 291.3 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.098e-05/13.26, allocations: 117.5 kB / 5.276 GB, free: 291.2 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/13.26, allocations: 1.223 MB / 5.277 GB, free: 291 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0001915/13.26, allocations: 29.3 kB / 5.277 GB, free: 291 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.000841/13.27, allocations: 0.5938 MB / 5.277 GB, free: 290.7 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004477/13.27, allocations: 292.1 kB / 5.278 GB, free: 290.6 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.151e-05/13.27, allocations: 0 / 5.278 GB, free: 290.6 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0001763/13.27, allocations: 352.2 kB / 5.278 GB, free: 290.3 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006201/13.27, allocations: 347.3 kB / 5.278 GB, free: 290.3 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008991/13.27, allocations: 0.6924 MB / 5.279 GB, free: 289.9 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/13.27, allocations: 0.545 MB / 5.279 GB, free: 289.9 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/13.27, allocations: 3.219 kB / 5.279 GB, free: 289.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.003083/13.27, allocations: 1.257 MB / 5.281 GB, free: 289.7 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001478/13.27, allocations: 3.352 MB / 5.284 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/13.27, allocations: 12.11 kB / 5.284 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.963e-05/13.27, allocations: 20.28 kB / 5.284 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/13.27, allocations: 270.9 kB / 5.284 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.218e-05/13.27, allocations: 24.81 kB / 5.284 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002776/13.28, allocations: 198.6 kB / 5.285 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/13.28, allocations: 55.8 kB / 5.285 GB, free: 286.2 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/13.28, allocations: 3.312 kB / 5.285 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002275/13.28, allocations: 1.02 MB / 5.286 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/13.28, allocations: 7.406 kB / 5.286 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/13.28, allocations: 15.38 kB / 5.286 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/13.28, allocations: 277.8 kB / 5.286 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/13.28, allocations: 19.47 kB / 5.286 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/13.28, allocations: 182.6 kB / 5.286 GB, free: 286.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/13.28, allocations: 49.47 kB / 5.286 GB, free: 286.2 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (133): * Single equations (assignments): 131 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003957/13.28, allocations: 139.1 kB / 5.286 GB, free: 286.1 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/13.28, allocations: 175.3 kB / 5.286 GB, free: 286 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002953/13.29, allocations: 1.119 MB / 5.287 GB, free: 285.9 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/13.29, allocations: 9.031 kB / 5.287 GB, free: 285.9 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/13.29, allocations: 3.375 kB / 5.287 GB, free: 285.9 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001671/13.29, allocations: 1.167 MB / 5.289 GB, free: 285.4 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005226/13.29, allocations: 2.52 MB / 5.291 GB, free: 285.1 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/13.29, allocations: 0 / 5.291 GB, free: 285.1 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/13.3, allocations: 189.4 kB / 5.291 GB, free: 285.1 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002094/13.3, allocations: 48.64 kB / 5.291 GB, free: 285.1 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.072e-05/13.3, allocations: 19.61 kB / 5.291 GB, free: 285.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/13.3, allocations: 1.374 MB / 5.293 GB, free: 283.9 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/13.3, allocations: 3.25 kB / 5.293 GB, free: 283.9 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002897/13.3, allocations: 1.674 MB / 5.294 GB, free: 283.5 MB / 1.182 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003945/13.3, allocations: 2.73 MB / 5.297 GB, free: 282.7 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009527/13.31, allocations: 350.7 kB / 5.297 GB, free: 282.6 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002511/13.31, allocations: 9.344 kB / 5.297 GB, free: 282.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/13.31, allocations: 125.1 kB / 5.297 GB, free: 282.6 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/13.31, allocations: 60.56 kB / 5.297 GB, free: 282.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.113e-05/13.31, allocations: 34.67 kB / 5.298 GB, free: 282.6 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.001497/13.31, allocations: 0.9107 MB / 5.298 GB, free: 282.4 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.007005/13.32, allocations: 1.991 MB / 5.3 GB, free: 282.4 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (87): * Single equations (assignments): 84 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008035/13.32, allocations: 3.689 MB / 5.304 GB, free: 281.1 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.004243/13.33, allocations: 1.524 MB / 5.305 GB, free: 281.1 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/13.33, allocations: 0 / 5.305 GB, free: 281.1 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001386/13.33, allocations: 0.5287 MB / 5.306 GB, free: 281 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005969/13.34, allocations: 0.7161 MB / 5.307 GB, free: 280.9 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/13.35, allocations: 3.02 MB / 5.31 GB, free: 280.2 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/13.35, allocations: 1.698 MB / 5.311 GB, free: 279.5 MB / 1.182 GB Notification: Performance of SimCode: time 1.353e-06/13.35, allocations: 0 / 5.311 GB, free: 279.5 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)