Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_maint_8_0_x_Buildings_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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.389/1.389, allocations: 285.5 MB / 292.8 MB, free: 10.46 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009459/0.0009459, allocations: 176.6 kB / 361.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.129/1.129, allocations: 205.1 MB / 0.6195 GB, free: 10.3 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008804/0.0008804, allocations: 93.64 kB / 0.7326 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2139/0.2148, allocations: 121.4 MB / 0.8511 GB, free: 2.898 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5016/0.7164, allocations: 115.3 MB / 0.9638 GB, free: 78.3 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.838/4.555, allocations: 2.134 GB / 3.098 GB, free: 301.5 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/4.555, allocations: 94.52 kB / 3.098 GB, free: 301.4 MB / 0.9323 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.009/10.56, allocations: 2.041 GB / 5.139 GB, free: 71.62 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/10.56, allocations: 11.5 kB / 5.139 GB, free: 71.61 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007053/10.57, allocations: 0.9813 MB / 5.14 GB, free: 70.64 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008956/10.58, allocations: 2.896 MB / 5.143 GB, free: 67.75 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002514/10.58, allocations: 172.8 kB / 5.143 GB, free: 67.57 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001142/10.58, allocations: 172 kB / 5.143 GB, free: 67.4 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006233/10.59, allocations: 2.502 MB / 5.145 GB, free: 64.89 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006398/10.59, allocations: 2.812 MB / 5.148 GB, free: 62.01 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.657e-05/10.59, allocations: 3.938 kB / 5.148 GB, free: 62 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000504/10.6, allocations: 4 kB / 5.148 GB, free: 62 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-05/10.6, allocations: 101.3 kB / 5.148 GB, free: 61.9 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/10.61, allocations: 13.14 MB / 5.161 GB, free: 47.87 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002483/10.62, allocations: 1.671 MB / 5.163 GB, free: 46.22 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/10.62, allocations: 1.044 MB / 5.164 GB, free: 45.18 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005092/10.62, allocations: 327.2 kB / 5.164 GB, free: 44.81 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.045e-05/10.62, allocations: 64.5 kB / 5.164 GB, free: 44.74 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=182): time 5.4e-06/10.62, allocations: 4 kB / 5.164 GB, free: 44.73 MB / 0.9948 GB Notification: Performance of matching and sorting (n=182): time 0.005253/10.62, allocations: 1.94 MB / 5.166 GB, free: 42.79 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/10.62, allocations: 69.41 kB / 5.166 GB, free: 42.71 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003256/10.63, allocations: 1.431 MB / 5.168 GB, free: 41.25 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.000319/10.63, allocations: 29.7 kB / 5.168 GB, free: 41.22 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007046/10.63, allocations: 0.9922 MB / 5.169 GB, free: 40.2 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000936/10.63, allocations: 0.6158 MB / 5.169 GB, free: 39.58 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/10.63, allocations: 0 / 5.169 GB, free: 39.58 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.00016/10.63, allocations: 390.6 kB / 5.169 GB, free: 39.19 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/10.63, allocations: 0.7459 MB / 5.17 GB, free: 38.44 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/10.63, allocations: 1.408 MB / 5.172 GB, free: 36.74 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/10.63, allocations: 1.019 MB / 5.173 GB, free: 35.73 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/10.63, allocations: 4 kB / 5.173 GB, free: 35.72 MB / 0.9948 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003651/10.64, allocations: 2.28 MB / 5.175 GB, free: 33.43 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009/10.64, allocations: 5.463 MB / 5.18 GB, free: 27.41 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/10.64, allocations: 12 kB / 5.18 GB, free: 27.4 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.033e-05/10.64, allocations: 24 kB / 5.18 GB, free: 27.38 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002358/10.64, allocations: 0.5206 MB / 5.181 GB, free: 26.86 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/10.64, allocations: 4.192 MB / 5.185 GB, free: 22.51 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003307/10.64, allocations: 314 kB / 5.185 GB, free: 22.2 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002009/10.64, allocations: 95.98 kB / 5.185 GB, free: 22.11 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 8.325e-06/10.64, allocations: 6.656 kB / 5.185 GB, free: 22.1 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002685/10.65, allocations: 1.96 MB / 5.187 GB, free: 20.14 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/10.65, allocations: 12 kB / 5.187 GB, free: 20.13 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/10.65, allocations: 28.84 kB / 5.187 GB, free: 20.1 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/10.65, allocations: 478.6 kB / 5.188 GB, free: 19.64 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.645e-05/10.65, allocations: 31.92 kB / 5.188 GB, free: 19.61 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003325/10.65, allocations: 294.2 kB / 5.188 GB, free: 19.32 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002166/10.65, allocations: 87.91 kB / 5.188 GB, free: 19.23 MB / 0.9948 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.0004724/10.65, allocations: 168.3 kB / 5.188 GB, free: 19.06 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006887/10.65, allocations: 253 kB / 5.188 GB, free: 18.81 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003159/10.66, allocations: 1.95 MB / 5.19 GB, free: 16.85 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/10.66, allocations: 16 kB / 5.19 GB, free: 16.84 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/10.66, allocations: 4 kB / 5.19 GB, free: 16.83 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002052/10.66, allocations: 1.77 MB / 5.192 GB, free: 15.01 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008504/10.67, allocations: 4.707 MB / 5.197 GB, free: 10.26 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/10.67, allocations: 0 / 5.197 GB, free: 10.26 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00239/10.67, allocations: 0.5166 MB / 5.197 GB, free: 9.75 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.659e-05/10.67, allocations: 8 kB / 5.197 GB, free: 9.742 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/10.67, allocations: 27.98 kB / 5.197 GB, free: 9.715 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/10.67, allocations: 4.149 MB / 5.201 GB, free: 5.402 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/10.67, allocations: 8.219 kB / 5.201 GB, free: 5.395 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004484/10.68, allocations: 3.45 MB / 5.205 GB, free: 1.805 MB / 0.9948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00728/10.68, allocations: 5.276 MB / 5.21 GB, free: 12.38 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/10.69, allocations: 0.5484 MB / 5.21 GB, free: 11.81 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008375/10.69, allocations: 12 kB / 5.21 GB, free: 11.8 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002887/10.69, allocations: 227.3 kB / 5.211 GB, free: 11.58 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/10.69, allocations: 101.8 kB / 5.211 GB, free: 11.48 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002145/10.69, allocations: 75.95 kB / 5.211 GB, free: 11.41 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.002426/10.69, allocations: 1.064 MB / 5.212 GB, free: 10.33 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.01007/10.7, allocations: 3.145 MB / 5.215 GB, free: 7.18 MB / 1.01 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.007038/10.71, allocations: 5.226 MB / 5.22 GB, free: 1.758 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.006606/10.72, allocations: 3.173 MB / 5.223 GB, free: 14.59 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/10.72, allocations: 3.75 kB / 5.223 GB, free: 14.59 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.001804/10.72, allocations: 0.994 MB / 5.224 GB, free: 13.6 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007287/10.73, allocations: 1.387 MB / 5.225 GB, free: 12.25 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/10.74, allocations: 5.488 MB / 5.231 GB, free: 6.746 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002547/10.74, allocations: 2.514 MB / 5.233 GB, free: 4.203 MB / 1.026 GB Notification: Performance of SimCode: time 8.42e-07/10.74, allocations: 0 / 5.233 GB, free: 4.203 MB / 1.026 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)