Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.989/1.989, allocations: 390.4 MB / 397.7 MB, free: 15.46 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 187 kB / 490.8 MB, free: 6.449 MB / 398.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.4 MB / 0.7863 GB, free: 1.91 MB / 0.545 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 103.5 kB / 0.9264 GB, free: 2.5 MB / 0.6856 GB Notification: Performance of FrontEnd - loaded program: time 0.6993/0.7003, allocations: 149.1 MB / 1.072 GB, free: 186.3 MB / 0.7637 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.9782, allocations: 143 MB / 1.212 GB, free: 43.9 MB / 0.7637 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.825/5.803, allocations: 1.98 GB / 3.192 GB, free: 376.2 MB / 1.154 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/5.804, allocations: 87.52 kB / 3.192 GB, free: 376.1 MB / 1.154 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.577/12.38, allocations: 2.076 GB / 5.268 GB, free: 49.42 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/12.38, allocations: 12 kB / 5.268 GB, free: 49.41 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007788/12.39, allocations: 0.9827 MB / 5.269 GB, free: 48.42 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008275/12.4, allocations: 2.947 MB / 5.272 GB, free: 45.4 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/12.4, allocations: 168.8 kB / 5.272 GB, free: 45.22 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009492/12.4, allocations: 179.9 kB / 5.272 GB, free: 45.05 MB / 1.201 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004982/12.4, allocations: 2.514 MB / 5.274 GB, free: 42.53 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004587/12.41, allocations: 2.814 MB / 5.277 GB, free: 39.63 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.044e-05/12.41, allocations: 3.938 kB / 5.277 GB, free: 39.63 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/12.41, allocations: 11.91 kB / 5.277 GB, free: 39.62 MB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-05/12.41, allocations: 105.3 kB / 5.277 GB, free: 39.51 MB / 1.201 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/12.43, allocations: 13.57 MB / 5.291 GB, free: 24.86 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/12.43, allocations: 1.03 MB / 5.292 GB, free: 23.82 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/12.43, allocations: 1.044 MB / 5.293 GB, free: 22.78 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004586/12.43, allocations: 325.2 kB / 5.293 GB, free: 22.41 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/12.43, allocations: 64.41 kB / 5.293 GB, free: 22.34 MB / 1.201 GB Notification: Performance of pre-optimization done (n=182): time 3.917e-06/12.43, allocations: 0 / 5.293 GB, free: 22.34 MB / 1.201 GB Notification: Performance of matching and sorting (n=182): time 0.004608/12.43, allocations: 1.964 MB / 5.295 GB, free: 20.36 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/12.43, allocations: 73.41 kB / 5.295 GB, free: 20.27 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/12.44, allocations: 1.44 MB / 5.296 GB, free: 18.81 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 0.00026/12.44, allocations: 29.7 kB / 5.296 GB, free: 18.78 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006076/12.44, allocations: 1.002 MB / 5.297 GB, free: 17.75 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007947/12.44, allocations: 0.6158 MB / 5.298 GB, free: 17.13 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.637e-05/12.44, allocations: 0 / 5.298 GB, free: 17.13 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001198/12.44, allocations: 389.8 kB / 5.298 GB, free: 16.74 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009594/12.44, allocations: 0.7496 MB / 5.299 GB, free: 15.99 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/12.44, allocations: 1.381 MB / 5.3 GB, free: 14.33 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/12.44, allocations: 1.017 MB / 5.301 GB, free: 13.32 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/12.44, allocations: 5.969 kB / 5.301 GB, free: 13.31 MB / 1.201 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003169/12.44, allocations: 2.284 MB / 5.304 GB, free: 11.02 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009289/12.45, allocations: 5.477 MB / 5.309 GB, free: 4.996 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/12.45, allocations: 12 kB / 5.309 GB, free: 4.984 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.702e-05/12.45, allocations: 28 kB / 5.309 GB, free: 4.957 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002449/12.45, allocations: 0.5146 MB / 5.31 GB, free: 4.445 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/12.45, allocations: 4.2 MB / 5.314 GB, free: 84 kB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004209/12.45, allocations: 346.1 kB / 5.314 GB, free: 15.74 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/12.45, allocations: 91.98 kB / 5.314 GB, free: 15.65 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/12.45, allocations: 4 kB / 5.314 GB, free: 15.65 MB / 1.217 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003433/12.46, allocations: 1.973 MB / 5.316 GB, free: 13.68 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/12.46, allocations: 12 kB / 5.316 GB, free: 13.66 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.15e-05/12.46, allocations: 24 kB / 5.316 GB, free: 13.64 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/12.46, allocations: 479.4 kB / 5.317 GB, free: 13.17 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.054e-05/12.46, allocations: 39.61 kB / 5.317 GB, free: 13.14 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003681/12.46, allocations: 326.2 kB / 5.317 GB, free: 12.82 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/12.46, allocations: 87.98 kB / 5.317 GB, free: 12.73 MB / 1.217 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.0008067/12.46, allocations: 156.4 kB / 5.317 GB, free: 12.57 MB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007639/12.47, allocations: 262.2 kB / 5.317 GB, free: 12.31 MB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004079/12.47, allocations: 1.961 MB / 5.319 GB, free: 10.34 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.077e-05/12.47, allocations: 20 kB / 5.319 GB, free: 10.32 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/12.47, allocations: 0 / 5.319 GB, free: 10.32 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002801/12.47, allocations: 1.779 MB / 5.321 GB, free: 8.5 MB / 1.217 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009884/12.48, allocations: 4.728 MB / 5.326 GB, free: 3.684 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/12.48, allocations: 4 kB / 5.326 GB, free: 3.68 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002671/12.48, allocations: 0.4917 MB / 5.326 GB, free: 3.191 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.341e-05/12.48, allocations: 8 kB / 5.326 GB, free: 3.184 MB / 1.217 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/12.49, allocations: 39.97 kB / 5.326 GB, free: 3.145 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5679/13.05, allocations: 4.145 MB / 5.33 GB, free: 243.8 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-05/13.05, allocations: 11.09 kB / 5.33 GB, free: 243.8 MB / 1.217 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006971/13.06, allocations: 3.3 MB / 5.333 GB, free: 243.2 MB / 1.217 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009876/13.07, allocations: 5.114 MB / 5.338 GB, free: 242.3 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002601/13.07, allocations: 0.5534 MB / 5.339 GB, free: 242.1 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/13.07, allocations: 13.41 kB / 5.339 GB, free: 242.1 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004613/13.08, allocations: 220.1 kB / 5.339 GB, free: 242.1 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002878/13.08, allocations: 100.7 kB / 5.339 GB, free: 242.1 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000248/13.08, allocations: 71.27 kB / 5.339 GB, free: 242.1 MB / 1.217 GB Notification: Performance of sort global known variables: time 0.002221/13.08, allocations: 1.075 MB / 5.34 GB, free: 242 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.0136/13.09, allocations: 3.156 MB / 5.344 GB, free: 241.8 MB / 1.217 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.008604/13.1, allocations: 5.222 MB / 5.349 GB, free: 239.6 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.009569/13.11, allocations: 3.179 MB / 5.352 GB, free: 239.6 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 1.907e-05/13.11, allocations: 2.938 kB / 5.352 GB, free: 239.6 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.002912/13.12, allocations: 0.9864 MB / 5.353 GB, free: 239.5 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01218/13.13, allocations: 1.399 MB / 5.354 GB, free: 239.5 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/13.14, allocations: 5.546 MB / 5.359 GB, free: 238.4 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003778/13.15, allocations: 2.527 MB / 5.362 GB, free: 237.6 MB / 1.217 GB Notification: Performance of SimCode: time 1.512e-06/13.15, allocations: 0 / 5.362 GB, free: 237.6 MB / 1.217 GB (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)