Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.Tutorial.SpaceCooling.System2.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System2,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2",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 7.0.1/package.mo): time 2.504/2.504, allocations: 248.6 MB / 255.9 MB, free: 7.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001639/0.001639, allocations: 195.6 kB / 315.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.814/1.814, allocations: 205.1 MB / 0.5658 GB, free: 304 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001371/0.00137, allocations: 88.69 kB / 0.67 GB, free: 5.504 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.499/0.5005, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.7208, allocations: 106.2 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.585/7.306, allocations: 2.547 GB / 3.43 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/7.307, allocations: 82.64 kB / 3.43 GB, free: 148.8 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1757 * Number of variables: 1757 Notification: Performance of Generate backend data structure: time 19.92/27.23, allocations: 4.053 GB / 7.483 GB, free: 43.06 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/27.23, allocations: 10.25 kB / 7.483 GB, free: 43.05 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03517/27.27, allocations: 2.777 MB / 7.485 GB, free: 40.27 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04369/27.31, allocations: 10.19 MB / 7.495 GB, free: 30.03 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000539/27.31, allocations: 224 kB / 7.496 GB, free: 29.81 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003548/27.31, allocations: 411.9 kB / 7.496 GB, free: 29.41 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02938/27.34, allocations: 7.781 MB / 7.504 GB, free: 21.62 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03439/27.38, allocations: 8.009 MB / 7.511 GB, free: 13.42 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005111/27.38, allocations: 11.84 kB / 7.511 GB, free: 13.41 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003156/27.38, allocations: 12 kB / 7.511 GB, free: 13.39 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004469/27.38, allocations: 308 kB / 7.512 GB, free: 13.09 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.256/28.64, allocations: 37.79 MB / 7.549 GB, free: 142.2 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01027/28.65, allocations: 3.452 MB / 7.552 GB, free: 142.2 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009372/28.66, allocations: 3.21 MB / 7.555 GB, free: 142.2 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003633/28.66, allocations: 1.395 MB / 7.556 GB, free: 140.8 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01079/28.67, allocations: 3.118 MB / 7.56 GB, free: 140.6 MB / 1.026 GB Notification: Performance of pre-optimization done (n=456): time 1.18e-05/28.67, allocations: 0 / 7.56 GB, free: 140.6 MB / 1.026 GB Notification: Performance of matching and sorting (n=460): time 0.07421/28.75, allocations: 15.32 MB / 7.574 GB, free: 137.6 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/28.75, allocations: 414.6 kB / 7.575 GB, free: 137.2 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01761/28.76, allocations: 5.313 MB / 7.58 GB, free: 136.8 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 0.001658/28.77, allocations: 38.77 kB / 7.58 GB, free: 136.7 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.005096/28.77, allocations: 2.442 MB / 7.582 GB, free: 135.9 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.006822/28.78, allocations: 1.527 MB / 7.584 GB, free: 135.1 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/28.78, allocations: 0 / 7.584 GB, free: 135.1 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0008043/28.78, allocations: 496.1 kB / 7.584 GB, free: 134.7 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009775/28.79, allocations: 2.262 MB / 7.587 GB, free: 134.7 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01133/28.8, allocations: 3.476 MB / 7.59 GB, free: 133.5 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/28.81, allocations: 3.079 MB / 7.593 GB, free: 133.4 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.815e-05/28.81, allocations: 7.406 kB / 7.593 GB, free: 133.4 MB / 1.026 GB Notification: Performance of matching and sorting (n=598) (initialization): time 0.03149/28.84, allocations: 6.736 MB / 7.6 GB, free: 132.9 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.002319/28.85, allocations: 10.63 MB / 7.61 GB, free: 121.9 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001522/28.85, allocations: 23.06 kB / 7.61 GB, free: 121.9 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002385/28.85, allocations: 363.5 kB / 7.61 GB, free: 121.9 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01107/28.86, allocations: 1.067 MB / 7.611 GB, free: 121.9 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/28.87, allocations: 6.27 MB / 7.618 GB, free: 117.1 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01387/28.88, allocations: 0.5425 MB / 7.618 GB, free: 117 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001936/28.89, allocations: 202.8 kB / 7.618 GB, free: 117 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/28.89, allocations: 3.875 kB / 7.618 GB, free: 117 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0238/28.91, allocations: 6.067 MB / 7.624 GB, free: 116.8 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002826/28.91, allocations: 27.23 kB / 7.624 GB, free: 116.8 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003849/28.91, allocations: 364.1 kB / 7.625 GB, free: 116.8 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01515/28.93, allocations: 1.053 MB / 7.626 GB, free: 116.8 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/28.94, allocations: 6.606 MB / 7.632 GB, free: 111.8 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01524/28.96, allocations: 0.5219 MB / 7.633 GB, free: 111.8 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002375/28.96, allocations: 193.5 kB / 7.633 GB, free: 111.8 MB / 1.026 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fan.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (577): * Single equations (assignments): 569 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 3 {1 4,1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.004186/28.96, allocations: 222.6 kB / 7.633 GB, free: 111.7 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004941/28.97, allocations: 0.6574 MB / 7.634 GB, free: 111.3 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02685/29, allocations: 6.711 MB / 7.64 GB, free: 111 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.814e-05/29, allocations: 54.7 kB / 7.64 GB, free: 111 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.743e-05/29, allocations: 7.875 kB / 7.64 GB, free: 111 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02055/29.02, allocations: 5.495 MB / 7.646 GB, free: 110.5 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0535/29.07, allocations: 14.84 MB / 7.66 GB, free: 109.3 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.67e-05/29.07, allocations: 7.469 kB / 7.66 GB, free: 109.3 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01112/29.08, allocations: 0.9812 MB / 7.661 GB, free: 109.3 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00233/29.08, allocations: 367.5 kB / 7.661 GB, free: 109.3 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001207/29.08, allocations: 71.73 kB / 7.661 GB, free: 109.3 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0179/29.1, allocations: 9.07 MB / 7.67 GB, free: 102 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-05/29.1, allocations: 6.062 kB / 7.67 GB, free: 102 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04134/29.14, allocations: 10.34 MB / 7.68 GB, free: 100.6 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04369/29.19, allocations: 14.87 MB / 7.695 GB, free: 98.88 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00794/29.2, allocations: 1.586 MB / 7.697 GB, free: 98.45 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003509/29.2, allocations: 32.67 kB / 7.697 GB, free: 98.45 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01276/29.21, allocations: 498.8 kB / 7.697 GB, free: 98.43 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001536/29.21, allocations: 248.7 kB / 7.697 GB, free: 98.42 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001013/29.22, allocations: 171.5 kB / 7.697 GB, free: 98.42 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.01294/29.23, allocations: 4.069 MB / 7.701 GB, free: 98.21 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.04133/29.27, allocations: 5.956 MB / 7.707 GB, free: 98.2 MB / 1.026 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 24 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],fan.filter.x[1],fan.filter.x[2],cooCoi.ele[1].vol1.dynBal.U,cooCoi.ele[1].vol2.dynBal.U,cooCoi.ele[1].vol2.dynBal.mXi[1],cooCoi.ele[1].mas.T,cooCoi.ele[2].vol1.dynBal.U,cooCoi.ele[2].vol2.dynBal.U,cooCoi.ele[2].vol2.dynBal.mXi[1],cooCoi.ele[2].mas.T,cooCoi.ele[3].vol1.dynBal.U,cooCoi.ele[3].vol2.dynBal.U,cooCoi.ele[3].vol2.dynBal.mXi[1],cooCoi.ele[3].mas.T,cooCoi.ele[4].vol1.dynBal.U,cooCoi.ele[4].vol2.dynBal.U,cooCoi.ele[4].vol2.dynBal.m,cooCoi.ele[4].vol2.dynBal.mXi[1],cooCoi.ele[4].mas.T,senTemHXOut.T,senTemSupAir.T) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (461): * Single equations (assignments): 448 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0165/29.29, allocations: 8.054 MB / 7.715 GB, free: 94.63 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.02835/29.31, allocations: 9.707 MB / 7.725 GB, free: 93.77 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.746e-05/29.31, allocations: 5.562 kB / 7.725 GB, free: 93.77 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.009314/29.32, allocations: 3.323 MB / 7.728 GB, free: 93.26 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03249/29.36, allocations: 3.457 MB / 7.731 GB, free: 93.2 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06327/29.42, allocations: 15.3 MB / 7.746 GB, free: 90.51 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02494/29.44, allocations: 6.398 MB / 7.752 GB, free: 89.6 MB / 1.026 GB Notification: Performance of SimCode: time 1.894e-06/29.44, allocations: 0 / 7.752 GB, free: 89.6 MB / 1.026 GB