Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Technologies.Chillers.Examples.CompressionChiller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller") translateModel(BuildingSystems.Technologies.Chillers.Examples.CompressionChiller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7386/0.7386, allocations: 141.8 MB / 149.1 MB, free: 12.82 MB / 139.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001378, allocations: 187.1 kB / 181.9 MB, free: 9.504 MB / 155.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.3 MB / 436 MB, free: 1.895 MB / 331.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001214, allocations: 107.8 kB / 0.507 GB, free: 10.67 MB / 395.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001911/0.00191, allocations: 282.2 kB / 0.5885 GB, free: 7.516 MB / 475.1 MB Notification: Performance of FrontEnd - loaded program: time 7.354e-06/7.394e-06, allocations: 0 / 0.6759 GB, free: 13.9 MB / 0.5577 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5486/0.5486, allocations: 82.78 MB / 0.7567 GB, free: 138.7 MB / 0.5577 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8058/1.355, allocations: 383.1 MB / 1.131 GB, free: 4.141 MB / 0.6671 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/1.355, allocations: 90.69 kB / 1.131 GB, free: 4.094 MB / 0.6671 GB Notification: Performance of FrontEnd: time 2.078/3.433, allocations: 0.5774 GB / 1.708 GB, free: 5.73 MB / 0.7296 GB Notification: Performance of Transformations before backend: time 0.0001524/3.433, allocations: 47.92 kB / 1.708 GB, free: 5.684 MB / 0.7296 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003607/3.437, allocations: 1.673 MB / 1.71 GB, free: 3.961 MB / 0.7296 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/3.437, allocations: 12.03 kB / 1.71 GB, free: 3.949 MB / 0.7296 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002482/3.439, allocations: 0.4975 MB / 1.711 GB, free: 3.449 MB / 0.7296 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003625/3.443, allocations: 1.622 MB / 1.712 GB, free: 1.777 MB / 0.7296 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.991e-05/3.443, allocations: 79.62 kB / 1.712 GB, free: 1.691 MB / 0.7296 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/3.443, allocations: 63.91 kB / 1.712 GB, free: 1.629 MB / 0.7296 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001385/3.444, allocations: 0.6991 MB / 1.713 GB, free: 0.9297 MB / 0.7296 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/3.446, allocations: 0.8778 MB / 1.714 GB, free: 16 kB / 0.7296 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/3.446, allocations: 0 / 1.714 GB, free: 16 kB / 0.7296 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.91e-05/3.446, allocations: 0 / 1.714 GB, free: 16 kB / 0.7296 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3173/3.763, allocations: 26.42 kB / 1.714 GB, free: 159.9 MB / 0.7296 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00886/3.772, allocations: 5.227 MB / 1.719 GB, free: 157.5 MB / 0.7296 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008885/3.773, allocations: 0.5443 MB / 1.719 GB, free: 157.4 MB / 0.7296 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003637/3.774, allocations: 289.1 kB / 1.72 GB, free: 157.4 MB / 0.7296 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009999/3.775, allocations: 1.599 MB / 1.721 GB, free: 155.7 MB / 0.7296 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/3.775, allocations: 41.72 kB / 1.721 GB, free: 155.6 MB / 0.7296 GB Notification: Performance of pre-optimization done (n=62): time 2.345e-06/3.775, allocations: 0 / 1.721 GB, free: 155.6 MB / 0.7296 GB Notification: Performance of matching and sorting (n=62): time 0.001918/3.777, allocations: 0.7476 MB / 1.722 GB, free: 155.5 MB / 0.7296 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.393e-05/3.777, allocations: 59.69 kB / 1.722 GB, free: 155.4 MB / 0.7296 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/3.778, allocations: 1.113 MB / 1.723 GB, free: 155.3 MB / 0.7296 GB Notification: Performance of collectPreVariables (initialization): time 7.149e-05/3.778, allocations: 28.7 kB / 1.723 GB, free: 155.3 MB / 0.7296 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/3.778, allocations: 460.6 kB / 1.724 GB, free: 155.1 MB / 0.7296 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/3.779, allocations: 213.6 kB / 1.724 GB, free: 155 MB / 0.7296 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.458e-05/3.779, allocations: 0 / 1.724 GB, free: 155 MB / 0.7296 GB Notification: Performance of setup shared object (initialization): time 7.274e-05/3.779, allocations: 336.4 kB / 1.724 GB, free: 154.6 MB / 0.7296 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/3.779, allocations: 234 kB / 1.724 GB, free: 154.6 MB / 0.7296 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004285/3.779, allocations: 419.2 kB / 1.725 GB, free: 154.5 MB / 0.7296 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/3.781, allocations: 452.3 kB / 1.725 GB, free: 154.5 MB / 0.7296 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/3.781, allocations: 3.906 kB / 1.725 GB, free: 154.5 MB / 0.7296 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001916/3.783, allocations: 0.9339 MB / 1.726 GB, free: 154.3 MB / 0.7296 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002523/3.783, allocations: 1.33 MB / 1.727 GB, free: 153 MB / 0.7296 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/3.783, allocations: 3.656 kB / 1.727 GB, free: 153 MB / 0.7296 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/3.783, allocations: 10.31 kB / 1.727 GB, free: 153 MB / 0.7296 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/3.784, allocations: 254.7 kB / 1.728 GB, free: 153 MB / 0.7296 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/3.784, allocations: 9.5 kB / 1.728 GB, free: 153 MB / 0.7296 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/3.786, allocations: 172.6 kB / 1.728 GB, free: 153 MB / 0.7296 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.343e-05/3.786, allocations: 45.98 kB / 1.728 GB, free: 153 MB / 0.7296 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/3.786, allocations: 3.875 kB / 1.728 GB, free: 153 MB / 0.7296 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001849/3.788, allocations: 0.7724 MB / 1.729 GB, free: 152.9 MB / 0.7296 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/3.788, allocations: 7.531 kB / 1.729 GB, free: 152.9 MB / 0.7296 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/3.788, allocations: 10.59 kB / 1.729 GB, free: 152.9 MB / 0.7296 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/3.789, allocations: 258 kB / 1.729 GB, free: 152.9 MB / 0.7296 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/3.789, allocations: 5.188 kB / 1.729 GB, free: 152.9 MB / 0.7296 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/3.79, allocations: 166 kB / 1.729 GB, free: 152.9 MB / 0.7296 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-05/3.79, allocations: 42.02 kB / 1.729 GB, free: 152.9 MB / 0.7296 GB Warning: Assuming fixed start value for the following 2 variables: chiller.volEva.dynBal.U:VARIABLE(start = chiller.volEva.dynBal.fluidVolume * chiller.volEva.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$chiller$volEva$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$chiller$volEva$dynBal.Medium.setState_pTX(chiller.volEva.dynBal.p_start, chiller.volEva.dynBal.T_start, {})) + (-273.15 + chiller.volEva.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real chiller.volCon.dynBal.U:VARIABLE(start = chiller.volCon.dynBal.fluidVolume * chiller.volCon.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$chiller$volCon$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$chiller$volCon$dynBal.Medium.setState_pTX(chiller.volCon.dynBal.p_start, chiller.volCon.dynBal.T_start, {})) + (-273.15 + chiller.volCon.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * 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.0004038/3.791, allocations: 175 kB / 1.729 GB, free: 152.8 MB / 0.7296 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/3.791, allocations: 135.3 kB / 1.729 GB, free: 152.7 MB / 0.7296 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0027/3.794, allocations: 1.184 MB / 1.731 GB, free: 152.7 MB / 0.7296 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/3.794, allocations: 15.7 kB / 1.731 GB, free: 152.7 MB / 0.7296 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/3.794, allocations: 8.688 kB / 1.731 GB, free: 152.7 MB / 0.7296 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001589/3.795, allocations: 0.8591 MB / 1.731 GB, free: 152.5 MB / 0.7296 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00445/3.8, allocations: 2.579 MB / 1.734 GB, free: 151.9 MB / 0.7296 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/3.8, allocations: 9.578 kB / 1.734 GB, free: 151.9 MB / 0.7296 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009585/3.801, allocations: 204 kB / 1.734 GB, free: 151.9 MB / 0.7296 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/3.801, allocations: 13.47 kB / 1.734 GB, free: 151.9 MB / 0.7296 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.986e-05/3.801, allocations: 18.61 kB / 1.734 GB, free: 151.9 MB / 0.7296 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.508e-06/3.801, allocations: 8.656 kB / 1.734 GB, free: 151.9 MB / 0.7296 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/3.801, allocations: 8.594 kB / 1.734 GB, free: 151.9 MB / 0.7296 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002654/3.803, allocations: 1.698 MB / 1.736 GB, free: 151.3 MB / 0.7296 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006686/3.804, allocations: 356.9 kB / 1.736 GB, free: 151.1 MB / 0.7296 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001851/3.804, allocations: 7.672 kB / 1.736 GB, free: 151.1 MB / 0.7296 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/3.805, allocations: 124.3 kB / 1.736 GB, free: 151.1 MB / 0.7296 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/3.805, allocations: 54.16 kB / 1.736 GB, free: 151.1 MB / 0.7296 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.172e-05/3.806, allocations: 43.44 kB / 1.736 GB, free: 151.1 MB / 0.7296 GB Notification: Performance of sort global known variables: time 0.001158/3.807, allocations: 0.8351 MB / 1.737 GB, free: 151 MB / 0.7296 GB Notification: Performance of remove unused functions: time 0.002569/3.809, allocations: 0.8108 MB / 1.738 GB, free: 151 MB / 0.7296 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (senTemConIn.T,senTemConOut.T,chiller.volCon.dynBal.U,chiller.volEva.dynBal.U,senTemEvaIn.T,senTemEvaOut.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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 Backend phase and start with SimCode phase: time 0.00174/3.811, allocations: 0.9558 MB / 1.739 GB, free: 150.8 MB / 0.7296 GB Notification: Performance of simCode: created initialization part: time 0.00176/3.813, allocations: 1.08 MB / 1.74 GB, free: 150.8 MB / 0.7296 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/3.813, allocations: 0 / 1.74 GB, free: 150.8 MB / 0.7296 GB Notification: Performance of simCode: created simulation system equations: time 0.0004889/3.813, allocations: 392.8 kB / 1.74 GB, free: 150.8 MB / 0.7296 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/3.816, allocations: 0.5293 MB / 1.741 GB, free: 150.8 MB / 0.7296 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004088/3.82, allocations: 2.259 MB / 1.743 GB, free: 150.2 MB / 0.7296 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/3.821, allocations: 1.416 MB / 1.745 GB, free: 149.5 MB / 0.7296 GB Notification: Performance of SimCode: time 1.352e-06/3.821, allocations: 2.156 kB / 1.745 GB, free: 149.5 MB / 0.7296 GB Notification: Performance of Templates: time 0.05235/3.873, allocations: 32.47 MB / 1.776 GB, free: 148.9 MB / 0.7296 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller.sim & ./BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Chillers.Examples.CompressionChiller.pipe 2>&1)