Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7.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.Fluid.Examples.Performance.Example7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7") translateModel(BuildingSystems.Fluid.Examples.Performance.Example7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7") [: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.7532/0.7532, allocations: 141.8 MB / 149.1 MB, free: 11.74 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 173.3 kB / 182 MB, free: 8.484 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 221.3 MB / 436 MB, free: 0.7305 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 100.3 kB / 0.507 GB, free: 9.66 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002054/0.002054, allocations: 287.9 kB / 0.5885 GB, free: 6.457 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 6.753e-06/6.783e-06, allocations: 0 / 0.6759 GB, free: 12.82 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4888/0.4888, allocations: 82.76 MB / 0.7567 GB, free: 137.7 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1392/0.628, allocations: 107.1 MB / 0.8613 GB, free: 30.44 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.6283, allocations: 68.52 kB / 0.8614 GB, free: 30.37 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.1199/0.7481, allocations: 35.2 MB / 0.8957 GB, free: 11.15 MB / 0.5732 GB Notification: Performance of Transformations before backend: time 8.102e-05/0.7483, allocations: 48 kB / 0.8958 GB, free: 11.1 MB / 0.5732 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 500 * Number of variables: 500 Notification: Performance of Generate backend data structure: time 0.01251/0.7608, allocations: 3.493 MB / 0.8992 GB, free: 7.559 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.7608, allocations: 13.03 kB / 0.8992 GB, free: 7.547 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001886/0.7627, allocations: 218.1 kB / 0.8994 GB, free: 7.332 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003311/0.7661, allocations: 0.9105 MB / 0.9003 GB, free: 6.379 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.7663, allocations: 60 kB / 0.9004 GB, free: 6.32 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002289/0.7686, allocations: 482 kB / 0.9008 GB, free: 5.848 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004914/0.7735, allocations: 1.897 MB / 0.9027 GB, free: 3.949 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009914/0.7834, allocations: 2.841 MB / 0.9055 GB, free: 1.098 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/0.7836, allocations: 0 / 0.9055 GB, free: 1.098 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009204/0.7845, allocations: 0 / 0.9055 GB, free: 1.098 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.477e-05/0.7846, allocations: 48 kB / 0.9055 GB, free: 1.051 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2949/1.079, allocations: 2.413 MB / 0.9079 GB, free: 174.6 MB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0128/1.092, allocations: 5.272 MB / 0.913 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005043/1.097, allocations: 2.113 MB / 0.9151 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005147/1.098, allocations: 52 kB / 0.9151 GB, free: 174.5 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.616e-05/1.098, allocations: 86.02 kB / 0.9152 GB, free: 174.4 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=500): time 8.065e-06/1.098, allocations: 0 / 0.9152 GB, free: 174.4 MB / 0.5732 GB Notification: Performance of matching and sorting (n=500): time 0.0117/1.11, allocations: 4.892 MB / 0.92 GB, free: 174.2 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.995e-05/1.11, allocations: 107.4 kB / 0.9201 GB, free: 174.2 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003361/1.11, allocations: 251.2 kB / 0.9203 GB, free: 174.1 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 0.0005304/1.111, allocations: 25.7 kB / 0.9203 GB, free: 174 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/1.111, allocations: 125 kB / 0.9205 GB, free: 173.9 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 0.00189/1.113, allocations: 2.136 MB / 0.9225 GB, free: 172.6 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003341/1.113, allocations: 0 / 0.9225 GB, free: 172.6 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 0.0004698/1.114, allocations: 0.6261 MB / 0.9232 GB, free: 172.3 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005417/1.119, allocations: 2.743 MB / 0.9258 GB, free: 172.3 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004957/1.124, allocations: 2.777 MB / 0.9285 GB, free: 172.3 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006051/1.13, allocations: 3.299 MB / 0.9318 GB, free: 171.7 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.261e-05/1.13, allocations: 0 / 0.9318 GB, free: 171.7 MB / 0.5732 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01223/1.142, allocations: 7.096 MB / 0.9387 GB, free: 170 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/1.143, allocations: 6.859 kB / 0.9387 GB, free: 170 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.024e-05/1.143, allocations: 0 / 0.9387 GB, free: 170 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.493e-05/1.143, allocations: 35.47 kB / 0.9387 GB, free: 170 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007208/1.15, allocations: 1.653 MB / 0.9404 GB, free: 170 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001368/1.15, allocations: 33.72 kB / 0.9404 GB, free: 170 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002878/1.153, allocations: 0.5176 MB / 0.9409 GB, free: 169.7 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005416/1.153, allocations: 222.9 kB / 0.9411 GB, free: 169.6 MB / 0.5732 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1000): * Single equations (assignments): 1000 * 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.001089/1.155, allocations: 200.5 kB / 0.9413 GB, free: 169.5 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005581/1.155, allocations: 157.5 kB / 0.9414 GB, free: 169.4 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008733/1.164, allocations: 5.636 MB / 0.947 GB, free: 167.7 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.01e-05/1.164, allocations: 47.22 kB / 0.947 GB, free: 167.7 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/1.164, allocations: 0 / 0.947 GB, free: 167.7 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.511e-05/1.164, allocations: 26.05 kB / 0.947 GB, free: 167.7 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00367/1.168, allocations: 2.37 MB / 0.9493 GB, free: 167.1 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.168, allocations: 0 / 0.9493 GB, free: 167.1 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008458/1.176, allocations: 1.08 MB / 0.9504 GB, free: 167 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.65e-05/1.176, allocations: 16.12 kB / 0.9504 GB, free: 167 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009704/1.177, allocations: 313.8 kB / 0.9507 GB, free: 167 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.125e-05/1.177, allocations: 23.62 kB / 0.9507 GB, free: 167 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.177, allocations: 3.906 kB / 0.9507 GB, free: 167 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00969/1.187, allocations: 7.208 MB / 0.9578 GB, free: 164 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/1.187, allocations: 290.1 kB / 0.958 GB, free: 163.7 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000804/1.188, allocations: 230.5 kB / 0.9583 GB, free: 163.5 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002424/1.191, allocations: 175.9 kB / 0.9584 GB, free: 163.5 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005386/1.191, allocations: 262.9 kB / 0.9587 GB, free: 163.3 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003831/1.191, allocations: 150.5 kB / 0.9588 GB, free: 163.2 MB / 0.5732 GB Notification: Performance of sort global known variables: time 4.104e-05/1.191, allocations: 79.28 kB / 0.9589 GB, free: 163.1 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.002174/1.194, allocations: 0.6562 MB / 0.9595 GB, free: 162.5 MB / 0.5732 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 500 (T[1],T[2],T[3],T[4],T[5],T[6],T[7],T[8],T[9],T[10],T[11],T[12],T[13],T[14],T[15],T[16],T[17],T[18],T[19],T[20],T[21],T[22],T[23],T[24],T[25],T[26],T[27],T[28],T[29],T[30],T[31],T[32],T[33],T[34],T[35],T[36],T[37],T[38],T[39],T[40],T[41],T[42],T[43],T[44],T[45],T[46],T[47],T[48],T[49],T[50],T[51],T[52],T[53],T[54],T[55],T[56],T[57],T[58],T[59],T[60],T[61],T[62],T[63],T[64],T[65],T[66],T[67],T[68],T[69],T[70],T[71],T[72],T[73],T[74],T[75],T[76],T[77],T[78],T[79],T[80],T[81],T[82],T[83],T[84],T[85],T[86],T[87],T[88],T[89],T[90],T[91],T[92],T[93],T[94],T[95],T[96],T[97],T[98],T[99],T[100],T[101],T[102],T[103],T[104],T[105],T[106],T[107],T[108],T[109],T[110],T[111],T[112],T[113],T[114],T[115],T[116],T[117],T[118],T[119],T[120],T[121],T[122],T[123],T[124],T[125],T[126],T[127],T[128],T[129],T[130],T[131],T[132],T[133],T[134],T[135],T[136],T[137],T[138],T[139],T[140],T[141],T[142],T[143],T[144],T[145],T[146],T[147],T[148],T[149],T[150],T[151],T[152],T[153],T[154],T[155],T[156],T[157],T[158],T[159],T[160],T[161],T[162],T[163],T[164],T[165],T[166],T[167],T[168],T[169],T[170],T[171],T[172],T[173],T[174],T[175],T[176],T[177],T[178],T[179],T[180],T[181],T[182],T[183],T[184],T[185],T[186],T[187],T[188],T[189],T[190],T[191],T[192],T[193],T[194],T[195],T[196],T[197],T[198],T[199],T[200],T[201],T[202],T[203],T[204],T[205],T[206],T[207],T[208],T[209],T[210],T[211],T[212],T[213],T[214],T[215],T[216],T[217],T[218],T[219],T[220],T[221],T[222],T[223],T[224],T[225],T[226],T[227],T[228],T[229],T[230],T[231],T[232],T[233],T[234],T[235],T[236],T[237],T[238],T[239],T[240],T[241],T[242],T[243],T[244],T[245],T[246],T[247],T[248],T[249],T[250],T[251],T[252],T[253],T[254],T[255],T[256],T[257],T[258],T[259],T[260],T[261],T[262],T[263],T[264],T[265],T[266],T[267],T[268],T[269],T[270],T[271],T[272],T[273],T[274],T[275],T[276],T[277],T[278],T[279],T[280],T[281],T[282],T[283],T[284],T[285],T[286],T[287],T[288],T[289],T[290],T[291],T[292],T[293],T[294],T[295],T[296],T[297],T[298],T[299],T[300],T[301],T[302],T[303],T[304],T[305],T[306],T[307],T[308],T[309],T[310],T[311],T[312],T[313],T[314],T[315],T[316],T[317],T[318],T[319],T[320],T[321],T[322],T[323],T[324],T[325],T[326],T[327],T[328],T[329],T[330],T[331],T[332],T[333],T[334],T[335],T[336],T[337],T[338],T[339],T[340],T[341],T[342],T[343],T[344],T[345],T[346],T[347],T[348],T[349],T[350],T[351],T[352],T[353],T[354],T[355],T[356],T[357],T[358],T[359],T[360],T[361],T[362],T[363],T[364],T[365],T[366],T[367],T[368],T[369],T[370],T[371],T[372],T[373],T[374],T[375],T[376],T[377],T[378],T[379],T[380],T[381],T[382],T[383],T[384],T[385],T[386],T[387],T[388],T[389],T[390],T[391],T[392],T[393],T[394],T[395],T[396],T[397],T[398],T[399],T[400],T[401],T[402],T[403],T[404],T[405],T[406],T[407],T[408],T[409],T[410],T[411],T[412],T[413],T[414],T[415],T[416],T[417],T[418],T[419],T[420],T[421],T[422],T[423],T[424],T[425],T[426],T[427],T[428],T[429],T[430],T[431],T[432],T[433],T[434],T[435],T[436],T[437],T[438],T[439],T[440],T[441],T[442],T[443],T[444],T[445],T[446],T[447],T[448],T[449],T[450],T[451],T[452],T[453],T[454],T[455],T[456],T[457],T[458],T[459],T[460],T[461],T[462],T[463],T[464],T[465],T[466],T[467],T[468],T[469],T[470],T[471],T[472],T[473],T[474],T[475],T[476],T[477],T[478],T[479],T[480],T[481],T[482],T[483],T[484],T[485],T[486],T[487],T[488],T[489],T[490],T[491],T[492],T[493],T[494],T[495],T[496],T[497],T[498],T[499],T[500]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (501): * Single equations (assignments): 501 * 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 Backend phase and start with SimCode phase: time 0.0007301/1.194, allocations: 405.1 kB / 0.9599 GB, free: 162.1 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.008129/1.203, allocations: 6.241 MB / 0.966 GB, free: 156.5 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/1.203, allocations: 4 kB / 0.966 GB, free: 156.5 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.003547/1.206, allocations: 2.68 MB / 0.9686 GB, free: 154.1 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/1.207, allocations: 0 / 0.9686 GB, free: 154.1 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/1.221, allocations: 12.55 MB / 0.9809 GB, free: 144 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00303/1.224, allocations: 2.056 MB / 0.9829 GB, free: 142.2 MB / 0.5732 GB Notification: Performance of SimCode: time 8.71e-07/1.224, allocations: 0 / 0.9829 GB, free: 142.2 MB / 0.5732 GB Notification: Performance of Templates: time 0.07516/1.299, allocations: 47.45 MB / 1.029 GB, free: 103.7 MB / 0.5732 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example7.pipe 2>&1)