Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",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.065/2.065, allocations: 248.6 MB / 255.9 MB, free: 7.156 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.001712/0.001712, allocations: 188.7 kB / 315.1 MB, free: 4.297 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.842/1.842, allocations: 205.1 MB / 0.5658 GB, free: 340 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.001321/0.001321, allocations: 95.25 kB / 0.67 GB, free: 5.535 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4791/0.4805, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.7177, allocations: 106.3 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.625/2.343, allocations: 428.2 MB / 1.302 GB, free: 242.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003726/2.343, allocations: 90.2 kB / 1.302 GB, free: 242.2 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 2.13/4.473, allocations: 0.5045 GB / 1.806 GB, free: 109.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/4.473, allocations: 8 kB / 1.806 GB, free: 109.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002514/4.476, allocations: 341.5 kB / 1.807 GB, free: 109.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005588/4.481, allocations: 1.647 MB / 1.808 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/4.482, allocations: 117.5 kB / 1.808 GB, free: 107.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002903/4.482, allocations: 64 kB / 1.808 GB, free: 107.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003246/4.485, allocations: 1.004 MB / 1.809 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003185/4.488, allocations: 1.117 MB / 1.81 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.702e-05/4.489, allocations: 7.938 kB / 1.81 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/4.489, allocations: 3.906 kB / 1.81 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.268e-05/4.489, allocations: 32 kB / 1.81 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/4.503, allocations: 7.093 MB / 1.817 GB, free: 97.64 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/4.504, allocations: 0.5667 MB / 1.818 GB, free: 97.06 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009269/4.505, allocations: 385.7 kB / 1.818 GB, free: 96.69 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00071/4.506, allocations: 0.8355 MB / 1.819 GB, free: 95.67 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/4.506, allocations: 39.22 kB / 1.819 GB, free: 95.62 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=63): time 3.607e-06/4.506, allocations: 0 / 1.819 GB, free: 95.62 MB / 0.8698 GB Notification: Performance of matching and sorting (n=63): time 0.00291/4.509, allocations: 0.8263 MB / 1.82 GB, free: 94.79 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/4.509, allocations: 111.4 kB / 1.82 GB, free: 94.66 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002488/4.512, allocations: 1.145 MB / 1.821 GB, free: 93.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002668/4.512, allocations: 29.7 kB / 1.821 GB, free: 93.47 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004321/4.512, allocations: 0.5234 MB / 1.822 GB, free: 92.94 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003227/4.513, allocations: 208.9 kB / 1.822 GB, free: 92.73 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.735e-05/4.513, allocations: 0 / 1.822 GB, free: 92.73 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.843e-05/4.513, allocations: 338 kB / 1.822 GB, free: 92.39 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009344/4.514, allocations: 349.9 kB / 1.823 GB, free: 92.05 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/4.515, allocations: 0.6115 MB / 1.823 GB, free: 91.33 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/4.516, allocations: 425.5 kB / 1.824 GB, free: 90.92 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/4.516, allocations: 4 kB / 1.824 GB, free: 90.91 MB / 0.8698 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003199/4.52, allocations: 1.033 MB / 1.825 GB, free: 89.87 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003708/4.52, allocations: 1.875 MB / 1.826 GB, free: 87.89 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/4.52, allocations: 8 kB / 1.826 GB, free: 87.88 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-05/4.52, allocations: 8 kB / 1.826 GB, free: 87.88 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002467/4.523, allocations: 283.6 kB / 1.827 GB, free: 87.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/4.523, allocations: 15.92 kB / 1.827 GB, free: 87.58 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/4.525, allocations: 215 kB / 1.827 GB, free: 87.37 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001934/4.526, allocations: 38.48 kB / 1.827 GB, free: 87.34 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/4.526, allocations: 4 kB / 1.827 GB, free: 87.33 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002787/4.528, allocations: 0.8649 MB / 1.828 GB, free: 86.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/4.528, allocations: 4 kB / 1.828 GB, free: 86.46 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/4.529, allocations: 8 kB / 1.828 GB, free: 86.45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/4.531, allocations: 280.2 kB / 1.828 GB, free: 86.18 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/4.531, allocations: 11.94 kB / 1.828 GB, free: 86.17 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002665/4.534, allocations: 187.1 kB / 1.828 GB, free: 85.98 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/4.534, allocations: 39.98 kB / 1.828 GB, free: 85.95 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003491/4.534, allocations: 116.8 kB / 1.828 GB, free: 85.82 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000431/4.535, allocations: 150.1 kB / 1.829 GB, free: 85.68 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003203/4.538, allocations: 0.9859 MB / 1.83 GB, free: 84.68 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/4.538, allocations: 8 kB / 1.83 GB, free: 84.67 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/4.538, allocations: 7.891 kB / 1.83 GB, free: 84.66 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0021/4.54, allocations: 0.8346 MB / 1.83 GB, free: 83.79 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006588/4.547, allocations: 2.449 MB / 1.833 GB, free: 81.28 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/4.547, allocations: 4 kB / 1.833 GB, free: 81.28 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001959/4.549, allocations: 220 kB / 1.833 GB, free: 81.06 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-05/4.549, allocations: 11.94 kB / 1.833 GB, free: 81.05 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/4.549, allocations: 8 kB / 1.833 GB, free: 81.04 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.018e-05/4.549, allocations: 11.98 kB / 1.833 GB, free: 81.03 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/4.549, allocations: 0.8125 kB / 1.833 GB, free: 81.03 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004134/4.553, allocations: 1.738 MB / 1.835 GB, free: 79.17 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00566/4.559, allocations: 2.715 MB / 1.837 GB, free: 76.33 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/4.56, allocations: 375 kB / 1.838 GB, free: 75.94 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005265/4.561, allocations: 11.89 kB / 1.838 GB, free: 75.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002364/4.563, allocations: 119.9 kB / 1.838 GB, free: 75.81 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/4.563, allocations: 68.31 kB / 1.838 GB, free: 75.75 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/4.563, allocations: 43.97 kB / 1.838 GB, free: 75.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001982/4.565, allocations: 0.8678 MB / 1.839 GB, free: 74.84 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006675/4.572, allocations: 1.06 MB / 1.84 GB, free: 73.77 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003165/4.575, allocations: 0.7985 MB / 1.841 GB, free: 73.03 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.006401/4.582, allocations: 1.409 MB / 1.842 GB, free: 71.62 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-05/4.582, allocations: 0 / 1.842 GB, free: 71.62 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001975/4.584, allocations: 469.6 kB / 1.842 GB, free: 71.16 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007794/4.592, allocations: 0.5606 MB / 1.843 GB, free: 70.61 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007202/4.599, allocations: 2.088 MB / 1.845 GB, free: 68.45 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002139/4.601, allocations: 1.453 MB / 1.846 GB, free: 66.96 MB / 0.8698 GB Notification: Performance of SimCode: time 2.084e-06/4.601, allocations: 0 / 1.846 GB, free: 66.96 MB / 0.8698 GB