Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.Pipe,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_Pipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.Pipe,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_Pipe",fmuType="me",version="2.0",platforms={"static"}) [: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 10.0.0-master/package.mo): time 2.166/2.166, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001158/0.001158, allocations: 181.2 kB / 490.8 MB, free: 1.938 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.569/1.569, allocations: 221.3 MB / 0.7863 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009674, allocations: 89.27 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7118/0.7128, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/1.034, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.355/2.389, allocations: 443.1 MB / 1.644 GB, free: 5.531 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/2.389, allocations: 86.28 kB / 1.644 GB, free: 5.488 MB / 1.057 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 3.497/5.886, allocations: 0.7964 GB / 2.441 GB, free: 192.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/5.886, allocations: 15.66 kB / 2.441 GB, free: 192.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007843/5.894, allocations: 0.8501 MB / 2.442 GB, free: 191.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06642/5.96, allocations: 24.58 MB / 2.466 GB, free: 167.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005986/5.961, allocations: 247.5 kB / 2.466 GB, free: 167.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003291/5.964, allocations: 307.9 kB / 2.466 GB, free: 166.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01484/5.979, allocations: 5.162 MB / 2.471 GB, free: 161.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02108/6, allocations: 6.426 MB / 2.478 GB, free: 155 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003962/6.001, allocations: 23.78 kB / 2.478 GB, free: 155 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002153/6.003, allocations: 15.98 kB / 2.478 GB, free: 155 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002147/6.003, allocations: 224.7 kB / 2.478 GB, free: 154.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05289/6.056, allocations: 29.11 MB / 2.506 GB, free: 124.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005836/6.062, allocations: 3.238 MB / 2.509 GB, free: 121.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002541/6.065, allocations: 1.689 MB / 2.511 GB, free: 119.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/6.066, allocations: 0.9723 MB / 2.512 GB, free: 118.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.052e-05/6.066, allocations: 73.06 kB / 2.512 GB, free: 118.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=253): time 6.713e-06/6.066, allocations: 0 / 2.512 GB, free: 118.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=253): time 0.008203/6.074, allocations: 3.175 MB / 2.515 GB, free: 115.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/6.074, allocations: 80.47 kB / 2.515 GB, free: 115.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01263/6.087, allocations: 4.879 MB / 2.52 GB, free: 110.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001386/6.088, allocations: 33.69 kB / 2.52 GB, free: 110.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.003077/6.091, allocations: 2.073 MB / 2.522 GB, free: 108.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002449/6.094, allocations: 0.8662 MB / 2.523 GB, free: 107.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/6.094, allocations: 0 / 2.523 GB, free: 107.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002423/6.094, allocations: 456.8 kB / 2.523 GB, free: 107 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001952/6.096, allocations: 1.451 MB / 2.525 GB, free: 105.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002191/6.098, allocations: 2.588 MB / 2.527 GB, free: 102.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003203/6.102, allocations: 2.197 MB / 2.529 GB, free: 100.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/6.102, allocations: 8 kB / 2.529 GB, free: 100.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008486/6.11, allocations: 4.488 MB / 2.534 GB, free: 95.71 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.003719/6.114, allocations: 16.63 MB / 2.55 GB, free: 77.35 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.467e-05/6.114, allocations: 32 kB / 2.55 GB, free: 77.32 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.898e-05/6.114, allocations: 60 kB / 2.55 GB, free: 77.26 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004108/6.118, allocations: 0.8815 MB / 2.551 GB, free: 76.38 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006654/6.119, allocations: 1.258 MB / 2.552 GB, free: 75.07 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008231/6.127, allocations: 440 kB / 2.553 GB, free: 74.64 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/6.128, allocations: 160 kB / 2.553 GB, free: 74.48 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/6.128, allocations: 4 kB / 2.553 GB, free: 74.48 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009932/6.138, allocations: 3.976 MB / 2.557 GB, free: 70.47 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/6.138, allocations: 39.59 kB / 2.557 GB, free: 70.43 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.572e-05/6.139, allocations: 60 kB / 2.557 GB, free: 70.38 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/6.142, allocations: 0.8619 MB / 2.558 GB, free: 69.51 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.661e-05/6.142, allocations: 79.72 kB / 2.558 GB, free: 69.43 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006225/6.148, allocations: 368.8 kB / 2.558 GB, free: 69.07 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007381/6.149, allocations: 168 kB / 2.558 GB, free: 68.91 MB / 1.151 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.001578/6.151, allocations: 211.7 kB / 2.558 GB, free: 68.69 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002512/6.153, allocations: 0.4901 MB / 2.559 GB, free: 68.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008294/6.162, allocations: 3.685 MB / 2.562 GB, free: 64.46 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-05/6.162, allocations: 27.98 kB / 2.562 GB, free: 64.43 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/6.162, allocations: 3.125 kB / 2.562 GB, free: 64.43 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004226/6.166, allocations: 2.818 MB / 2.565 GB, free: 61.56 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/6.19, allocations: 8.822 MB / 2.574 GB, free: 52.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/6.19, allocations: 4 kB / 2.574 GB, free: 52.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002834/6.192, allocations: 0.5345 MB / 2.574 GB, free: 52.16 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.065e-05/6.193, allocations: 8 kB / 2.574 GB, free: 52.15 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004851/6.193, allocations: 51.95 kB / 2.574 GB, free: 52.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005634/6.194, allocations: 1.18 MB / 2.576 GB, free: 50.88 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/6.194, allocations: 4 kB / 2.576 GB, free: 50.87 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01021/6.204, allocations: 5.633 MB / 2.581 GB, free: 45.13 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01138/6.215, allocations: 8.192 MB / 2.589 GB, free: 36.81 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004984/6.22, allocations: 1.275 MB / 2.59 GB, free: 35.51 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002865/6.223, allocations: 15.98 kB / 2.59 GB, free: 35.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006263/6.23, allocations: 211.1 kB / 2.591 GB, free: 35.29 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004364/6.23, allocations: 133.8 kB / 2.591 GB, free: 35.16 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008908/6.231, allocations: 143.9 kB / 2.591 GB, free: 35.02 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.009462/6.24, allocations: 3.782 MB / 2.595 GB, free: 31.25 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01904/6.259, allocations: 3.368 MB / 2.598 GB, free: 27.87 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.002902/6.262, allocations: 0.6628 MB / 2.598 GB, free: 27.29 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01125/6.274, allocations: 5.723 MB / 2.604 GB, free: 21.55 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/6.274, allocations: 8.5 kB / 2.604 GB, free: 21.54 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.002837/6.277, allocations: 1.546 MB / 2.606 GB, free: 20 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01835/6.295, allocations: 3.041 MB / 2.609 GB, free: 17.09 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03347/6.329, allocations: 11.71 MB / 2.62 GB, free: 5.418 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01155/6.34, allocations: 5.234 MB / 2.625 GB, free: 168 kB / 1.151 GB Notification: Performance of SimCode: time 2.845e-06/6.34, allocations: 0 / 2.625 GB, free: 168 kB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FixedResistances_Examples_Pipe_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_FixedResistances_Examples_Pipe.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1)