Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_8_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.589/1.589, allocations: 289.8 MB / 297.1 MB, free: 6.656 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.001559/0.001559, allocations: 181.3 kB / 366.3 MB, free: 1.992 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.659/1.659, allocations: 205.2 MB / 0.6256 GB, free: 5.84 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.00107/0.00107, allocations: 91.8 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.299/0.3001, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7477/1.048, allocations: 116.3 MB / 0.9726 GB, free: 68.25 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.472/5.52, allocations: 2.135 GB / 3.108 GB, free: 325.2 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/5.52, allocations: 88.42 kB / 3.108 GB, free: 325.1 MB / 0.948 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.906/12.43, allocations: 2.041 GB / 5.149 GB, free: 96.51 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/12.43, allocations: 9.719 kB / 5.149 GB, free: 96.51 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00787/12.43, allocations: 0.9832 MB / 5.15 GB, free: 96.3 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009058/12.44, allocations: 2.892 MB / 5.153 GB, free: 95.54 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002433/12.44, allocations: 181.4 kB / 5.153 GB, free: 95.46 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008794/12.44, allocations: 176.2 kB / 5.153 GB, free: 95.46 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005118/12.45, allocations: 2.496 MB / 5.155 GB, free: 94.57 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005115/12.45, allocations: 2.808 MB / 5.158 GB, free: 93.52 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.599e-05/12.45, allocations: 7.844 kB / 5.158 GB, free: 93.52 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002574/12.46, allocations: 2.656 kB / 5.158 GB, free: 93.52 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.964e-05/12.46, allocations: 101.5 kB / 5.158 GB, free: 93.51 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/12.47, allocations: 13.14 MB / 5.171 GB, free: 82.55 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002562/12.48, allocations: 1.668 MB / 5.173 GB, free: 81.81 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/12.48, allocations: 1.042 MB / 5.174 GB, free: 80.79 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004881/12.48, allocations: 332.9 kB / 5.174 GB, free: 80.42 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/12.48, allocations: 63.59 kB / 5.174 GB, free: 80.35 MB / 1.01 GB Notification: Performance of pre-optimization done (n=182): time 4.018e-06/12.48, allocations: 0 / 5.174 GB, free: 80.35 MB / 1.01 GB Notification: Performance of matching and sorting (n=182): time 0.004461/12.48, allocations: 1.943 MB / 5.176 GB, free: 78.4 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/12.48, allocations: 69.41 kB / 5.176 GB, free: 78.32 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002123/12.48, allocations: 1.429 MB / 5.177 GB, free: 76.87 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.0002623/12.49, allocations: 33.7 kB / 5.177 GB, free: 76.83 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005519/12.49, allocations: 0.9969 MB / 5.178 GB, free: 75.81 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.000766/12.49, allocations: 0.6197 MB / 5.179 GB, free: 75.18 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.653e-05/12.49, allocations: 0 / 5.179 GB, free: 75.18 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001158/12.49, allocations: 392.2 kB / 5.179 GB, free: 74.79 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/12.49, allocations: 0.7459 MB / 5.18 GB, free: 74.04 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/12.49, allocations: 1.405 MB / 5.181 GB, free: 72.36 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/12.49, allocations: 1.018 MB / 5.182 GB, free: 71.37 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/12.49, allocations: 4 kB / 5.182 GB, free: 71.36 MB / 1.01 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003587/12.49, allocations: 2.276 MB / 5.185 GB, free: 69.09 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.000971/12.49, allocations: 5.461 MB / 5.19 GB, free: 63.11 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/12.49, allocations: 12 kB / 5.19 GB, free: 63.1 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.142e-05/12.49, allocations: 24 kB / 5.19 GB, free: 63.07 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002542/12.5, allocations: 0.5235 MB / 5.191 GB, free: 62.56 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/12.5, allocations: 4.195 MB / 5.195 GB, free: 58.21 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004306/12.5, allocations: 312.9 kB / 5.195 GB, free: 57.93 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004953/12.5, allocations: 91.98 kB / 5.195 GB, free: 57.84 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/12.5, allocations: 0 / 5.195 GB, free: 57.84 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004325/12.51, allocations: 1.969 MB / 5.197 GB, free: 55.88 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.262e-05/12.51, allocations: 15.06 kB / 5.197 GB, free: 55.86 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.337e-05/12.51, allocations: 24 kB / 5.197 GB, free: 55.84 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002019/12.51, allocations: 475.3 kB / 5.197 GB, free: 55.38 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.144e-05/12.51, allocations: 34 kB / 5.197 GB, free: 55.34 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003968/12.51, allocations: 287.4 kB / 5.198 GB, free: 55.08 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000404/12.51, allocations: 87.98 kB / 5.198 GB, free: 55 MB / 1.01 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.0008772/12.52, allocations: 164.3 kB / 5.198 GB, free: 54.83 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/12.52, allocations: 253 kB / 5.198 GB, free: 54.58 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00426/12.52, allocations: 1.955 MB / 5.2 GB, free: 52.62 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/12.52, allocations: 19.52 kB / 5.2 GB, free: 52.61 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/12.52, allocations: 3.656 kB / 5.2 GB, free: 52.61 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002334/12.52, allocations: 1.77 MB / 5.202 GB, free: 50.79 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/12.53, allocations: 4.707 MB / 5.206 GB, free: 46.05 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/12.53, allocations: 4 kB / 5.206 GB, free: 46.04 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002605/12.54, allocations: 0.5064 MB / 5.207 GB, free: 45.55 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.46e-05/12.54, allocations: 8 kB / 5.207 GB, free: 45.54 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001868/12.54, allocations: 31.98 kB / 5.207 GB, free: 45.51 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/12.54, allocations: 4.153 MB / 5.211 GB, free: 41.2 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/12.54, allocations: 7.938 kB / 5.211 GB, free: 41.2 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0048/12.54, allocations: 3.446 MB / 5.214 GB, free: 37.62 MB / 1.01 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006958/12.55, allocations: 5.28 MB / 5.22 GB, free: 32.21 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/12.55, allocations: 0.5561 MB / 5.22 GB, free: 31.63 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000901/12.55, allocations: 15.98 kB / 5.22 GB, free: 31.61 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003369/12.56, allocations: 224.2 kB / 5.22 GB, free: 31.41 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/12.56, allocations: 104.8 kB / 5.22 GB, free: 31.32 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/12.56, allocations: 63.97 kB / 5.221 GB, free: 31.25 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.002732/12.56, allocations: 1.068 MB / 5.222 GB, free: 30.18 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0128/12.57, allocations: 3.146 MB / 5.225 GB, free: 27.03 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.00782/12.58, allocations: 5.22 MB / 5.23 GB, free: 22.3 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.007653/12.59, allocations: 3.167 MB / 5.233 GB, free: 19.15 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/12.59, allocations: 320 / 5.233 GB, free: 19.15 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.00195/12.59, allocations: 0.9952 MB / 5.234 GB, free: 18.16 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008346/12.6, allocations: 1.4 MB / 5.235 GB, free: 16.79 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/12.61, allocations: 5.475 MB / 5.241 GB, free: 11.32 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004044/12.62, allocations: 2.522 MB / 5.243 GB, free: 8.766 MB / 1.01 GB Notification: Performance of SimCode: time 1.253e-06/12.62, allocations: 0 / 5.243 GB, free: 8.766 MB / 1.01 GB (rm -f Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)