Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.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: translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weaDat.weaBus.TDryBul|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weaDat.weaBus.TDryBul|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled") [: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.151/2.151, 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.001173/0.001173, allocations: 196.4 kB / 487 MB, free: 5.359 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.489/1.489, allocations: 221.3 MB / 0.7819 GB, free: 1.363 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.001117/0.001117, allocations: 90.36 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.324e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2702, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.397/4.667, allocations: 2.216 GB / 3.421 GB, free: 82.53 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/4.668, allocations: 95.39 kB / 3.421 GB, free: 82.44 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.794/8.462, allocations: 1.062 GB / 4.483 GB, free: 193.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002717/8.462, allocations: 75.94 kB / 4.483 GB, free: 193.3 MB / 1.167 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 0.00754/8.469, allocations: 2.857 MB / 4.486 GB, free: 192.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/8.469, allocations: 8.219 kB / 4.486 GB, free: 192.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007353/8.477, allocations: 1.088 MB / 4.487 GB, free: 192 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005941/8.483, allocations: 2.119 MB / 4.489 GB, free: 191.6 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/8.483, allocations: 151.9 kB / 4.489 GB, free: 191.6 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003369/8.483, allocations: 117.1 kB / 4.489 GB, free: 191.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003794/8.487, allocations: 2.203 MB / 4.492 GB, free: 191.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003274/8.49, allocations: 1.922 MB / 4.493 GB, free: 191.3 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.071e-05/8.491, allocations: 3.688 kB / 4.493 GB, free: 191.3 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/8.491, allocations: 3.938 kB / 4.493 GB, free: 191.3 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-05/8.491, allocations: 72.12 kB / 4.494 GB, free: 191.3 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01463/8.505, allocations: 8.991 MB / 4.502 GB, free: 188.1 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002149/8.508, allocations: 1.525 MB / 4.504 GB, free: 188 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/8.509, allocations: 0.8291 MB / 4.505 GB, free: 188 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007673/8.51, allocations: 0.9638 MB / 4.506 GB, free: 187 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00141/8.511, allocations: 0.9981 MB / 4.507 GB, free: 186.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=159): time 3.907e-06/8.511, allocations: 0 / 4.507 GB, free: 186.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=159): time 0.004543/8.516, allocations: 1.767 MB / 4.508 GB, free: 186.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.404e-05/8.516, allocations: 306.6 kB / 4.509 GB, free: 186.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/8.518, allocations: 1.436 MB / 4.51 GB, free: 186.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002138/8.518, allocations: 29.14 kB / 4.51 GB, free: 186.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006021/8.519, allocations: 0.6728 MB / 4.511 GB, free: 185.8 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005326/8.519, allocations: 0.5 MB / 4.511 GB, free: 185.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.847e-05/8.52, allocations: 7.156 kB / 4.511 GB, free: 185.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.729e-05/8.52, allocations: 358.1 kB / 4.511 GB, free: 185.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000927/8.521, allocations: 0.623 MB / 4.512 GB, free: 185.1 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/8.522, allocations: 0.955 MB / 4.513 GB, free: 184.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/8.523, allocations: 0.7487 MB / 4.514 GB, free: 184.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/8.523, allocations: 4.969 kB / 4.514 GB, free: 184.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003778/8.527, allocations: 1.833 MB / 4.516 GB, free: 184.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002431/8.527, allocations: 1.105 MB / 4.517 GB, free: 183.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/8.527, allocations: 6.562 kB / 4.517 GB, free: 183.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006521/8.528, allocations: 93.38 kB / 4.517 GB, free: 183.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002377/8.53, allocations: 472.8 kB / 4.517 GB, free: 183.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/8.532, allocations: 2.063 MB / 4.519 GB, free: 181.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00325/8.536, allocations: 296.5 kB / 4.519 GB, free: 181.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001915/8.536, allocations: 76.7 kB / 4.52 GB, free: 181.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/8.536, allocations: 5.969 kB / 4.52 GB, free: 181.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003385/8.539, allocations: 1.581 MB / 4.521 GB, free: 181.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/8.539, allocations: 3.969 kB / 4.521 GB, free: 181.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00059/8.54, allocations: 87.7 kB / 4.521 GB, free: 181.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/8.542, allocations: 454.8 kB / 4.522 GB, free: 181.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/8.544, allocations: 1.485 MB / 4.523 GB, free: 180.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003192/8.547, allocations: 292.8 kB / 4.523 GB, free: 180.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/8.547, allocations: 74.8 kB / 4.523 GB, free: 180.2 MB / 1.167 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.0005976/8.548, allocations: 137.4 kB / 4.524 GB, free: 180.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006736/8.549, allocations: 231.6 kB / 4.524 GB, free: 180 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/8.554, allocations: 2.158 MB / 4.526 GB, free: 179.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/8.554, allocations: 23.41 kB / 4.526 GB, free: 179.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/8.554, allocations: 0 / 4.526 GB, free: 179.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003269/8.557, allocations: 1.902 MB / 4.528 GB, free: 179.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/8.568, allocations: 4.787 MB / 4.532 GB, free: 178.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/8.568, allocations: 9.5 kB / 4.532 GB, free: 178.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002441/8.571, allocations: 456.9 kB / 4.533 GB, free: 178.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005832/8.571, allocations: 92.89 kB / 4.533 GB, free: 178.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002105/8.572, allocations: 44.08 kB / 4.533 GB, free: 178.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/8.574, allocations: 2.081 MB / 4.535 GB, free: 176.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.308e-05/8.574, allocations: 9.062 kB / 4.535 GB, free: 176.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006277/8.58, allocations: 3.401 MB / 4.538 GB, free: 176 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/8.582, allocations: 0.6793 MB / 4.539 GB, free: 175.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009191/8.583, allocations: 13.41 kB / 4.539 GB, free: 175.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003003/8.586, allocations: 242.7 kB / 4.539 GB, free: 175.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/8.586, allocations: 116.5 kB / 4.539 GB, free: 175.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000216/8.586, allocations: 80.81 kB / 4.539 GB, free: 175.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.002602/8.589, allocations: 1.094 MB / 4.541 GB, free: 175.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.006094/8.595, allocations: 1.43 MB / 4.542 GB, free: 175.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (chi.vol1.dynBal.medium.Xi[1],chi.vol1.dynBal.U,chi.vol1.dynBal.m,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.005303/8.601, allocations: 2.705 MB / 4.545 GB, free: 174.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006058/8.607, allocations: 2.793 MB / 4.547 GB, free: 174.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/8.607, allocations: 4.125 kB / 4.547 GB, free: 174.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002053/8.609, allocations: 1.047 MB / 4.548 GB, free: 174.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006035/8.615, allocations: 0.9243 MB / 4.549 GB, free: 174.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/8.628, allocations: 3.841 MB / 4.553 GB, free: 173.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004662/8.633, allocations: 1.981 MB / 4.555 GB, free: 172.4 MB / 1.167 GB Notification: Performance of SimCode: time 3.547e-06/8.633, allocations: 3.375 kB / 4.555 GB, free: 172.4 MB / 1.167 GB Notification: Performance of Templates: time 0.1286/8.762, allocations: 65.92 MB / 4.619 GB, free: 169.9 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches