Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.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.Chillers.Examples.ElectricEIR_AirCooled,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled",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.245/1.245, allocations: 249.4 MB / 256.7 MB, free: 6.973 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.001069/0.001069, allocations: 185.1 kB / 316 MB, free: 3.543 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.138/1.138, allocations: 205.2 MB / 0.5667 GB, free: 15.59 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.0008185/0.0008186, allocations: 95.06 kB / 0.671 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3408/0.3416, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.5028, allocations: 106.3 MB / 0.8846 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.118/4.621, allocations: 2.492 GB / 3.377 GB, free: 254.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/4.621, allocations: 87.11 kB / 3.377 GB, free: 254.5 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: 481 * Number of variables: 481 Notification: Performance of Generate backend data structure: time 2.9/7.52, allocations: 1.022 GB / 4.399 GB, free: 105.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/7.521, allocations: 8.125 kB / 4.399 GB, free: 105.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00615/7.527, allocations: 1.095 MB / 4.4 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004022/7.531, allocations: 2.105 MB / 4.402 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/7.531, allocations: 152.3 kB / 4.402 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002537/7.531, allocations: 113.4 kB / 4.402 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003169/7.534, allocations: 2.194 MB / 4.404 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002977/7.537, allocations: 1.92 MB / 4.406 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.354e-05/7.537, allocations: 9.953 kB / 4.406 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/7.538, allocations: 3.906 kB / 4.406 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.017e-05/7.538, allocations: 78.12 kB / 4.406 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01286/7.55, allocations: 8.88 MB / 4.415 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/7.553, allocations: 1.551 MB / 4.416 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/7.554, allocations: 0.8104 MB / 4.417 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006164/7.554, allocations: 0.9673 MB / 4.418 GB, free: 100.2 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/7.556, allocations: 1.005 MB / 4.419 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=159): time 3.366e-06/7.556, allocations: 0 / 4.419 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=159): time 0.003835/7.56, allocations: 1.749 MB / 4.421 GB, free: 99.89 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/7.56, allocations: 308.8 kB / 4.421 GB, free: 99.55 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001767/7.561, allocations: 1.44 MB / 4.422 GB, free: 99.33 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001669/7.562, allocations: 33.23 kB / 4.423 GB, free: 99.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004621/7.562, allocations: 0.6784 MB / 4.423 GB, free: 98.93 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004026/7.563, allocations: 0.5089 MB / 4.424 GB, free: 98.59 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.181e-05/7.563, allocations: 0 / 4.424 GB, free: 98.59 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.82e-05/7.563, allocations: 364.8 kB / 4.424 GB, free: 98.29 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008492/7.564, allocations: 0.6187 MB / 4.425 GB, free: 98.28 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/7.565, allocations: 0.9684 MB / 4.426 GB, free: 97.94 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/7.566, allocations: 0.7348 MB / 4.426 GB, free: 97.93 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/7.566, allocations: 2.344 kB / 4.426 GB, free: 97.93 MB / 0.8855 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00328/7.569, allocations: 1.827 MB / 4.428 GB, free: 97.73 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001704/7.569, allocations: 1.111 MB / 4.429 GB, free: 96.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/7.569, allocations: 3.781 kB / 4.429 GB, free: 96.59 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005901/7.57, allocations: 92.38 kB / 4.429 GB, free: 96.59 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002213/7.572, allocations: 472.2 kB / 4.43 GB, free: 96.58 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/7.574, allocations: 2.062 MB / 4.432 GB, free: 94.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002767/7.577, allocations: 291.8 kB / 4.432 GB, free: 94.71 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/7.577, allocations: 84.36 kB / 4.432 GB, free: 94.71 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.814e-06/7.577, allocations: 3.688 kB / 4.432 GB, free: 94.71 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002976/7.58, allocations: 1.566 MB / 4.434 GB, free: 94.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/7.58, allocations: 5.594 kB / 4.434 GB, free: 94.66 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005335/7.58, allocations: 92.88 kB / 4.434 GB, free: 94.65 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001993/7.582, allocations: 453.5 kB / 4.434 GB, free: 94.65 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/7.584, allocations: 1.477 MB / 4.436 GB, free: 93.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002523/7.587, allocations: 294.3 kB / 4.436 GB, free: 93.37 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/7.587, allocations: 78.97 kB / 4.436 GB, free: 93.37 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003944/7.587, allocations: 136.6 kB / 4.436 GB, free: 93.26 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/7.587, allocations: 224 kB / 4.436 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004011/7.591, allocations: 2.15 MB / 4.438 GB, free: 92.98 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.669e-05/7.591, allocations: 16.59 kB / 4.438 GB, free: 92.98 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/7.591, allocations: 3.844 kB / 4.438 GB, free: 92.98 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002637/7.594, allocations: 1.904 MB / 4.44 GB, free: 92.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007892/7.602, allocations: 4.776 MB / 4.445 GB, free: 91.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/7.602, allocations: 7.562 kB / 4.445 GB, free: 91.73 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/7.604, allocations: 466 kB / 4.445 GB, free: 91.73 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005021/7.605, allocations: 88.14 kB / 4.445 GB, free: 91.72 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/7.605, allocations: 37.52 kB / 4.445 GB, free: 91.72 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/7.607, allocations: 2.095 MB / 4.448 GB, free: 89.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/7.607, allocations: 6.688 kB / 4.448 GB, free: 89.9 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00479/7.611, allocations: 3.412 MB / 4.451 GB, free: 89.07 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006427/7.618, allocations: 5.034 MB / 4.456 GB, free: 87.86 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/7.619, allocations: 0.6845 MB / 4.456 GB, free: 87.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/7.62, allocations: 13.66 kB / 4.456 GB, free: 87.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/7.622, allocations: 240.4 kB / 4.457 GB, free: 87.52 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/7.622, allocations: 120.9 kB / 4.457 GB, free: 87.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/7.622, allocations: 82.05 kB / 4.457 GB, free: 87.52 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001443/7.624, allocations: 1.098 MB / 4.458 GB, free: 87.37 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.006371/7.63, allocations: 2.044 MB / 4.46 GB, free: 87.13 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (chi.vol1.dynBal.U,chi.vol1.dynBal.m,chi.vol1.dynBal.mXi[1],chi.vol2.dynBal.U) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,weaDat.conTimMin.tNext,weaDat.conTim.tNext,chi.on) * Number of discrete states: 3 (pulse.count,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003367/7.633, allocations: 2.672 MB / 4.463 GB, free: 86.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004309/7.638, allocations: 2.777 MB / 4.465 GB, free: 86.09 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/7.638, allocations: 4.281 kB / 4.465 GB, free: 86.09 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001573/7.639, allocations: 1.037 MB / 4.466 GB, free: 85.99 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004141/7.644, allocations: 0.9299 MB / 4.467 GB, free: 85.93 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007497/7.651, allocations: 3.839 MB / 4.471 GB, free: 85.02 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001728/7.653, allocations: 1.991 MB / 4.473 GB, free: 84.27 MB / 0.8855 GB Notification: Performance of SimCode: time 6.81e-07/7.653, allocations: 0 / 4.473 GB, free: 84.27 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled_fmu --startTime=1.70208e+07 --stopTime=1.7064e+07 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe 2>&1)