Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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.7453/0.7453, allocations: 141.8 MB / 149.1 MB, free: 11.85 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001088, allocations: 183.2 kB / 182 MB, free: 8.66 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.422/1.422, allocations: 221.4 MB / 436 MB, free: 0.9102 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.001043/0.001043, allocations: 99.94 kB / 0.507 GB, free: 9.895 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001931/0.001931, allocations: 281.9 kB / 0.5885 GB, free: 6.707 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.002e-05/1.041e-05, allocations: 4 kB / 0.6759 GB, free: 13.09 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5039/0.504, allocations: 82.78 MB / 0.7567 GB, free: 137.9 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.309/4.813, allocations: 1.939 GB / 2.696 GB, free: 88.64 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004052/4.814, allocations: 88.7 kB / 2.696 GB, free: 88.55 MB / 0.6982 GB Notification: Performance of FrontEnd: time 7.882/12.7, allocations: 2.064 GB / 4.76 GB, free: 62.12 MB / 0.7763 GB Notification: Performance of Transformations before backend: time 0.0003353/12.7, allocations: 91.7 kB / 4.76 GB, free: 62.12 MB / 0.7763 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.01263/12.71, allocations: 3.473 MB / 4.763 GB, free: 60.86 MB / 0.7763 GB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/12.71, allocations: 13.92 kB / 4.763 GB, free: 60.86 MB / 0.7763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008352/12.72, allocations: 0.9754 MB / 4.764 GB, free: 60.66 MB / 0.7763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/12.73, allocations: 2.901 MB / 4.767 GB, free: 60.16 MB / 0.7763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003274/12.73, allocations: 177 kB / 4.767 GB, free: 60.09 MB / 0.7763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001398/12.73, allocations: 181.7 kB / 4.767 GB, free: 60.08 MB / 0.7763 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006995/12.74, allocations: 2.492 MB / 4.77 GB, free: 60.07 MB / 0.7763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01098/12.75, allocations: 2.802 MB / 4.773 GB, free: 59.82 MB / 0.7763 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001816/12.75, allocations: 11.06 kB / 4.773 GB, free: 59.82 MB / 0.7763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001078/12.75, allocations: 3 kB / 4.773 GB, free: 59.82 MB / 0.7763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/12.75, allocations: 111.2 kB / 4.773 GB, free: 59.81 MB / 0.7763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02465/12.77, allocations: 13.12 MB / 4.786 GB, free: 52.5 MB / 0.7763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003218/12.78, allocations: 1.68 MB / 4.787 GB, free: 52.46 MB / 0.7763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/12.78, allocations: 1.044 MB / 4.788 GB, free: 52.43 MB / 0.7763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00063/12.78, allocations: 327.4 kB / 4.788 GB, free: 52.15 MB / 0.7763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.525e-05/12.78, allocations: 59.12 kB / 4.789 GB, free: 52.11 MB / 0.7763 GB Notification: Performance of pre-optimization done (n=182): time 6.152e-06/12.78, allocations: 1.844 kB / 4.789 GB, free: 52.11 MB / 0.7763 GB Notification: Performance of matching and sorting (n=182): time 0.006267/12.79, allocations: 1.948 MB / 4.79 GB, free: 51.91 MB / 0.7763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/12.79, allocations: 72.53 kB / 4.791 GB, free: 51.84 MB / 0.7763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004838/12.79, allocations: 1.422 MB / 4.792 GB, free: 51.63 MB / 0.7763 GB Notification: Performance of collectPreVariables (initialization): time 0.0006592/12.79, allocations: 35.58 kB / 4.792 GB, free: 51.6 MB / 0.7763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001248/12.79, allocations: 0.9987 MB / 4.793 GB, free: 51.03 MB / 0.7763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001486/12.79, allocations: 0.617 MB / 4.794 GB, free: 50.62 MB / 0.7763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/12.79, allocations: 3.562 kB / 4.794 GB, free: 50.62 MB / 0.7763 GB Notification: Performance of setup shared object (initialization): time 0.0002308/12.8, allocations: 391.9 kB / 4.794 GB, free: 50.31 MB / 0.7763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/12.8, allocations: 0.7417 MB / 4.795 GB, free: 50.3 MB / 0.7763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/12.8, allocations: 1.401 MB / 4.796 GB, free: 49.54 MB / 0.7763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/12.8, allocations: 1.022 MB / 4.797 GB, free: 49.52 MB / 0.7763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/12.8, allocations: 7.562 kB / 4.797 GB, free: 49.51 MB / 0.7763 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004216/12.8, allocations: 2.268 MB / 4.799 GB, free: 49.32 MB / 0.7763 GB Notification: Performance of prepare postOptimizeDAE: time 0.001137/12.81, allocations: 5.47 MB / 4.805 GB, free: 43.47 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/12.81, allocations: 16.28 kB / 4.805 GB, free: 43.47 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.942e-05/12.81, allocations: 26.59 kB / 4.805 GB, free: 43.47 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002725/12.81, allocations: 0.5101 MB / 4.805 GB, free: 43.47 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/12.81, allocations: 4.199 MB / 4.809 GB, free: 39.38 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004414/12.81, allocations: 314 kB / 4.809 GB, free: 39.28 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005353/12.82, allocations: 91.48 kB / 4.81 GB, free: 39.28 MB / 0.7763 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/12.82, allocations: 6.875 kB / 4.81 GB, free: 39.28 MB / 0.7763 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004677/12.82, allocations: 1.962 MB / 4.812 GB, free: 39.24 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-05/12.82, allocations: 14.38 kB / 4.812 GB, free: 39.24 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.782e-05/12.82, allocations: 25.41 kB / 4.812 GB, free: 39.24 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0021/12.82, allocations: 476.3 kB / 4.812 GB, free: 39.24 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.653e-05/12.82, allocations: 33.31 kB / 4.812 GB, free: 39.24 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004357/12.83, allocations: 290.1 kB / 4.812 GB, free: 39.16 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004289/12.83, allocations: 92.83 kB / 4.812 GB, free: 39.16 MB / 0.7763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009565/12.83, allocations: 163.3 kB / 4.813 GB, free: 39.05 MB / 0.7763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/12.83, allocations: 255.4 kB / 4.813 GB, free: 38.92 MB / 0.7763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004256/12.83, allocations: 1.959 MB / 4.815 GB, free: 38.81 MB / 0.7763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/12.83, allocations: 19.44 kB / 4.815 GB, free: 38.81 MB / 0.7763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/12.83, allocations: 0 / 4.815 GB, free: 38.81 MB / 0.7763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002459/12.84, allocations: 1.77 MB / 4.816 GB, free: 38.5 MB / 0.7763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009151/12.85, allocations: 4.708 MB / 4.821 GB, free: 38 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/12.85, allocations: 6.172 kB / 4.821 GB, free: 38 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/12.85, allocations: 0.5021 MB / 4.822 GB, free: 38 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.015e-05/12.85, allocations: 10.47 kB / 4.822 GB, free: 38 MB / 0.7763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/12.85, allocations: 32.75 kB / 4.822 GB, free: 38 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001317/12.85, allocations: 4.154 MB / 4.826 GB, free: 33.91 MB / 0.7763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/12.85, allocations: 4.656 kB / 4.826 GB, free: 33.91 MB / 0.7763 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004618/12.85, allocations: 3.449 MB / 4.829 GB, free: 33.16 MB / 0.7763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001991/12.86, allocations: 0.5504 MB / 4.83 GB, free: 32.92 MB / 0.7763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000584/12.86, allocations: 21.56 kB / 4.83 GB, free: 32.92 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/12.86, allocations: 218.5 kB / 4.83 GB, free: 32.9 MB / 0.7763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/12.86, allocations: 100.7 kB / 4.83 GB, free: 32.9 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/12.86, allocations: 69.94 kB / 4.83 GB, free: 32.9 MB / 0.7763 GB Notification: Performance of sort global known variables: time 0.001644/12.86, allocations: 1.061 MB / 4.831 GB, free: 32.75 MB / 0.7763 GB Notification: Performance of remove unused functions: time 0.005712/12.87, allocations: 1.945 MB / 4.833 GB, free: 32.48 MB / 0.7763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007465/12.87, allocations: 5.219 MB / 4.838 GB, free: 30.22 MB / 0.7763 GB Notification: Performance of simCode: created initialization part: time 0.007217/12.88, allocations: 3.183 MB / 4.841 GB, free: 30.16 MB / 0.7763 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/12.88, allocations: 3.781 kB / 4.841 GB, free: 30.16 MB / 0.7763 GB Notification: Performance of simCode: created simulation system equations: time 0.001947/12.88, allocations: 0.9899 MB / 4.842 GB, free: 30.16 MB / 0.7763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009001/12.89, allocations: 1.405 MB / 4.843 GB, free: 30.12 MB / 0.7763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/12.91, allocations: 5.451 MB / 4.849 GB, free: 28.97 MB / 0.7763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002594/12.91, allocations: 2.472 MB / 4.851 GB, free: 28.21 MB / 0.7763 GB Notification: Performance of SimCode: time 9.02e-07/12.91, allocations: 0 / 4.851 GB, free: 28.21 MB / 0.7763 GB Notification: Performance of Templates: time 0.1364/13.04, allocations: 81.35 MB / 4.931 GB, free: 20.78 MB / 0.7763 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)