Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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/Complex 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 184.5 kB / 7.804 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4373/0.4373, allocations: 90.85 MB / 99.07 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 221.4 MB / 342.8 MB, free: 5.434 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009685/0.0009685, allocations: 95.48 kB / 415.5 MB, free: 6.461 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 6.442e-06/6.472e-06, allocations: 0 / 493.9 MB, free: 8.098 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3564, allocations: 72.3 MB / 0.5529 GB, free: 73.28 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.434/3.791, allocations: 1.932 GB / 2.485 GB, free: 141.8 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/3.791, allocations: 85.14 kB / 2.485 GB, free: 141.7 MB / 0.6042 GB Notification: Performance of FrontEnd: time 5.924/9.714, allocations: 2.073 GB / 4.558 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.000283/9.715, allocations: 102.4 kB / 4.558 GB, free: 11.32 MB / 0.6823 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.009877/9.725, allocations: 3.477 MB / 4.562 GB, free: 7.785 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/9.725, allocations: 8.031 kB / 4.562 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007179/9.732, allocations: 0.9749 MB / 4.563 GB, free: 6.797 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008242/9.74, allocations: 2.953 MB / 4.565 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/9.74, allocations: 180.8 kB / 4.566 GB, free: 3.582 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005917/9.741, allocations: 175.9 kB / 4.566 GB, free: 3.41 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004893/9.746, allocations: 2.51 MB / 4.568 GB, free: 0.8945 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3136/10.06, allocations: 2.808 MB / 4.571 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.758e-05/10.06, allocations: 6.25 kB / 4.571 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002783/10.06, allocations: 7.344 kB / 4.571 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.995e-05/10.06, allocations: 103.1 kB / 4.571 GB, free: 90.84 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/10.08, allocations: 13.56 MB / 4.584 GB, free: 83.46 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/10.08, allocations: 1.03 MB / 4.585 GB, free: 83.44 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/10.08, allocations: 1.039 MB / 4.586 GB, free: 83.43 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004899/10.08, allocations: 334.9 kB / 4.587 GB, free: 83.14 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/10.08, allocations: 60.16 kB / 4.587 GB, free: 83.1 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=182): time 4.067e-06/10.08, allocations: 0 / 4.587 GB, free: 83.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=182): time 0.004225/10.08, allocations: 1.958 MB / 4.589 GB, free: 82.9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/10.08, allocations: 76.69 kB / 4.589 GB, free: 82.84 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/10.09, allocations: 1.436 MB / 4.59 GB, free: 82.63 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002169/10.09, allocations: 28.58 kB / 4.59 GB, free: 82.6 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005803/10.09, allocations: 1.009 MB / 4.591 GB, free: 82.18 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007446/10.09, allocations: 0.617 MB / 4.592 GB, free: 81.86 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.687e-05/10.09, allocations: 0 / 4.592 GB, free: 81.86 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001025/10.09, allocations: 386.9 kB / 4.592 GB, free: 81.55 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009698/10.09, allocations: 0.7442 MB / 4.593 GB, free: 81.54 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/10.09, allocations: 1.383 MB / 4.594 GB, free: 80.82 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/10.09, allocations: 1.009 MB / 4.595 GB, free: 80.8 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/10.09, allocations: 8.219 kB / 4.595 GB, free: 80.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003348/10.09, allocations: 2.287 MB / 4.597 GB, free: 80.6 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009236/10.09, allocations: 5.472 MB / 4.603 GB, free: 74.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/10.09, allocations: 16.06 kB / 4.603 GB, free: 74.76 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.763e-05/10.1, allocations: 24.48 kB / 4.603 GB, free: 74.76 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/10.1, allocations: 0.5181 MB / 4.603 GB, free: 74.76 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/10.1, allocations: 4.207 MB / 4.607 GB, free: 70.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003505/10.1, allocations: 353.1 kB / 4.608 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/10.1, allocations: 93.66 kB / 4.608 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/10.1, allocations: 7 kB / 4.608 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002704/10.11, allocations: 1.975 MB / 4.61 GB, free: 70.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/10.11, allocations: 11.72 kB / 4.61 GB, free: 70.57 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/10.11, allocations: 24.97 kB / 4.61 GB, free: 70.57 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/10.11, allocations: 475.1 kB / 4.61 GB, free: 70.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/10.11, allocations: 29.62 kB / 4.61 GB, free: 70.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00321/10.11, allocations: 317.5 kB / 4.611 GB, free: 70.53 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/10.11, allocations: 93.23 kB / 4.611 GB, free: 70.53 MB / 0.6823 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.0004648/10.11, allocations: 167.5 kB / 4.611 GB, free: 70.42 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004898/10.11, allocations: 260.5 kB / 4.611 GB, free: 70.29 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003031/10.11, allocations: 1.949 MB / 4.613 GB, free: 70.18 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/10.11, allocations: 22 kB / 4.613 GB, free: 70.18 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/10.11, allocations: 1.859 kB / 4.613 GB, free: 70.18 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002061/10.12, allocations: 1.781 MB / 4.615 GB, free: 69.88 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007975/10.12, allocations: 4.725 MB / 4.619 GB, free: 69.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/10.12, allocations: 11.92 kB / 4.619 GB, free: 69.41 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002363/10.13, allocations: 497.3 kB / 4.62 GB, free: 69.41 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.892e-05/10.13, allocations: 10.47 kB / 4.62 GB, free: 69.41 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/10.13, allocations: 30.22 kB / 4.62 GB, free: 69.41 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/10.13, allocations: 4.15 MB / 4.624 GB, free: 65.32 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/10.13, allocations: 4.125 kB / 4.624 GB, free: 65.32 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004091/10.13, allocations: 3.304 MB / 4.627 GB, free: 64.57 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001581/10.13, allocations: 0.5548 MB / 4.628 GB, free: 64.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004616/10.13, allocations: 18.19 kB / 4.628 GB, free: 64.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002344/10.14, allocations: 221.5 kB / 4.628 GB, free: 64.34 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/10.14, allocations: 110.1 kB / 4.628 GB, free: 64.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/10.14, allocations: 68.48 kB / 4.628 GB, free: 64.34 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.00158/10.14, allocations: 1.076 MB / 4.629 GB, free: 64.19 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00489/10.14, allocations: 1.938 MB / 4.631 GB, free: 64.05 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,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.006546/10.15, allocations: 5.209 MB / 4.636 GB, free: 61.82 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.005935/10.16, allocations: 3.18 MB / 4.639 GB, free: 61.77 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/10.16, allocations: 4.312 kB / 4.639 GB, free: 61.77 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001591/10.16, allocations: 0.9971 MB / 4.64 GB, free: 61.77 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007319/10.17, allocations: 1.396 MB / 4.642 GB, free: 61.75 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009667/10.18, allocations: 5.511 MB / 4.647 GB, free: 60.6 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002574/10.18, allocations: 2.49 MB / 4.649 GB, free: 59.84 MB / 0.6823 GB Notification: Performance of SimCode: time 1.152e-06/10.18, allocations: 1 kB / 4.649 GB, free: 59.84 MB / 0.6823 GB Notification: Performance of Templates: time 0.1252/10.3, allocations: 81.47 MB / 4.729 GB, free: 55.71 MB / 0.6823 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)