Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.014/2.014, 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.001838/0.001838, allocations: 181.3 kB / 487 MB, free: 5.438 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.531/1.531, allocations: 221.3 MB / 0.7819 GB, free: 1.488 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.0011/0.0011, allocations: 89.62 kB / 0.9213 GB, free: 2.742 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/7.965e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2944, allocations: 142.3 MB / 1.205 GB, free: 26.3 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.036/1.33, allocations: 442.3 MB / 1.637 GB, free: 14.25 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/1.331, allocations: 94.09 kB / 1.637 GB, free: 14.21 MB / 1.073 GB Notification: Performance of FrontEnd: time 2.788/4.119, allocations: 0.7907 GB / 2.428 GB, free: 154.7 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.001707/4.12, allocations: 195.6 kB / 2.428 GB, free: 154.5 MB / 1.135 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.02237/4.143, allocations: 5.617 MB / 2.434 GB, free: 148.9 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/4.143, allocations: 13.03 kB / 2.434 GB, free: 148.9 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006364/4.149, allocations: 0.8461 MB / 2.434 GB, free: 148.1 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06776/4.217, allocations: 24.58 MB / 2.458 GB, free: 123.8 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003624/4.217, allocations: 239.8 kB / 2.459 GB, free: 123.5 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001863/4.219, allocations: 307.9 kB / 2.459 GB, free: 123.2 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01071/4.23, allocations: 5.162 MB / 2.464 GB, free: 118 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/4.243, allocations: 6.422 MB / 2.47 GB, free: 111.3 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001458/4.243, allocations: 27.78 kB / 2.47 GB, free: 111.3 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006878/4.244, allocations: 8 kB / 2.47 GB, free: 111.3 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001615/4.244, allocations: 232.9 kB / 2.471 GB, free: 111.1 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04092/4.285, allocations: 29.12 MB / 2.499 GB, free: 80.85 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00484/4.29, allocations: 3.24 MB / 2.502 GB, free: 77.62 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001837/4.291, allocations: 1.682 MB / 2.504 GB, free: 75.94 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008493/4.292, allocations: 0.9752 MB / 2.505 GB, free: 74.77 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/4.292, allocations: 73.06 kB / 2.505 GB, free: 74.7 MB / 1.135 GB Notification: Performance of pre-optimization done (n=253): time 5.551e-06/4.292, allocations: 0 / 2.505 GB, free: 74.7 MB / 1.135 GB Notification: Performance of matching and sorting (n=253): time 0.006541/4.299, allocations: 3.179 MB / 2.508 GB, free: 71.5 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/4.299, allocations: 81.34 kB / 2.508 GB, free: 71.4 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008093/4.307, allocations: 4.882 MB / 2.513 GB, free: 66.54 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.000875/4.308, allocations: 29.7 kB / 2.513 GB, free: 66.5 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.001841/4.31, allocations: 2.073 MB / 2.515 GB, free: 64.39 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.002154/4.312, allocations: 0.8623 MB / 2.516 GB, free: 63.52 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/4.312, allocations: 0 / 2.516 GB, free: 63.52 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0002108/4.312, allocations: 453.2 kB / 2.516 GB, free: 63.07 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/4.314, allocations: 1.459 MB / 2.517 GB, free: 61.61 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/4.316, allocations: 2.583 MB / 2.52 GB, free: 58.52 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003246/4.32, allocations: 2.197 MB / 2.522 GB, free: 56.3 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.331e-05/4.32, allocations: 8 kB / 2.522 GB, free: 56.29 MB / 1.135 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007886/4.328, allocations: 4.488 MB / 2.527 GB, free: 51.75 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.003291/4.331, allocations: 16.62 MB / 2.543 GB, free: 33.39 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-05/4.331, allocations: 36 kB / 2.543 GB, free: 33.36 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.021e-05/4.331, allocations: 60 kB / 2.543 GB, free: 33.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004143/4.335, allocations: 0.8814 MB / 2.544 GB, free: 32.42 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006075/4.336, allocations: 1.254 MB / 2.545 GB, free: 31.12 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006228/4.342, allocations: 443.6 kB / 2.545 GB, free: 30.68 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007089/4.343, allocations: 164 kB / 2.546 GB, free: 30.52 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/4.343, allocations: 4 kB / 2.546 GB, free: 30.52 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007581/4.35, allocations: 3.98 MB / 2.549 GB, free: 26.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.354e-05/4.351, allocations: 40.19 kB / 2.549 GB, free: 26.46 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.993e-05/4.351, allocations: 60 kB / 2.55 GB, free: 26.41 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003248/4.354, allocations: 0.8549 MB / 2.55 GB, free: 25.55 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.457e-05/4.354, allocations: 79.72 kB / 2.55 GB, free: 25.47 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005448/4.359, allocations: 372.7 kB / 2.551 GB, free: 25.11 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005885/4.36, allocations: 168.1 kB / 2.551 GB, free: 24.94 MB / 1.135 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.001141/4.361, allocations: 218.5 kB / 2.551 GB, free: 24.72 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002255/4.363, allocations: 0.4901 MB / 2.552 GB, free: 24.23 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007548/4.371, allocations: 3.681 MB / 2.555 GB, free: 20.5 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.71e-05/4.371, allocations: 28 kB / 2.555 GB, free: 20.47 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/4.371, allocations: 0 / 2.555 GB, free: 20.47 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003832/4.375, allocations: 2.814 MB / 2.558 GB, free: 17.6 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02077/4.396, allocations: 8.824 MB / 2.567 GB, free: 8.734 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/4.396, allocations: 4 kB / 2.567 GB, free: 8.73 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002634/4.398, allocations: 0.5234 MB / 2.567 GB, free: 8.207 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-05/4.398, allocations: 8 kB / 2.567 GB, free: 8.199 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002036/4.399, allocations: 51.95 kB / 2.567 GB, free: 8.148 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004205/4.399, allocations: 1.184 MB / 2.568 GB, free: 6.918 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/4.399, allocations: 4 kB / 2.568 GB, free: 6.914 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009445/4.409, allocations: 5.637 MB / 2.574 GB, free: 1.168 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005406/4.414, allocations: 1.273 MB / 2.575 GB, free: 15.87 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002153/4.416, allocations: 19.98 kB / 2.575 GB, free: 15.85 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005362/4.422, allocations: 215 kB / 2.575 GB, free: 15.64 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003963/4.422, allocations: 129.8 kB / 2.575 GB, free: 15.51 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007019/4.423, allocations: 147.9 kB / 2.576 GB, free: 15.36 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.009481/4.432, allocations: 3.782 MB / 2.579 GB, free: 11.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01601/4.448, allocations: 3.201 MB / 2.582 GB, free: 8.387 MB / 1.151 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.002432/4.451, allocations: 0.6598 MB / 2.583 GB, free: 7.766 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01178/4.463, allocations: 5.728 MB / 2.589 GB, free: 2.027 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.546e-05/4.463, allocations: 6.062 kB / 2.589 GB, free: 2.023 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00307/4.466, allocations: 1.546 MB / 2.59 GB, free: 488 kB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.5501/5.016, allocations: 3.027 MB / 2.593 GB, free: 323.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02463/5.041, allocations: 11.69 MB / 2.605 GB, free: 321.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005961/5.047, allocations: 5.186 MB / 2.61 GB, free: 320.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.272e-06/5.047, allocations: 2.156 kB / 2.61 GB, free: 320.4 MB / 1.151 GB Notification: Performance of Templates: time 0.1941/5.241, allocations: 126.4 MB / 2.733 GB, free: 314.8 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_Pipe.csv","../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches