Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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) 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 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Movers.Examples.FlowMachine_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow") translateModel(Buildings.Fluid.Movers.Examples.FlowMachine_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow") [: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 1.6.0+build.1/package.mo): time 0.512/0.512, allocations: 94.74 MB / 102 MB, free: 10.35 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001219/0.001219, allocations: 183.1 kB / 125.3 MB, free: 11.97 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.429/1.429, allocations: 170.5 MB / 319 MB, free: 9.328 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001852/0.001852, allocations: 98.84 kB / 381 MB, free: 18.15 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.277e-06/9.307e-06, allocations: 4.219 kB / 448.6 MB, free: 2.102 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1555, allocations: 61.51 MB / 0.4981 GB, free: 4.496 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.9/11.06, allocations: 5.32 GB / 5.818 GB, free: 162.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/11.06, allocations: 85.39 kB / 5.818 GB, free: 162.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.716/14.77, allocations: 1.068 GB / 6.886 GB, free: 56.81 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003821/14.77, allocations: 44.34 kB / 6.886 GB, free: 56.8 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 286 * Number of variables: 286 Notification: Performance of Generate backend data structure: time 0.007532/14.78, allocations: 1.985 MB / 6.888 GB, free: 55.85 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/14.78, allocations: 10.31 kB / 6.888 GB, free: 55.85 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/14.78, allocations: 206.6 kB / 6.888 GB, free: 55.75 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005185/14.79, allocations: 1.781 MB / 6.89 GB, free: 55.32 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-05/14.79, allocations: 35.25 kB / 6.89 GB, free: 55.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003962/14.79, allocations: 67.34 kB / 6.89 GB, free: 55.32 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002904/14.79, allocations: 1.151 MB / 6.891 GB, free: 55.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/14.79, allocations: 1.163 MB / 6.892 GB, free: 55.18 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.15e-05/14.79, allocations: 6.844 kB / 6.892 GB, free: 55.17 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/14.79, allocations: 1.25 kB / 6.892 GB, free: 55.17 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.257e-05/14.79, allocations: 50.78 kB / 6.892 GB, free: 55.16 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009059/14.8, allocations: 5.24 MB / 6.898 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008263/14.8, allocations: 0.4913 MB / 6.898 GB, free: 53.02 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007078/14.8, allocations: 416 kB / 6.898 GB, free: 53.01 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001054/14.81, allocations: 1.416 MB / 6.9 GB, free: 51.41 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/14.81, allocations: 47.72 kB / 6.9 GB, free: 51.37 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=75): time 3.837e-06/14.81, allocations: 1.094 kB / 6.9 GB, free: 51.37 MB / 0.5417 GB Notification: Performance of matching and sorting (n=81): time 0.01095/14.82, allocations: 2.991 MB / 6.903 GB, free: 50.79 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/14.82, allocations: 60.75 kB / 6.903 GB, free: 50.73 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/14.82, allocations: 1.003 MB / 6.904 GB, free: 50.58 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.639e-05/14.82, allocations: 36.39 kB / 6.904 GB, free: 50.54 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003213/14.82, allocations: 497.6 kB / 6.904 GB, free: 50.27 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002332/14.82, allocations: 279.1 kB / 6.905 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.706e-05/14.82, allocations: 0 / 6.905 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.637e-05/14.82, allocations: 338.5 kB / 6.905 GB, free: 49.78 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/14.82, allocations: 379.7 kB / 6.905 GB, free: 49.78 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006329/14.82, allocations: 0.5349 MB / 6.906 GB, free: 49.61 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/14.82, allocations: 0.7288 MB / 6.907 GB, free: 49.59 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/14.82, allocations: 1.031 kB / 6.907 GB, free: 49.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003687/14.83, allocations: 1.385 MB / 6.908 GB, free: 49.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002252/14.83, allocations: 0.9779 MB / 6.909 GB, free: 48.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/14.83, allocations: 3.031 kB / 6.909 GB, free: 48.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/14.83, allocations: 8.406 kB / 6.909 GB, free: 48.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/14.83, allocations: 257.7 kB / 6.909 GB, free: 48.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004491/14.83, allocations: 0.6192 MB / 6.91 GB, free: 47.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/14.83, allocations: 102.6 kB / 6.91 GB, free: 47.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/14.83, allocations: 48.28 kB / 6.91 GB, free: 47.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/14.83, allocations: 4.094 kB / 6.91 GB, free: 47.84 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003177/14.83, allocations: 1.137 MB / 6.911 GB, free: 47.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/14.83, allocations: 2.688 kB / 6.911 GB, free: 47.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/14.83, allocations: 8.656 kB / 6.911 GB, free: 47.81 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/14.84, allocations: 228 kB / 6.911 GB, free: 47.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/14.84, allocations: 7.75 kB / 6.911 GB, free: 47.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/14.84, allocations: 94.44 kB / 6.911 GB, free: 47.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/14.84, allocations: 39.97 kB / 6.911 GB, free: 47.8 MB / 0.5417 GB Warning: Assuming fixed start value for the following 3 variables: floMacDyn.vol.dynBal.medium.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = floMacDyn.vol.dynBal.T_start unit = "K" nominal = 293.15 stateSelect=StateSelect.prefer protected = true ) "Temperature of medium" type: Real floMacDyn.vol.dynBal.medium.Xi[1]:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))))))))))) max = min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, 1.0))))))))))))))) start = 0.01 unit = "1" nominal = 0.1 stateSelect=StateSelect.prefer protected = true ) "Structurally independent mass fractions" type: Real [1] floMacDyn.vol.dynBal.medium.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 100000000.0)))))))) start = 101325.0 unit = "Pa" nominal = 101325.0 stateSelect=StateSelect.prefer protected = true ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005207/14.84, allocations: 233.8 kB / 6.912 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003317/14.84, allocations: 131 kB / 6.912 GB, free: 47.59 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00424/14.84, allocations: 1.47 MB / 6.913 GB, free: 47.48 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/14.84, allocations: 9.125 kB / 6.913 GB, free: 47.48 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/14.84, allocations: 1.469 kB / 6.913 GB, free: 47.48 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/14.84, allocations: 6.781 kB / 6.913 GB, free: 47.48 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006626/14.85, allocations: 2.754 MB / 6.916 GB, free: 47.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/14.85, allocations: 1.719 kB / 6.916 GB, free: 47.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/14.85, allocations: 224.2 kB / 6.916 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.26e-05/14.85, allocations: 2.844 kB / 6.916 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.046e-05/14.85, allocations: 14.7 kB / 6.916 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003636/14.85, allocations: 0.6111 MB / 6.917 GB, free: 46.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/14.85, allocations: 0 / 6.917 GB, free: 46.42 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004409/14.86, allocations: 1.86 MB / 6.918 GB, free: 46.19 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/14.86, allocations: 343.4 kB / 6.919 GB, free: 46.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000463/14.86, allocations: 3.062 kB / 6.919 GB, free: 46.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/14.86, allocations: 78.2 kB / 6.919 GB, free: 46.01 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/14.86, allocations: 54.78 kB / 6.919 GB, free: 46.01 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/14.86, allocations: 38.36 kB / 6.919 GB, free: 46.01 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001261/14.86, allocations: 0.758 MB / 6.92 GB, free: 45.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004164/14.86, allocations: 1.014 MB / 6.921 GB, free: 45.79 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (floMacDyn.vol.dynBal.medium.p,floMacDyn.vol.dynBal.medium.Xi[1],floMacDyn.vol.dynBal.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00483/14.87, allocations: 2.22 MB / 6.923 GB, free: 45.35 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003253/14.87, allocations: 1.673 MB / 6.924 GB, free: 45.17 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/14.87, allocations: 0 / 6.924 GB, free: 45.17 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009971/14.87, allocations: 0.5183 MB / 6.925 GB, free: 45.15 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003859/14.88, allocations: 0.6568 MB / 6.926 GB, free: 45.12 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/14.88, allocations: 2.234 MB / 6.928 GB, free: 44.61 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001393/14.88, allocations: 1.498 MB / 6.929 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of SimCode: time 1.062e-06/14.88, allocations: 0 / 6.929 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of Templates: time 0.07351/14.96, allocations: 45.55 MB / 6.974 GB, free: 18.53 MB / 0.5417 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow.makefile (rm -f Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow.sim & ./Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_m_flow.pipe 2>&1)