Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR",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 1.984/1.984, allocations: 387.2 MB / 394.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 185.2 kB / 487 MB, free: 0.668 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 221.3 MB / 0.7819 GB, free: 6.711 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009966/0.0009965, allocations: 102.9 kB / 0.9213 GB, free: 43.62 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3348/0.3358, allocations: 148.5 MB / 1.066 GB, free: 7.434 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8109/1.147, allocations: 142.3 MB / 1.205 GB, free: 72.65 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.083/2.229, allocations: 428.9 MB / 1.624 GB, free: 180 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/2.23, allocations: 88.36 kB / 1.624 GB, free: 180 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 1.846/4.076, allocations: 0.639 GB / 2.263 GB, free: 133.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/4.076, allocations: 8 kB / 2.263 GB, free: 133.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004009/4.08, allocations: 0.6813 MB / 2.264 GB, free: 133 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00421/4.084, allocations: 1.662 MB / 2.266 GB, free: 131.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/4.084, allocations: 101.4 kB / 2.266 GB, free: 131.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003299/4.084, allocations: 64 kB / 2.266 GB, free: 131.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001968/4.086, allocations: 0.9292 MB / 2.267 GB, free: 130.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/4.089, allocations: 0.9953 MB / 2.268 GB, free: 129.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.694e-05/4.089, allocations: 3.984 kB / 2.268 GB, free: 129.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/4.089, allocations: 4 kB / 2.268 GB, free: 129.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.774e-05/4.089, allocations: 27.94 kB / 2.268 GB, free: 129.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008393/4.097, allocations: 5.629 MB / 2.273 GB, free: 123.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/4.098, allocations: 0.6374 MB / 2.274 GB, free: 122.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006104/4.099, allocations: 440.9 kB / 2.274 GB, free: 122.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008381/4.1, allocations: 1.243 MB / 2.275 GB, free: 120.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007328/4.1, allocations: 0.5183 MB / 2.276 GB, free: 120.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=67): time 3.878e-06/4.1, allocations: 4 kB / 2.276 GB, free: 120.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=67): time 0.002285/4.103, allocations: 0.8848 MB / 2.277 GB, free: 119.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/4.103, allocations: 119.4 kB / 2.277 GB, free: 119.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/4.105, allocations: 1.006 MB / 2.278 GB, free: 118.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.00016/4.105, allocations: 29.7 kB / 2.278 GB, free: 118 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004654/4.105, allocations: 435 kB / 2.278 GB, free: 117.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/4.106, allocations: 220.7 kB / 2.278 GB, free: 117.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.423e-05/4.106, allocations: 0 / 2.278 GB, free: 117.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.6e-05/4.106, allocations: 345.9 kB / 2.279 GB, free: 117.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/4.106, allocations: 345.5 kB / 2.279 GB, free: 116.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006634/4.107, allocations: 0.5841 MB / 2.28 GB, free: 116 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/4.108, allocations: 421.6 kB / 2.28 GB, free: 115.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/4.108, allocations: 0 / 2.28 GB, free: 115.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00199/4.11, allocations: 0.9902 MB / 2.281 GB, free: 114.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002583/4.11, allocations: 1.158 MB / 2.282 GB, free: 113.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/4.11, allocations: 4 kB / 2.282 GB, free: 113.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/4.11, allocations: 9.562 kB / 2.282 GB, free: 113.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/4.112, allocations: 299.5 kB / 2.283 GB, free: 113.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.681e-05/4.112, allocations: 8 kB / 2.283 GB, free: 113.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/4.114, allocations: 215.2 kB / 2.283 GB, free: 112.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/4.114, allocations: 47.97 kB / 2.283 GB, free: 112.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/4.114, allocations: 4 kB / 2.283 GB, free: 112.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001641/4.116, allocations: 0.8221 MB / 2.284 GB, free: 112 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/4.116, allocations: 4 kB / 2.284 GB, free: 112 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/4.116, allocations: 8 kB / 2.284 GB, free: 112 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/4.117, allocations: 284 kB / 2.284 GB, free: 111.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/4.117, allocations: 11.94 kB / 2.284 GB, free: 111.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/4.119, allocations: 211.3 kB / 2.284 GB, free: 111.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/4.119, allocations: 47.97 kB / 2.284 GB, free: 111.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * 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.000276/4.119, allocations: 136.7 kB / 2.284 GB, free: 111.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002406/4.119, allocations: 142.2 kB / 2.284 GB, free: 111.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/4.122, allocations: 1.109 MB / 2.285 GB, free: 110 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/4.122, allocations: 8 kB / 2.285 GB, free: 110 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/4.122, allocations: 0 / 2.285 GB, free: 110 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001382/4.123, allocations: 0.9056 MB / 2.286 GB, free: 109.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004722/4.128, allocations: 2.96 MB / 2.289 GB, free: 106 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/4.128, allocations: 4 kB / 2.289 GB, free: 106 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/4.129, allocations: 255.8 kB / 2.289 GB, free: 105.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.13e-05/4.129, allocations: 4 kB / 2.289 GB, free: 105.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.178e-05/4.129, allocations: 25.22 kB / 2.29 GB, free: 105.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/4.129, allocations: 8 kB / 2.29 GB, free: 105.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/4.129, allocations: 11.94 kB / 2.29 GB, free: 105.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002478/4.132, allocations: 2.021 MB / 2.292 GB, free: 103.5 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003156/4.135, allocations: 3.045 MB / 2.294 GB, free: 100.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007487/4.136, allocations: 464 kB / 2.295 GB, free: 99.73 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/4.136, allocations: 11.98 kB / 2.295 GB, free: 99.71 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/4.137, allocations: 175.8 kB / 2.295 GB, free: 99.54 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/4.137, allocations: 76.19 kB / 2.295 GB, free: 99.46 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.381e-05/4.138, allocations: 48.53 kB / 2.295 GB, free: 99.42 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0009538/4.138, allocations: 0.765 MB / 2.296 GB, free: 98.65 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003922/4.142, allocations: 1.057 MB / 2.297 GB, free: 97.59 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001704/4.144, allocations: 0.8098 MB / 2.298 GB, free: 96.86 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00192/4.146, allocations: 1.367 MB / 2.299 GB, free: 95.47 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/4.146, allocations: 5.5 kB / 2.299 GB, free: 95.47 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007267/4.147, allocations: 0.4948 MB / 2.3 GB, free: 94.98 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/4.15, allocations: 0.6129 MB / 2.3 GB, free: 94.38 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003702/4.153, allocations: 2.043 MB / 2.302 GB, free: 92.25 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/4.154, allocations: 1.43 MB / 2.304 GB, free: 90.78 MB / 1.151 GB Notification: Performance of SimCode: time 5.41e-07/4.154, allocations: 0 / 2.304 GB, free: 90.78 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)