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: "" <> buildModelFMU(IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource",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/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 187.8 kB / 7.802 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4751/0.4751, allocations: 90.85 MB / 99.07 MB, free: 14.95 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.232/1.232, allocations: 221.4 MB / 342.8 MB, free: 5.496 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.001128/0.001128, allocations: 98 kB / 415.5 MB, free: 6.434 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.169/0.1702, allocations: 78.44 MB / 493.9 MB, free: 7.984 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.5305, allocations: 72.31 MB / 0.553 GB, free: 73.59 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.644/4.174, allocations: 1.932 GB / 2.485 GB, free: 126 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/4.175, allocations: 89.62 kB / 2.485 GB, free: 125.9 MB / 0.6042 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 7.359/11.53, allocations: 2.076 GB / 4.562 GB, free: 47.2 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/11.53, allocations: 13.84 kB / 4.562 GB, free: 47.2 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006919/11.54, allocations: 0.9809 MB / 4.563 GB, free: 47 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008236/11.55, allocations: 2.95 MB / 4.565 GB, free: 46.57 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/11.55, allocations: 174.4 kB / 4.566 GB, free: 46.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006801/11.55, allocations: 175.4 kB / 4.566 GB, free: 46.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004797/11.55, allocations: 2.511 MB / 4.568 GB, free: 46.48 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004533/11.56, allocations: 2.815 MB / 4.571 GB, free: 46.24 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-05/11.56, allocations: 3.969 kB / 4.571 GB, free: 46.24 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/11.56, allocations: 3.688 kB / 4.571 GB, free: 46.24 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.443e-05/11.56, allocations: 105.4 kB / 4.571 GB, free: 46.23 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01698/11.58, allocations: 13.58 MB / 4.584 GB, free: 38.66 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/11.58, allocations: 1.027 MB / 4.585 GB, free: 38.64 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/11.58, allocations: 1.042 MB / 4.586 GB, free: 38.62 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004582/11.58, allocations: 332 kB / 4.587 GB, free: 38.33 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/11.58, allocations: 62.47 kB / 4.587 GB, free: 38.29 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=182): time 3.967e-06/11.58, allocations: 2.312 kB / 4.587 GB, free: 38.29 MB / 0.6823 GB Notification: Performance of matching and sorting (n=182): time 0.004245/11.58, allocations: 1.949 MB / 4.589 GB, free: 38.09 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/11.58, allocations: 75.84 kB / 4.589 GB, free: 38.02 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001974/11.59, allocations: 1.439 MB / 4.59 GB, free: 37.81 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002629/11.59, allocations: 31.3 kB / 4.59 GB, free: 37.78 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005812/11.59, allocations: 0.9957 MB / 4.591 GB, free: 37.22 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007916/11.59, allocations: 0.6217 MB / 4.592 GB, free: 36.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/11.59, allocations: 0 / 4.592 GB, free: 36.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001241/11.59, allocations: 388.4 kB / 4.592 GB, free: 36.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/11.59, allocations: 0.7457 MB / 4.593 GB, free: 36.49 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/11.59, allocations: 1.381 MB / 4.594 GB, free: 35.77 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/11.59, allocations: 1.012 MB / 4.595 GB, free: 35.75 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/11.59, allocations: 9.906 kB / 4.595 GB, free: 35.75 MB / 0.6823 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003575/11.6, allocations: 2.287 MB / 4.597 GB, free: 35.54 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008852/11.6, allocations: 5.472 MB / 4.603 GB, free: 29.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/11.6, allocations: 12.31 kB / 4.603 GB, free: 29.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.582e-05/11.6, allocations: 25.75 kB / 4.603 GB, free: 29.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00251/11.6, allocations: 0.5157 MB / 4.603 GB, free: 29.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/11.6, allocations: 4.201 MB / 4.607 GB, free: 25.61 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003583/11.6, allocations: 345.9 kB / 4.608 GB, free: 25.52 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/11.6, allocations: 93.17 kB / 4.608 GB, free: 25.52 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/11.6, allocations: 7.438 kB / 4.608 GB, free: 25.52 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002831/11.61, allocations: 1.968 MB / 4.61 GB, free: 25.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/11.61, allocations: 15.28 kB / 4.61 GB, free: 25.47 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/11.61, allocations: 25.38 kB / 4.61 GB, free: 25.47 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/11.61, allocations: 472.7 kB / 4.61 GB, free: 25.47 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/11.61, allocations: 33.14 kB / 4.61 GB, free: 25.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003623/11.61, allocations: 321 kB / 4.611 GB, free: 25.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002218/11.61, allocations: 86.44 kB / 4.611 GB, free: 25.4 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.0007763/11.61, allocations: 173.6 kB / 4.611 GB, free: 25.28 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007322/11.61, allocations: 255.4 kB / 4.611 GB, free: 25.15 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003865/11.62, allocations: 1.964 MB / 4.613 GB, free: 25.04 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/11.62, allocations: 17.69 kB / 4.613 GB, free: 25.04 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/11.62, allocations: 4.312 kB / 4.613 GB, free: 25.04 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002231/11.62, allocations: 1.773 MB / 4.615 GB, free: 24.74 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008013/11.63, allocations: 4.732 MB / 4.619 GB, free: 24.24 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/11.63, allocations: 4.5 kB / 4.619 GB, free: 24.24 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002538/11.63, allocations: 498 kB / 4.62 GB, free: 24.24 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-05/11.63, allocations: 11.28 kB / 4.62 GB, free: 24.24 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/11.63, allocations: 41.42 kB / 4.62 GB, free: 24.24 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/11.63, allocations: 4.146 MB / 4.624 GB, free: 36.14 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/11.63, allocations: 2.406 kB / 4.624 GB, free: 36.14 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004306/11.64, allocations: 3.299 MB / 4.627 GB, free: 35.4 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006458/11.64, allocations: 5.116 MB / 4.632 GB, free: 34.27 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/11.65, allocations: 0.5539 MB / 4.633 GB, free: 34.02 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004418/11.65, allocations: 25.84 kB / 4.633 GB, free: 34.02 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002337/11.65, allocations: 220.5 kB / 4.633 GB, free: 34 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/11.65, allocations: 104.2 kB / 4.633 GB, free: 34 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/11.65, allocations: 71.45 kB / 4.633 GB, free: 34 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.00158/11.65, allocations: 1.072 MB / 4.634 GB, free: 33.85 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.009246/11.66, allocations: 3.157 MB / 4.637 GB, free: 33.58 MB / 0.698 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.006226/11.67, allocations: 5.213 MB / 4.642 GB, free: 31.34 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.005997/11.67, allocations: 3.181 MB / 4.645 GB, free: 31.29 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/11.67, allocations: 4.156 kB / 4.645 GB, free: 31.29 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001677/11.67, allocations: 0.9908 MB / 4.646 GB, free: 31.29 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007688/11.68, allocations: 1.403 MB / 4.648 GB, free: 31.27 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/11.69, allocations: 5.536 MB / 4.653 GB, free: 30.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002851/11.69, allocations: 2.534 MB / 4.656 GB, free: 29.33 MB / 0.698 GB Notification: Performance of SimCode: time 1.403e-06/11.69, allocations: 0 / 4.656 GB, free: 29.33 MB / 0.698 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)