Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.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: translateModel(Buildings.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe") translateModel(Buildings.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe") [: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.205/1.205, allocations: 249.4 MB / 256.7 MB, free: 7.008 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.001051/0.001051, allocations: 181.2 kB / 316 MB, free: 3.562 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.051/1.051, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0008487/0.0008486, allocations: 86.5 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.28e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1343, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.922/1.056, allocations: 424.1 MB / 1.299 GB, free: 322.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/1.057, allocations: 86.92 kB / 1.299 GB, free: 322.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.919/2.975, allocations: 0.7471 GB / 2.046 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0006868/2.976, allocations: 187.5 kB / 2.046 GB, free: 133.6 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01227/2.988, allocations: 5.538 MB / 2.052 GB, free: 131.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/2.988, allocations: 7.188 kB / 2.052 GB, free: 131.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003019/2.991, allocations: 0.8431 MB / 2.052 GB, free: 131.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04466/3.036, allocations: 22.9 MB / 2.075 GB, free: 129.8 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/3.036, allocations: 246 kB / 2.075 GB, free: 129.8 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000622/3.037, allocations: 307.3 kB / 2.075 GB, free: 129.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007186/3.044, allocations: 5.172 MB / 2.08 GB, free: 129.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00788/3.052, allocations: 6.296 MB / 2.086 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/3.052, allocations: 25.28 kB / 2.086 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004289/3.052, allocations: 7.625 kB / 2.086 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/3.053, allocations: 175.4 kB / 2.087 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03198/3.085, allocations: 28.93 MB / 2.115 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003862/3.088, allocations: 3.245 MB / 2.118 GB, free: 114.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/3.09, allocations: 1.687 MB / 2.12 GB, free: 113.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000744/3.091, allocations: 0.971 MB / 2.121 GB, free: 112.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/3.091, allocations: 70.47 kB / 2.121 GB, free: 112.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=253): time 3.897e-06/3.091, allocations: 0 / 2.121 GB, free: 112.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=253): time 0.005132/3.096, allocations: 3.161 MB / 2.124 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/3.096, allocations: 86.47 kB / 2.124 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009025/3.105, allocations: 4.765 MB / 2.129 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.000898/3.106, allocations: 29.67 kB / 2.129 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.00203/3.108, allocations: 2.054 MB / 2.131 GB, free: 108.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.002157/3.11, allocations: 0.8706 MB / 2.131 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/3.11, allocations: 0 / 2.131 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002168/3.111, allocations: 450.9 kB / 2.132 GB, free: 107.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/3.113, allocations: 1.451 MB / 2.133 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002394/3.115, allocations: 2.588 MB / 2.136 GB, free: 104.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003241/3.119, allocations: 2.195 MB / 2.138 GB, free: 104.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.971e-05/3.119, allocations: 11 kB / 2.138 GB, free: 104.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.00739/3.126, allocations: 4.478 MB / 2.142 GB, free: 102.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.002476/3.129, allocations: 16.5 MB / 2.158 GB, free: 85.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.515e-05/3.129, allocations: 35.88 kB / 2.158 GB, free: 85.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001085/3.129, allocations: 59.09 kB / 2.159 GB, free: 85.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003389/3.132, allocations: 0.8818 MB / 2.159 GB, free: 85.01 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005636/3.133, allocations: 1.26 MB / 2.161 GB, free: 83.81 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/3.138, allocations: 435.8 kB / 2.161 GB, free: 83.61 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/3.138, allocations: 167 kB / 2.161 GB, free: 83.59 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.987e-06/3.138, allocations: 6.125 kB / 2.161 GB, free: 83.59 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006019/3.144, allocations: 3.975 MB / 2.165 GB, free: 82.34 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.125e-05/3.144, allocations: 35.25 kB / 2.165 GB, free: 82.34 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.74e-05/3.144, allocations: 63.72 kB / 2.165 GB, free: 82.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00301/3.147, allocations: 0.8591 MB / 2.166 GB, free: 82.26 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-05/3.147, allocations: 81.12 kB / 2.166 GB, free: 82.24 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004546/3.152, allocations: 364.7 kB / 2.166 GB, free: 82.09 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003016/3.152, allocations: 166.9 kB / 2.167 GB, free: 82.07 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 434 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008499/3.153, allocations: 220.1 kB / 2.167 GB, free: 81.86 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/3.154, allocations: 491.7 kB / 2.167 GB, free: 81.62 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006529/3.161, allocations: 3.666 MB / 2.171 GB, free: 80.46 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.699e-05/3.161, allocations: 32.84 kB / 2.171 GB, free: 80.46 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/3.161, allocations: 1.312 kB / 2.171 GB, free: 80.46 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004397/3.165, allocations: 2.805 MB / 2.174 GB, free: 79.57 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/3.183, allocations: 8.714 MB / 2.182 GB, free: 74.17 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/3.183, allocations: 0 / 2.182 GB, free: 74.17 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002302/3.185, allocations: 0.5328 MB / 2.183 GB, free: 73.72 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.787e-05/3.185, allocations: 8 kB / 2.183 GB, free: 73.71 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/3.186, allocations: 50.52 kB / 2.183 GB, free: 73.68 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003439/3.186, allocations: 1.19 MB / 2.184 GB, free: 72.45 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/3.186, allocations: 0 / 2.184 GB, free: 72.45 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007152/3.193, allocations: 5.61 MB / 2.189 GB, free: 67.49 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00333/3.196, allocations: 1.228 MB / 2.191 GB, free: 66.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001507/3.198, allocations: 16.73 kB / 2.191 GB, free: 66.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003951/3.202, allocations: 207.7 kB / 2.191 GB, free: 66.26 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002947/3.202, allocations: 145.6 kB / 2.191 GB, free: 66.17 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004015/3.203, allocations: 126.2 kB / 2.191 GB, free: 66.08 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.006541/3.209, allocations: 3.691 MB / 2.195 GB, free: 62.92 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01184/3.221, allocations: 3.188 MB / 2.198 GB, free: 59.73 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 22 (pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip.vol[4].dynBal.U,pip.vol[5].dynBal.U,pip.vol[6].dynBal.U,pip.vol[7].dynBal.U,pip.vol[8].dynBal.U,pip.vol[9].dynBal.U,pip.vol[10].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,pip1.vol[4].dynBal.U,pip1.vol[5].dynBal.U,pip1.vol[6].dynBal.U,pip1.vol[7].dynBal.U,pip1.vol[8].dynBal.U,pip1.vol[9].dynBal.U,pip1.vol[10].dynBal.U,senTem.T,senTem1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 251 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001902/3.223, allocations: 0.6585 MB / 2.198 GB, free: 59.23 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.009238/3.232, allocations: 5.717 MB / 2.204 GB, free: 54.13 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/3.232, allocations: 3.781 kB / 2.204 GB, free: 54.12 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.002282/3.235, allocations: 1.551 MB / 2.206 GB, free: 52.76 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01536/3.25, allocations: 3.014 MB / 2.208 GB, free: 50.66 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02511/3.275, allocations: 11.56 MB / 2.22 GB, free: 40.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006731/3.282, allocations: 5.127 MB / 2.225 GB, free: 35.55 MB / 0.8698 GB Notification: Performance of SimCode: time 2.204e-06/3.282, allocations: 0 / 2.225 GB, free: 35.55 MB / 0.8698 GB Notification: Performance of Templates: time 0.4568/3.739, allocations: 124.6 MB / 2.346 GB, free: 221.3 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Examples_Pipe.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches