Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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 3.0.0/package.mo): time 0.8551/0.8551, allocations: 132.4 MB / 139.7 MB, free: 15.55 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001104/0.001104, allocations: 172 kB / 171.6 MB, free: 2.02 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.357/1.357, allocations: 170.5 MB / 373.9 MB, free: 15.89 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001834/0.001834, allocations: 115.1 kB / 444.5 MB, free: 9.43 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.4986/0.4987, allocations: 73.39 MB / 0.666 GB, free: 62.5 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.336/5.834, allocations: 2.148 GB / 2.814 GB, free: 211.5 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/5.835, allocations: 89.14 kB / 2.814 GB, free: 211.5 MB / 0.6198 GB Notification: Performance of FrontEnd: time 7.311/13.15, allocations: 1.744 GB / 4.559 GB, free: 45.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0008066/13.15, allocations: 104.3 kB / 4.559 GB, free: 45.93 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 788 * Number of variables: 788 Notification: Performance of Generate backend data structure: time 0.01907/13.17, allocations: 3.801 MB / 4.563 GB, free: 44.52 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.062e-05/13.17, allocations: 10.06 kB / 4.563 GB, free: 44.52 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009957/13.18, allocations: 0.9959 MB / 4.564 GB, free: 44.31 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01275/13.19, allocations: 2.668 MB / 4.566 GB, free: 43.79 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004915/13.19, allocations: 191.2 kB / 4.566 GB, free: 43.71 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001983/13.19, allocations: 200.6 kB / 4.567 GB, free: 43.71 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01039/13.2, allocations: 2.869 MB / 4.569 GB, free: 43.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/13.22, allocations: 3.197 MB / 4.572 GB, free: 43.45 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000248/13.22, allocations: 0 / 4.572 GB, free: 43.45 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001702/13.22, allocations: 6.5 kB / 4.572 GB, free: 43.45 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/13.22, allocations: 117.9 kB / 4.573 GB, free: 43.44 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03695/13.25, allocations: 14.5 MB / 4.587 GB, free: 36.29 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004062/13.26, allocations: 1.772 MB / 4.588 GB, free: 36.25 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002106/13.26, allocations: 1.018 MB / 4.589 GB, free: 36.23 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/13.26, allocations: 59.53 kB / 4.59 GB, free: 36.23 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.56e-05/13.26, allocations: 67.34 kB / 4.59 GB, free: 36.19 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=186): time 5.791e-06/13.26, allocations: 0 / 4.59 GB, free: 36.19 MB / 0.6823 GB Notification: Performance of matching and sorting (n=186): time 0.008351/13.27, allocations: 2.179 MB / 4.592 GB, free: 35.98 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/13.27, allocations: 73.81 kB / 4.592 GB, free: 35.92 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005077/13.27, allocations: 1.589 MB / 4.593 GB, free: 35.7 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0008269/13.28, allocations: 31.7 kB / 4.593 GB, free: 35.66 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001434/13.28, allocations: 1.155 MB / 4.595 GB, free: 34.99 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.001576/13.28, allocations: 0.6346 MB / 4.595 GB, free: 34.57 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004262/13.28, allocations: 1.531 kB / 4.595 GB, free: 34.57 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0003633/13.28, allocations: 398.2 kB / 4.596 GB, free: 34.26 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002202/13.28, allocations: 0.8478 MB / 4.596 GB, free: 34.25 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002892/13.28, allocations: 1.605 MB / 4.598 GB, free: 33.38 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002843/13.29, allocations: 1.135 MB / 4.599 GB, free: 33.36 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.634e-05/13.29, allocations: 5.875 kB / 4.599 GB, free: 33.36 MB / 0.6823 GB Notification: Performance of matching and sorting (n=292) (initialization): time 0.006763/13.29, allocations: 2.556 MB / 4.602 GB, free: 33.16 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0023/13.3, allocations: 6.937 MB / 4.608 GB, free: 25.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.559e-05/13.3, allocations: 19.31 kB / 4.608 GB, free: 25.73 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.701e-05/13.3, allocations: 34.91 kB / 4.608 GB, free: 25.73 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/13.31, allocations: 2.208 MB / 4.61 GB, free: 25.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005946/13.32, allocations: 4.908 MB / 4.615 GB, free: 21.64 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006256/13.32, allocations: 452.5 kB / 4.616 GB, free: 21.53 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009098/13.32, allocations: 102.5 kB / 4.616 GB, free: 21.53 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/13.32, allocations: 6.156 kB / 4.616 GB, free: 21.53 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007227/13.33, allocations: 2.194 MB / 4.618 GB, free: 21.49 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.118e-05/13.33, allocations: 14.91 kB / 4.618 GB, free: 21.49 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.53e-05/13.33, allocations: 30.34 kB / 4.618 GB, free: 21.49 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/13.33, allocations: 0.5267 MB / 4.619 GB, free: 21.49 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.678e-05/13.33, allocations: 40.47 kB / 4.619 GB, free: 21.49 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005054/13.34, allocations: 358.9 kB / 4.619 GB, free: 21.39 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004892/13.34, allocations: 99.97 kB / 4.619 GB, free: 21.39 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (292): * Single equations (assignments): 282 * Array equations: 0 * Algorithm blocks: 3 * 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.00142/13.34, allocations: 174.3 kB / 4.619 GB, free: 21.28 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001571/13.34, allocations: 269.1 kB / 4.619 GB, free: 21.14 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/13.34, allocations: 281.5 kB / 4.62 GB, free: 21.11 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/13.34, allocations: 17.03 kB / 4.62 GB, free: 21.11 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-05/13.34, allocations: 2.375 kB / 4.62 GB, free: 21.11 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003522/13.35, allocations: 1.822 MB / 4.621 GB, free: 20.8 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/13.36, allocations: 4.811 MB / 4.626 GB, free: 20.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/13.36, allocations: 7.094 kB / 4.626 GB, free: 20.35 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01191/13.37, allocations: 2.106 MB / 4.628 GB, free: 20.35 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.098e-05/13.37, allocations: 8.969 kB / 4.628 GB, free: 20.35 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004124/13.37, allocations: 35.11 kB / 4.628 GB, free: 20.35 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/13.39, allocations: 10.06 MB / 4.638 GB, free: 27.57 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/13.39, allocations: 0.9375 kB / 4.638 GB, free: 27.57 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007427/13.4, allocations: 3.375 MB / 4.641 GB, free: 27.02 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003141/13.4, allocations: 0.6163 MB / 4.642 GB, free: 26.77 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001301/13.4, allocations: 20.36 kB / 4.642 GB, free: 26.77 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004611/13.4, allocations: 298.3 kB / 4.642 GB, free: 26.75 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003667/13.4, allocations: 98.53 kB / 4.642 GB, free: 26.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005066/13.41, allocations: 91.17 kB / 4.642 GB, free: 26.75 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.003465/13.41, allocations: 1.17 MB / 4.644 GB, free: 26.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.01037/13.42, allocations: 2.125 MB / 4.646 GB, free: 26.3 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (186): * Single equations (assignments): 179 * 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.01116/13.43, allocations: 5.225 MB / 4.651 GB, free: 24.04 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.02603/13.46, allocations: 6.229 MB / 4.657 GB, free: 23.79 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/13.46, allocations: 3 kB / 4.657 GB, free: 23.79 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.02437/13.48, allocations: 4.647 MB / 4.661 GB, free: 23.79 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01001/13.49, allocations: 1.44 MB / 4.663 GB, free: 23.75 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01829/13.51, allocations: 5.866 MB / 4.669 GB, free: 22.56 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005899/13.52, allocations: 2.612 MB / 4.671 GB, free: 21.78 MB / 0.698 GB Notification: Performance of SimCode: time 1.623e-06/13.52, allocations: 0 / 4.671 GB, free: 21.78 MB / 0.698 GB Notification: Performance of Templates: time 0.1906/13.71, allocations: 88.37 MB / 4.757 GB, free: 2.688 MB / 0.698 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)