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: "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7059/0.7059, allocations: 141.8 MB / 149.1 MB, free: 13.39 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: 187.2 kB / 182 MB, free: 10.05 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.257/1.257, allocations: 221.3 MB / 436 MB, free: 2.543 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.0009808/0.0009806, allocations: 104.9 kB / 0.507 GB, free: 17.81 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001851/0.001851, allocations: 272.6 kB / 0.5885 GB, free: 4.031 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3746/0.3765, allocations: 89.64 MB / 0.676 GB, free: 136.8 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.5242, allocations: 82.77 MB / 0.7568 GB, free: 83.54 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.442/3.967, allocations: 1.939 GB / 2.696 GB, free: 38.15 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/3.967, allocations: 91.94 kB / 2.696 GB, free: 38.06 MB / 0.6982 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 6.873/10.84, allocations: 2.067 GB / 4.763 GB, free: 55.2 MB / 0.7763 GB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/10.84, allocations: 10.47 kB / 4.763 GB, free: 55.2 MB / 0.7763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008134/10.85, allocations: 0.9777 MB / 4.764 GB, free: 55 MB / 0.7763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01141/10.86, allocations: 2.894 MB / 4.767 GB, free: 54.42 MB / 0.7763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003129/10.86, allocations: 171.2 kB / 4.767 GB, free: 54.35 MB / 0.7763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001288/10.86, allocations: 184.9 kB / 4.767 GB, free: 54.35 MB / 0.7763 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006718/10.87, allocations: 2.5 MB / 4.77 GB, free: 54.33 MB / 0.7763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008364/10.88, allocations: 2.801 MB / 4.773 GB, free: 54.09 MB / 0.7763 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/10.88, allocations: 6.469 kB / 4.773 GB, free: 54.09 MB / 0.7763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005513/10.88, allocations: 3.906 kB / 4.773 GB, free: 54.09 MB / 0.7763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-05/10.88, allocations: 107.9 kB / 4.773 GB, free: 54.08 MB / 0.7763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01793/10.9, allocations: 13.13 MB / 4.786 GB, free: 46.77 MB / 0.7763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/10.9, allocations: 1.673 MB / 4.787 GB, free: 46.73 MB / 0.7763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/10.9, allocations: 1.046 MB / 4.788 GB, free: 46.71 MB / 0.7763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000518/10.9, allocations: 331.8 kB / 4.789 GB, free: 46.42 MB / 0.7763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/10.9, allocations: 58 kB / 4.789 GB, free: 46.38 MB / 0.7763 GB Notification: Performance of pre-optimization done (n=182): time 6.412e-06/10.9, allocations: 1.625 kB / 4.789 GB, free: 46.38 MB / 0.7763 GB Notification: Performance of matching and sorting (n=182): time 0.004966/10.9, allocations: 1.947 MB / 4.79 GB, free: 46.18 MB / 0.7763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/10.91, allocations: 73.09 kB / 4.791 GB, free: 46.12 MB / 0.7763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00325/10.91, allocations: 1.423 MB / 4.792 GB, free: 45.91 MB / 0.7763 GB Notification: Performance of collectPreVariables (initialization): time 0.0003092/10.91, allocations: 32.27 kB / 4.792 GB, free: 45.88 MB / 0.7763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008113/10.91, allocations: 1 MB / 4.793 GB, free: 45.3 MB / 0.7763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009345/10.91, allocations: 0.6179 MB / 4.794 GB, free: 44.89 MB / 0.7763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/10.91, allocations: 0 / 4.794 GB, free: 44.89 MB / 0.7763 GB Notification: Performance of setup shared object (initialization): time 0.0001497/10.91, allocations: 385.1 kB / 4.794 GB, free: 44.59 MB / 0.7763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/10.91, allocations: 0.7441 MB / 4.795 GB, free: 44.58 MB / 0.7763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/10.91, allocations: 1.407 MB / 4.796 GB, free: 43.82 MB / 0.7763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/10.92, allocations: 1.015 MB / 4.797 GB, free: 43.79 MB / 0.7763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/10.92, allocations: 4.844 kB / 4.797 GB, free: 43.79 MB / 0.7763 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004194/10.92, allocations: 2.281 MB / 4.799 GB, free: 43.59 MB / 0.7763 GB Notification: Performance of prepare postOptimizeDAE: time 0.001256/10.92, allocations: 5.461 MB / 4.805 GB, free: 37.74 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.954e-05/10.92, allocations: 13.47 kB / 4.805 GB, free: 37.74 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.718e-05/10.92, allocations: 24.53 kB / 4.805 GB, free: 37.74 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002539/10.92, allocations: 0.5236 MB / 4.805 GB, free: 37.74 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/10.92, allocations: 4.199 MB / 4.809 GB, free: 33.65 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/10.93, allocations: 311.1 kB / 4.81 GB, free: 33.56 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/10.93, allocations: 88.52 kB / 4.81 GB, free: 33.56 MB / 0.7763 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/10.93, allocations: 8.438 kB / 4.81 GB, free: 33.55 MB / 0.7763 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002761/10.93, allocations: 1.966 MB / 4.812 GB, free: 33.51 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/10.93, allocations: 17 kB / 4.812 GB, free: 33.51 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.816e-05/10.93, allocations: 25.09 kB / 4.812 GB, free: 33.51 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/10.93, allocations: 475.4 kB / 4.812 GB, free: 33.51 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.802e-05/10.93, allocations: 30.38 kB / 4.812 GB, free: 33.51 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003372/10.94, allocations: 287.9 kB / 4.812 GB, free: 33.44 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/10.94, allocations: 94 kB / 4.812 GB, free: 33.44 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.0004935/10.94, allocations: 160.6 kB / 4.813 GB, free: 33.32 MB / 0.7763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00079/10.94, allocations: 254.5 kB / 4.813 GB, free: 33.2 MB / 0.7763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003315/10.94, allocations: 1.945 MB / 4.815 GB, free: 33.08 MB / 0.7763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/10.94, allocations: 21.22 kB / 4.815 GB, free: 33.08 MB / 0.7763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/10.94, allocations: 3.719 kB / 4.815 GB, free: 33.08 MB / 0.7763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002114/10.94, allocations: 1.781 MB / 4.816 GB, free: 32.77 MB / 0.7763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008501/10.95, allocations: 4.703 MB / 4.821 GB, free: 32.27 MB / 0.7763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/10.95, allocations: 5.719 kB / 4.821 GB, free: 32.27 MB / 0.7763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002499/10.95, allocations: 0.5104 MB / 4.822 GB, free: 32.27 MB / 0.7763 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.958e-05/10.95, allocations: 9.719 kB / 4.822 GB, free: 32.27 MB / 0.7763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/10.95, allocations: 31.84 kB / 4.822 GB, free: 32.27 MB / 0.7763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/10.96, allocations: 4.15 MB / 4.826 GB, free: 28.18 MB / 0.7763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/10.96, allocations: 4.969 kB / 4.826 GB, free: 28.18 MB / 0.7763 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004142/10.96, allocations: 3.448 MB / 4.829 GB, free: 27.44 MB / 0.7763 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006203/10.97, allocations: 5.281 MB / 4.834 GB, free: 26.31 MB / 0.7763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/10.97, allocations: 0.5593 MB / 4.835 GB, free: 26.07 MB / 0.7763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006645/10.97, allocations: 11.56 kB / 4.835 GB, free: 26.07 MB / 0.7763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002761/10.97, allocations: 221.6 kB / 4.835 GB, free: 26.04 MB / 0.7763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/10.97, allocations: 105.8 kB / 4.835 GB, free: 26.04 MB / 0.7763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001829/10.97, allocations: 73.39 kB / 4.835 GB, free: 26.04 MB / 0.7763 GB Notification: Performance of sort global known variables: time 0.001908/10.97, allocations: 1.06 MB / 4.836 GB, free: 25.89 MB / 0.7763 GB Notification: Performance of remove unused functions: time 0.008551/10.98, allocations: 3.148 MB / 4.839 GB, free: 25.63 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.005707/10.99, allocations: 5.225 MB / 4.844 GB, free: 23.36 MB / 0.7763 GB Notification: Performance of simCode: created initialization part: time 0.005516/10.99, allocations: 3.178 MB / 4.847 GB, free: 23.31 MB / 0.7763 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/10.99, allocations: 2.031 kB / 4.847 GB, free: 23.31 MB / 0.7763 GB Notification: Performance of simCode: created simulation system equations: time 0.001945/11, allocations: 0.9886 MB / 4.848 GB, free: 23.3 MB / 0.7763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00697/11, allocations: 1.4 MB / 4.85 GB, free: 23.27 MB / 0.7763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009134/11.01, allocations: 5.475 MB / 4.855 GB, free: 22.11 MB / 0.7763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00217/11.01, allocations: 2.525 MB / 4.858 GB, free: 21.34 MB / 0.7763 GB Notification: Performance of SimCode: time 7.21e-07/11.01, allocations: 0 / 4.858 GB, free: 21.34 MB / 0.7763 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)