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: "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.Pipe,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_Pipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.Pipe,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7484/0.7484, allocations: 141.8 MB / 149.1 MB, free: 4.512 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.00113/0.00113, allocations: 177.1 kB / 181.9 MB, free: 192 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 221.3 MB / 436 MB, free: 9.32 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.001059/0.001059, allocations: 99.45 kB / 0.507 GB, free: 24.26 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 273.8 kB / 0.5884 GB, free: 12.34 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.232/0.2341, allocations: 89.64 MB / 0.676 GB, free: 2.613 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4993/0.7333, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7011/1.434, allocations: 402.1 MB / 1.149 GB, free: 13.4 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/1.435, allocations: 96.11 kB / 1.15 GB, free: 13.36 MB / 0.6825 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 1.694/3.129, allocations: 0.5212 GB / 1.671 GB, free: 46.61 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/3.129, allocations: 11.94 kB / 1.671 GB, free: 46.6 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008355/3.13, allocations: 174 kB / 1.671 GB, free: 46.43 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06819/3.198, allocations: 27.69 MB / 1.698 GB, free: 18.57 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/3.198, allocations: 67.7 kB / 1.698 GB, free: 18.5 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003988/3.199, allocations: 56 kB / 1.698 GB, free: 18.44 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001774/3.2, allocations: 0.7575 MB / 1.699 GB, free: 17.68 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/3.202, allocations: 0.9871 MB / 1.7 GB, free: 16.66 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/3.202, allocations: 0 / 1.7 GB, free: 16.66 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/3.203, allocations: 4 kB / 1.7 GB, free: 16.66 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.662e-05/3.203, allocations: 41.98 kB / 1.7 GB, free: 16.62 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006477/3.209, allocations: 4.654 MB / 1.704 GB, free: 11.7 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007527/3.21, allocations: 0.4933 MB / 1.705 GB, free: 11.19 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/3.21, allocations: 277.8 kB / 1.705 GB, free: 10.92 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007185/3.211, allocations: 0.923 MB / 1.706 GB, free: 9.797 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/3.211, allocations: 50.97 kB / 1.706 GB, free: 9.738 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=56): time 3.347e-06/3.211, allocations: 0 / 1.706 GB, free: 9.738 MB / 0.6982 GB Notification: Performance of matching and sorting (n=56): time 0.001643/3.213, allocations: 0.6512 MB / 1.707 GB, free: 9.078 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/3.213, allocations: 55.91 kB / 1.707 GB, free: 9.012 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/3.214, allocations: 0.8782 MB / 1.708 GB, free: 8.121 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 8.54e-05/3.214, allocations: 25.7 kB / 1.708 GB, free: 8.09 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/3.214, allocations: 419.6 kB / 1.708 GB, free: 7.672 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/3.214, allocations: 193.2 kB / 1.708 GB, free: 7.48 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/3.215, allocations: 4 kB / 1.708 GB, free: 7.477 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.594e-05/3.215, allocations: 334 kB / 1.709 GB, free: 7.145 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/3.215, allocations: 213.2 kB / 1.709 GB, free: 6.938 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003399/3.215, allocations: 390.2 kB / 1.709 GB, free: 6.488 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008348/3.216, allocations: 381.1 kB / 1.709 GB, free: 6.117 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/3.216, allocations: 0 / 1.709 GB, free: 6.117 MB / 0.6982 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001482/3.218, allocations: 0.792 MB / 1.71 GB, free: 5.316 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003123/3.218, allocations: 1.582 MB / 1.712 GB, free: 3.625 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/3.218, allocations: 4 kB / 1.712 GB, free: 3.621 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/3.218, allocations: 4 kB / 1.712 GB, free: 3.617 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000874/3.219, allocations: 187.8 kB / 1.712 GB, free: 3.434 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005063/3.219, allocations: 1.188 MB / 1.713 GB, free: 2.199 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/3.22, allocations: 91.41 kB / 1.713 GB, free: 2.109 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.224e-05/3.22, allocations: 35.98 kB / 1.713 GB, free: 2.074 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/3.22, allocations: 4 kB / 1.713 GB, free: 2.07 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001259/3.222, allocations: 0.6428 MB / 1.714 GB, free: 1.426 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/3.222, allocations: 11.89 kB / 1.714 GB, free: 1.414 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/3.222, allocations: 8 kB / 1.714 GB, free: 1.406 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006056/3.222, allocations: 172.3 kB / 1.714 GB, free: 1.238 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/3.222, allocations: 4 kB / 1.714 GB, free: 1.234 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/3.223, allocations: 83.47 kB / 1.714 GB, free: 1.152 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.612e-05/3.224, allocations: 28 kB / 1.714 GB, free: 1.125 MB / 0.6982 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.0002421/3.224, allocations: 131 kB / 1.714 GB, free: 0.9922 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003163/3.224, allocations: 118.5 kB / 1.714 GB, free: 0.875 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3398/3.564, allocations: 0.8887 MB / 1.715 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.593e-05/3.564, allocations: 3.938 kB / 1.715 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/3.564, allocations: 2.719 kB / 1.715 GB, free: 150.3 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001532/3.566, allocations: 0.7006 MB / 1.716 GB, free: 150.2 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/3.569, allocations: 1.816 MB / 1.718 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/3.569, allocations: 0 / 1.718 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000669/3.57, allocations: 140.6 kB / 1.718 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.699e-06/3.57, allocations: 8.312 kB / 1.718 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/3.57, allocations: 15.36 kB / 1.718 GB, free: 149.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003862/3.57, allocations: 1.181 MB / 1.719 GB, free: 148.7 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/3.57, allocations: 3.688 kB / 1.719 GB, free: 148.7 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00174/3.572, allocations: 1.24 MB / 1.72 GB, free: 148.5 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002197/3.574, allocations: 2.037 MB / 1.722 GB, free: 147.9 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005416/3.575, allocations: 291 kB / 1.723 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/3.575, allocations: 3.688 kB / 1.723 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007494/3.576, allocations: 66.84 kB / 1.723 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.763e-05/3.576, allocations: 35.88 kB / 1.723 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/3.576, allocations: 32.59 kB / 1.723 GB, free: 147.8 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0008489/3.577, allocations: 0.6797 MB / 1.723 GB, free: 147.6 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003238/3.58, allocations: 0.864 MB / 1.724 GB, free: 147.6 MB / 0.6982 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.001088/3.581, allocations: 0.6058 MB / 1.725 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001691/3.583, allocations: 0.9699 MB / 1.726 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/3.583, allocations: 8.859 kB / 1.726 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005158/3.583, allocations: 330.4 kB / 1.726 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/3.586, allocations: 0.5812 MB / 1.727 GB, free: 147.5 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003562/3.59, allocations: 2.007 MB / 1.729 GB, free: 147 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000979/3.591, allocations: 1.485 MB / 1.73 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of SimCode: time 7.61e-07/3.591, allocations: 0 / 1.73 GB, free: 146.3 MB / 0.6982 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_Pipe_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_Pipe.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1)