Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.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.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7807/0.7807, allocations: 141.8 MB / 149.1 MB, free: 1.496 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 187.3 kB / 181.9 MB, free: 0.8789 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.545/1.545, allocations: 221.3 MB / 436 MB, free: 5.672 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.001244/0.001245, allocations: 108.6 kB / 0.507 GB, free: 2.336 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001812/0.001812, allocations: 275.3 kB / 0.5884 GB, free: 47.37 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 9.327e-06/9.488e-06, allocations: 0.8438 kB / 0.6759 GB, free: 59.7 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1805, allocations: 82.77 MB / 0.7567 GB, free: 0.8281 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.153/1.333, allocations: 402.1 MB / 1.149 GB, free: 272.6 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/1.334, allocations: 86.38 kB / 1.149 GB, free: 272.6 MB / 0.7138 GB Notification: Performance of FrontEnd: time 1.43/2.764, allocations: 0.5195 GB / 1.669 GB, free: 43.28 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0002307/2.764, allocations: 39.94 kB / 1.669 GB, free: 43.24 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.004721/2.769, allocations: 1.632 MB / 1.671 GB, free: 41.58 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/2.769, allocations: 13.03 kB / 1.671 GB, free: 41.57 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009338/2.77, allocations: 177.9 kB / 1.671 GB, free: 41.39 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06882/2.838, allocations: 27.69 MB / 1.698 GB, free: 13.73 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/2.839, allocations: 67.64 kB / 1.698 GB, free: 13.65 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003705/2.839, allocations: 52 kB / 1.698 GB, free: 13.6 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001753/2.841, allocations: 0.7575 MB / 1.699 GB, free: 12.84 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/2.843, allocations: 0.9792 MB / 1.7 GB, free: 11.83 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/2.843, allocations: 7.938 kB / 1.7 GB, free: 11.82 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/2.843, allocations: 0 / 1.7 GB, free: 11.82 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.629e-05/2.843, allocations: 45.98 kB / 1.7 GB, free: 11.78 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006662/2.85, allocations: 4.646 MB / 1.704 GB, free: 6.926 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008175/2.85, allocations: 0.4911 MB / 1.705 GB, free: 6.426 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003605/2.851, allocations: 281.9 kB / 1.705 GB, free: 6.152 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007546/2.852, allocations: 0.929 MB / 1.706 GB, free: 5.023 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/2.852, allocations: 39.06 kB / 1.706 GB, free: 4.977 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=56): time 2.725e-06/2.852, allocations: 3.938 kB / 1.706 GB, free: 4.973 MB / 0.7138 GB Notification: Performance of matching and sorting (n=56): time 0.001662/2.853, allocations: 0.6513 MB / 1.707 GB, free: 4.312 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/2.853, allocations: 55.91 kB / 1.707 GB, free: 4.246 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001511/2.855, allocations: 0.8743 MB / 1.707 GB, free: 3.359 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 9.754e-05/2.855, allocations: 29.7 kB / 1.707 GB, free: 3.324 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.000265/2.855, allocations: 423.6 kB / 1.708 GB, free: 2.902 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/2.855, allocations: 185.2 kB / 1.708 GB, free: 2.719 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.844e-05/2.856, allocations: 0 / 1.708 GB, free: 2.719 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 7.827e-05/2.856, allocations: 334 kB / 1.708 GB, free: 2.387 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/2.856, allocations: 221.2 kB / 1.709 GB, free: 2.168 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/2.856, allocations: 398 kB / 1.709 GB, free: 1.711 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008607/2.857, allocations: 374 kB / 1.709 GB, free: 1.348 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/2.857, allocations: 0 / 1.709 GB, free: 1.348 MB / 0.7138 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00161/2.859, allocations: 0.7915 MB / 1.71 GB, free: 0.5469 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.3303/3.189, allocations: 1.581 MB / 1.712 GB, free: 158.2 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/3.189, allocations: 3.5 kB / 1.712 GB, free: 158.2 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.535e-05/3.189, allocations: 10.75 kB / 1.712 GB, free: 158.2 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/3.19, allocations: 189.8 kB / 1.712 GB, free: 158.2 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000544/3.191, allocations: 1.194 MB / 1.713 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/3.192, allocations: 90.08 kB / 1.713 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.528e-05/3.192, allocations: 38.3 kB / 1.713 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/3.192, allocations: 3.75 kB / 1.713 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001379/3.194, allocations: 0.6388 MB / 1.714 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/3.194, allocations: 9.281 kB / 1.714 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/3.194, allocations: 7.062 kB / 1.714 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005782/3.194, allocations: 172.2 kB / 1.714 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/3.194, allocations: 17.22 kB / 1.714 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009814/3.195, allocations: 79.16 kB / 1.714 GB, free: 157.1 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.683e-05/3.195, allocations: 32.41 kB / 1.714 GB, free: 157.1 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 75 * 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.0001954/3.195, allocations: 119.8 kB / 1.714 GB, free: 157 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/3.196, allocations: 121.6 kB / 1.714 GB, free: 157 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/3.197, allocations: 0.8803 MB / 1.715 GB, free: 156.9 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/3.198, allocations: 9.031 kB / 1.715 GB, free: 156.9 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/3.198, allocations: 3.703 kB / 1.715 GB, free: 156.9 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001061/3.199, allocations: 0.701 MB / 1.716 GB, free: 156.7 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/3.202, allocations: 1.816 MB / 1.718 GB, free: 156.5 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/3.202, allocations: 2.125 kB / 1.718 GB, free: 156.5 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006495/3.202, allocations: 138.3 kB / 1.718 GB, free: 156.5 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.784e-06/3.202, allocations: 7.859 kB / 1.718 GB, free: 156.5 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.266e-05/3.202, allocations: 9.766 kB / 1.718 GB, free: 156.5 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003764/3.203, allocations: 1.186 MB / 1.719 GB, free: 155.3 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/3.203, allocations: 0 / 1.719 GB, free: 155.3 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001693/3.204, allocations: 1.252 MB / 1.72 GB, free: 155.1 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005558/3.205, allocations: 287.6 kB / 1.72 GB, free: 154.9 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/3.205, allocations: 3.75 kB / 1.72 GB, free: 154.9 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007351/3.206, allocations: 68.58 kB / 1.721 GB, free: 154.9 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/3.206, allocations: 36.8 kB / 1.721 GB, free: 154.9 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.139e-05/3.206, allocations: 33.83 kB / 1.721 GB, free: 154.9 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0008405/3.207, allocations: 0.6833 MB / 1.721 GB, free: 154.8 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.001886/3.209, allocations: 0.6971 MB / 1.722 GB, free: 154.7 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pip1.vol[1].dynBal.U,pip2.vol[1].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 (62): * Single equations (assignments): 54 * 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.001031/3.21, allocations: 0.6176 MB / 1.723 GB, free: 154.6 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.00161/3.211, allocations: 0.9638 MB / 1.723 GB, free: 154.6 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/3.211, allocations: 0 / 1.723 GB, free: 154.6 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0004609/3.212, allocations: 333.3 kB / 1.724 GB, free: 154.6 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/3.215, allocations: 0.5802 MB / 1.724 GB, free: 154.6 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/3.218, allocations: 1.992 MB / 1.726 GB, free: 154.2 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009598/3.219, allocations: 1.476 MB / 1.728 GB, free: 153.4 MB / 0.7138 GB Notification: Performance of SimCode: time 1.102e-06/3.219, allocations: 2.469 kB / 1.728 GB, free: 153.4 MB / 0.7138 GB Notification: Performance of Templates: time 0.04066/3.26, allocations: 27.71 MB / 1.755 GB, free: 153.1 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1)