Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.007/2.007, allocations: 387.2 MB / 394.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 185.3 kB / 487 MB, free: 5.379 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 221.3 MB / 0.7819 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 98.77 kB / 0.9213 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6145/0.6155, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.8965, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.863/5.759, allocations: 1.979 GB / 3.184 GB, free: 326.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/5.76, allocations: 87.3 kB / 3.184 GB, free: 326.1 MB / 1.151 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.167/12.93, allocations: 2.076 GB / 5.261 GB, free: 8.766 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/12.93, allocations: 9 kB / 5.261 GB, free: 8.758 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008003/12.93, allocations: 0.9827 MB / 5.262 GB, free: 7.77 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/12.95, allocations: 2.94 MB / 5.265 GB, free: 4.758 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003005/12.95, allocations: 176.8 kB / 5.265 GB, free: 4.57 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001309/12.95, allocations: 179.9 kB / 5.265 GB, free: 4.395 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006517/12.95, allocations: 2.506 MB / 5.267 GB, free: 1.883 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008639/12.96, allocations: 2.81 MB / 5.27 GB, free: 14.99 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001225/12.96, allocations: 11.84 kB / 5.27 GB, free: 14.98 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007057/12.96, allocations: 4 kB / 5.27 GB, free: 14.97 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/12.96, allocations: 109.3 kB / 5.27 GB, free: 14.86 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03/12.99, allocations: 13.57 MB / 5.283 GB, free: 200 kB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6309/13.62, allocations: 1.034 MB / 5.284 GB, free: 243.9 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001353/13.63, allocations: 1.044 MB / 5.285 GB, free: 243.9 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004568/13.63, allocations: 333.6 kB / 5.286 GB, free: 243.6 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/13.63, allocations: 56.25 kB / 5.286 GB, free: 243.5 MB / 1.214 GB Notification: Performance of pre-optimization done (n=182): time 3.827e-06/13.63, allocations: 0 / 5.286 GB, free: 243.5 MB / 1.214 GB Notification: Performance of matching and sorting (n=182): time 0.004361/13.63, allocations: 1.954 MB / 5.288 GB, free: 243.5 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/13.63, allocations: 73.88 kB / 5.288 GB, free: 243.4 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002466/13.63, allocations: 1.447 MB / 5.289 GB, free: 243.2 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0003152/13.63, allocations: 29.27 kB / 5.289 GB, free: 243.2 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007053/13.63, allocations: 1.004 MB / 5.29 GB, free: 242.9 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008347/13.64, allocations: 0.6148 MB / 5.291 GB, free: 242.6 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.734e-05/13.64, allocations: 0 / 5.291 GB, free: 242.6 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.000125/13.64, allocations: 387.2 kB / 5.291 GB, free: 242.3 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/13.64, allocations: 0.7461 MB / 5.292 GB, free: 242.3 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/13.64, allocations: 1.382 MB / 5.293 GB, free: 241.6 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/13.64, allocations: 1.017 MB / 5.294 GB, free: 241.6 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-05/13.64, allocations: 9.938 kB / 5.294 GB, free: 241.5 MB / 1.214 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004009/13.64, allocations: 2.282 MB / 5.297 GB, free: 241.3 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001074/13.64, allocations: 5.469 MB / 5.302 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/13.64, allocations: 14.78 kB / 5.302 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.421e-05/13.64, allocations: 22.31 kB / 5.302 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/13.65, allocations: 0.5222 MB / 5.302 GB, free: 235.5 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/13.65, allocations: 4.198 MB / 5.307 GB, free: 231.4 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004337/13.65, allocations: 349.3 kB / 5.307 GB, free: 231.4 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003035/13.65, allocations: 90.12 kB / 5.307 GB, free: 231.4 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/13.65, allocations: 5.344 kB / 5.307 GB, free: 231.4 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00298/13.66, allocations: 1.972 MB / 5.309 GB, free: 231.3 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/13.66, allocations: 13.97 kB / 5.309 GB, free: 231.3 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/13.66, allocations: 24.53 kB / 5.309 GB, free: 231.3 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/13.66, allocations: 474.7 kB / 5.309 GB, free: 231.3 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.441e-05/13.66, allocations: 32.44 kB / 5.309 GB, free: 231.3 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/13.66, allocations: 328.6 kB / 5.31 GB, free: 231.3 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/13.66, allocations: 89.38 kB / 5.31 GB, free: 231.3 MB / 1.214 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.0006465/13.66, allocations: 159 kB / 5.31 GB, free: 231.2 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006255/13.66, allocations: 258.8 kB / 5.31 GB, free: 231.1 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003207/13.67, allocations: 1.962 MB / 5.312 GB, free: 230.9 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/13.67, allocations: 15 kB / 5.312 GB, free: 230.9 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/13.67, allocations: 6.75 kB / 5.312 GB, free: 230.9 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002153/13.67, allocations: 1.774 MB / 5.314 GB, free: 230.6 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00896/13.68, allocations: 4.731 MB / 5.318 GB, free: 230.2 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/13.68, allocations: 4.594 kB / 5.318 GB, free: 230.2 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002409/13.68, allocations: 0.4888 MB / 5.319 GB, free: 230.2 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.897e-05/13.68, allocations: 9.781 kB / 5.319 GB, free: 230.2 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/13.68, allocations: 33.52 kB / 5.319 GB, free: 230.2 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/13.68, allocations: 4.148 MB / 5.323 GB, free: 226.1 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/13.68, allocations: 10.2 kB / 5.323 GB, free: 226.1 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00418/13.69, allocations: 3.299 MB / 5.326 GB, free: 225.3 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006678/13.69, allocations: 5.111 MB / 5.331 GB, free: 224.2 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002063/13.7, allocations: 0.5525 MB / 5.332 GB, free: 224 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004919/13.7, allocations: 22.77 kB / 5.332 GB, free: 224 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002549/13.7, allocations: 222.1 kB / 5.332 GB, free: 224 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/13.7, allocations: 103.5 kB / 5.332 GB, free: 224 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001486/13.7, allocations: 72.53 kB / 5.332 GB, free: 224 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.001828/13.7, allocations: 1.069 MB / 5.333 GB, free: 223.8 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.0115/13.71, allocations: 3.152 MB / 5.336 GB, free: 223.7 MB / 1.214 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.007544/13.72, allocations: 5.229 MB / 5.341 GB, free: 221.5 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.00661/13.73, allocations: 3.186 MB / 5.345 GB, free: 221.4 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/13.73, allocations: 3.5 kB / 5.345 GB, free: 221.4 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.001752/13.73, allocations: 0.9873 MB / 5.346 GB, free: 221.4 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008344/13.74, allocations: 1.401 MB / 5.347 GB, free: 221.4 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/13.75, allocations: 5.551 MB / 5.352 GB, free: 220.2 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002855/13.75, allocations: 2.53 MB / 5.355 GB, free: 219.5 MB / 1.214 GB Notification: Performance of SimCode: time 1.854e-06/13.75, allocations: 2.188 kB / 5.355 GB, free: 219.5 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)