Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.Tubular.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.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular",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.431/2.431, allocations: 248.6 MB / 255.9 MB, free: 7.152 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.002843/0.002843, allocations: 191.1 kB / 315.1 MB, free: 4.293 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.96/1.96, allocations: 205.1 MB / 0.5658 GB, free: 464 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.001334/0.001334, allocations: 83.16 kB / 0.67 GB, free: 5.668 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4745/0.4758, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.7015, allocations: 106.3 MB / 0.8835 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.675/7.377, allocations: 2.475 GB / 3.358 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003425/7.377, allocations: 94.81 kB / 3.358 GB, free: 236.6 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: 967 * Number of variables: 967 Notification: Performance of Generate backend data structure: time 4.209/11.59, allocations: 0.909 GB / 4.267 GB, free: 7.977 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/11.59, allocations: 12 kB / 4.267 GB, free: 7.965 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01508/11.6, allocations: 1.359 MB / 4.269 GB, free: 6.598 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02508/11.63, allocations: 5.441 MB / 4.274 GB, free: 1.168 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003345/11.63, allocations: 123.9 kB / 4.274 GB, free: 1.047 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002182/11.63, allocations: 216 kB / 4.274 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5259/12.15, allocations: 4.428 MB / 4.279 GB, free: 118.1 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02316/12.18, allocations: 4.53 MB / 4.283 GB, free: 117.6 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001916/12.18, allocations: 10.16 kB / 4.283 GB, free: 117.6 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001252/12.18, allocations: 7.094 kB / 4.283 GB, free: 117.6 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/12.18, allocations: 178.8 kB / 4.283 GB, free: 117.6 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05373/12.23, allocations: 19.22 MB / 4.302 GB, free: 111.1 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01354/12.25, allocations: 2.996 MB / 4.305 GB, free: 111.1 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006146/12.25, allocations: 1.645 MB / 4.306 GB, free: 111 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003343/12.26, allocations: 1.87 MB / 4.308 GB, free: 109 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006028/12.26, allocations: 1.765 MB / 4.31 GB, free: 108.9 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=267): time 8.596e-06/12.26, allocations: 3.938 kB / 4.31 GB, free: 108.9 MB / 0.9011 GB Notification: Performance of matching and sorting (n=267): time 0.02075/12.28, allocations: 3.7 MB / 4.314 GB, free: 108.6 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/12.28, allocations: 286.3 kB / 4.314 GB, free: 108.3 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008609/12.29, allocations: 3.032 MB / 4.317 GB, free: 108 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0009961/12.29, allocations: 28.98 kB / 4.317 GB, free: 108 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.002633/12.3, allocations: 1.393 MB / 4.318 GB, free: 107.5 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.002583/12.3, allocations: 0.8771 MB / 4.319 GB, free: 107 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009211/12.3, allocations: 0 / 4.319 GB, free: 107 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0005171/12.3, allocations: 421.5 kB / 4.319 GB, free: 106.7 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007106/12.31, allocations: 1.323 MB / 4.321 GB, free: 106.7 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006854/12.31, allocations: 1.998 MB / 4.323 GB, free: 106 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02513/12.34, allocations: 2.876 MB / 4.326 GB, free: 105.9 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.01e-05/12.34, allocations: 9 kB / 4.326 GB, free: 105.9 MB / 0.9011 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.03343/12.37, allocations: 4.959 MB / 4.33 GB, free: 105.6 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.001638/12.37, allocations: 7.284 MB / 4.337 GB, free: 98.14 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-05/12.38, allocations: 18.47 kB / 4.338 GB, free: 98.14 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/12.38, allocations: 114 kB / 4.338 GB, free: 98.13 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008593/12.38, allocations: 0.8158 MB / 4.338 GB, free: 98.13 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003309/12.39, allocations: 2.099 MB / 4.34 GB, free: 96.32 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008234/12.4, allocations: 423.7 kB / 4.341 GB, free: 96.24 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001147/12.4, allocations: 145.5 kB / 4.341 GB, free: 96.24 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/12.4, allocations: 3.875 kB / 4.341 GB, free: 96.24 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03263/12.43, allocations: 4.591 MB / 4.345 GB, free: 96.15 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.534e-05/12.43, allocations: 21.19 kB / 4.346 GB, free: 96.15 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/12.43, allocations: 117.7 kB / 4.346 GB, free: 96.14 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008304/12.44, allocations: 0.8032 MB / 4.346 GB, free: 96.14 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002869/12.44, allocations: 1.505 MB / 4.348 GB, free: 94.91 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01063/12.45, allocations: 391.9 kB / 4.348 GB, free: 94.85 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001904/12.46, allocations: 144 kB / 4.348 GB, free: 94.85 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (370): * Single equations (assignments): 368 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002091/12.46, allocations: 184.1 kB / 4.349 GB, free: 94.74 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002374/12.46, allocations: 354.4 kB / 4.349 GB, free: 94.56 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02556/12.49, allocations: 4.549 MB / 4.353 GB, free: 94.36 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-05/12.49, allocations: 30.59 kB / 4.353 GB, free: 94.36 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/12.49, allocations: 0 / 4.353 GB, free: 94.36 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01996/12.51, allocations: 3.645 MB / 4.357 GB, free: 94.02 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04874/12.55, allocations: 8.659 MB / 4.365 GB, free: 93.45 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.012e-05/12.55, allocations: 0 / 4.365 GB, free: 93.45 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01105/12.57, allocations: 0.639 MB / 4.366 GB, free: 93.45 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/12.57, allocations: 93.94 kB / 4.366 GB, free: 93.44 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008443/12.57, allocations: 60.52 kB / 4.366 GB, free: 93.44 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003191/12.57, allocations: 2.082 MB / 4.368 GB, free: 91.63 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/12.57, allocations: 2.344 kB / 4.368 GB, free: 91.63 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0389/12.61, allocations: 6.033 MB / 4.374 GB, free: 91.04 MB / 0.9011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04589/12.66, allocations: 8.514 MB / 4.382 GB, free: 90.06 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006468/12.66, allocations: 1.035 MB / 4.383 GB, free: 89.78 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00237/12.66, allocations: 15.5 kB / 4.383 GB, free: 89.77 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007989/12.67, allocations: 288.1 kB / 4.384 GB, free: 89.77 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000929/12.67, allocations: 154.6 kB / 4.384 GB, free: 89.76 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006054/12.67, allocations: 124.5 kB / 4.384 GB, free: 89.76 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.006353/12.68, allocations: 2.345 MB / 4.386 GB, free: 89.62 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.01567/12.7, allocations: 2.669 MB / 4.389 GB, free: 89.43 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 11 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.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 (286): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005762/12.7, allocations: 1.608 MB / 4.39 GB, free: 89.22 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.02224/12.72, allocations: 5.486 MB / 4.396 GB, free: 88.93 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/12.72, allocations: 4.5 kB / 4.396 GB, free: 88.93 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.00554/12.73, allocations: 1.721 MB / 4.397 GB, free: 88.82 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01653/12.75, allocations: 1.665 MB / 4.399 GB, free: 88.79 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03601/12.78, allocations: 7.866 MB / 4.407 GB, free: 87.38 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009207/12.79, allocations: 3.586 MB / 4.41 GB, free: 86.6 MB / 0.9011 GB Notification: Performance of SimCode: time 1.423e-06/12.79, allocations: 0 / 4.41 GB, free: 86.6 MB / 0.9011 GB