Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.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_CoolingClosedLoop,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",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.075/2.075, allocations: 248.6 MB / 255.9 MB, free: 7.145 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.001674/0.001674, allocations: 185.2 kB / 315.1 MB, free: 4.312 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.956/1.956, allocations: 205.1 MB / 0.5658 GB, free: 404 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.00134/0.00134, allocations: 100.9 kB / 0.67 GB, free: 5.609 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.516/0.5173, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.7353, allocations: 106.2 MB / 0.8835 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.632/2.367, allocations: 466.7 MB / 1.339 GB, free: 249.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003526/2.367, allocations: 89.98 kB / 1.339 GB, free: 249.1 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: 384 * Number of variables: 384 Notification: Performance of Generate backend data structure: time 4.655/7.022, allocations: 0.9751 GB / 2.314 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/7.022, allocations: 7.219 kB / 2.314 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00615/7.029, allocations: 0.6925 MB / 2.315 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/7.041, allocations: 2.993 MB / 2.318 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001624/7.043, allocations: 284 kB / 2.318 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008223/7.044, allocations: 104 kB / 2.318 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005693/7.05, allocations: 1.53 MB / 2.32 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006002/7.056, allocations: 1.668 MB / 2.322 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.516e-05/7.056, allocations: 4.969 kB / 2.322 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003095/7.056, allocations: 7.031 kB / 2.322 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.925e-05/7.056, allocations: 46.2 kB / 2.322 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02512/7.081, allocations: 9.626 MB / 2.331 GB, free: 106 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/7.084, allocations: 0.698 MB / 2.332 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/7.085, allocations: 0.5818 MB / 2.332 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01276/7.098, allocations: 3.999 MB / 2.336 GB, free: 104.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001754/7.1, allocations: 0.7008 MB / 2.337 GB, free: 104 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=96): time 4.228e-06/7.1, allocations: 1.031 kB / 2.337 GB, free: 104 MB / 0.8855 GB Notification: Performance of matching and sorting (n=96): time 0.005247/7.105, allocations: 1.287 MB / 2.338 GB, free: 103.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/7.106, allocations: 195.8 kB / 2.338 GB, free: 103.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00514/7.111, allocations: 1.782 MB / 2.34 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0004814/7.111, allocations: 33.27 kB / 2.34 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001006/7.112, allocations: 0.7289 MB / 2.341 GB, free: 103 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007018/7.113, allocations: 314.4 kB / 2.341 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/7.113, allocations: 0 / 2.341 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001306/7.113, allocations: 365.3 kB / 2.341 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/7.115, allocations: 0.5496 MB / 2.342 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001895/7.117, allocations: 1.009 MB / 2.343 GB, free: 102 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00325/7.12, allocations: 0.715 MB / 2.344 GB, free: 101.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.293e-05/7.12, allocations: 3.625 kB / 2.344 GB, free: 101.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.00709/7.127, allocations: 1.729 MB / 2.345 GB, free: 101.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009716/7.128, allocations: 4.097 MB / 2.349 GB, free: 97.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.364e-05/7.128, allocations: 14.97 kB / 2.349 GB, free: 97.42 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.845e-05/7.128, allocations: 15.19 kB / 2.349 GB, free: 97.42 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/7.133, allocations: 427 kB / 2.35 GB, free: 97.42 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.784e-05/7.133, allocations: 25.14 kB / 2.35 GB, free: 97.42 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007367/7.14, allocations: 348 kB / 2.35 GB, free: 97.35 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000809/7.141, allocations: 77.95 kB / 2.35 GB, free: 97.35 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/7.141, allocations: 6.656 kB / 2.35 GB, free: 97.35 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009171/7.15, allocations: 1.441 MB / 2.352 GB, free: 97.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.2e-05/7.15, allocations: 12.34 kB / 2.352 GB, free: 97.32 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.683e-05/7.15, allocations: 23.56 kB / 2.352 GB, free: 97.32 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005733/7.156, allocations: 424.6 kB / 2.352 GB, free: 97.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.315e-05/7.156, allocations: 22.95 kB / 2.352 GB, free: 97.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005169/7.161, allocations: 296.3 kB / 2.352 GB, free: 97.27 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004713/7.162, allocations: 76.89 kB / 2.352 GB, free: 97.27 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.TSouEnt.T_start,TSouEnt.T_start,$PRE.TSouEnt.count,TSouEnt.count,$PRE.TLoaSet.T_start,TLoaSet.T_start,$PRE.TLoaSet.count,TLoaSet.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0005819/7.162, allocations: 159.3 kB / 2.353 GB, free: 97.15 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008191/7.163, allocations: 222.9 kB / 2.353 GB, free: 97.04 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005871/7.169, allocations: 1.561 MB / 2.354 GB, free: 96.95 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.082e-05/7.169, allocations: 16.02 kB / 2.354 GB, free: 96.95 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/7.169, allocations: 0 / 2.354 GB, free: 96.95 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00391/7.173, allocations: 1.192 MB / 2.356 GB, free: 96.77 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01592/7.189, allocations: 3.371 MB / 2.359 GB, free: 96.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/7.189, allocations: 0 / 2.359 GB, free: 96.39 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004216/7.194, allocations: 281.1 kB / 2.359 GB, free: 96.39 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.69e-05/7.194, allocations: 6.5 kB / 2.359 GB, free: 96.39 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002675/7.194, allocations: 20.77 kB / 2.359 GB, free: 96.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.847e-06/7.194, allocations: 3.469 kB / 2.359 GB, free: 96.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/7.194, allocations: 7.094 kB / 2.359 GB, free: 96.39 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006703/7.201, allocations: 2.302 MB / 2.361 GB, free: 96 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009211/7.21, allocations: 3.574 MB / 2.365 GB, free: 95.24 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002106/7.212, allocations: 0.4946 MB / 2.365 GB, free: 95.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001045/7.213, allocations: 18.12 kB / 2.365 GB, free: 95.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004304/7.217, allocations: 213.4 kB / 2.366 GB, free: 95.01 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006209/7.218, allocations: 110.7 kB / 2.366 GB, free: 95 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002473/7.218, allocations: 50.27 kB / 2.366 GB, free: 95 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.003788/7.222, allocations: 1.336 MB / 2.367 GB, free: 94.86 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.01162/7.234, allocations: 1.805 MB / 2.369 GB, free: 94.63 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U) * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,uMod.T_start,uMod.count,pulse.T_start,pulse.count,TSouEnt.T_start,TSouEnt.count,TLoaSet.T_start,TLoaSet.count) * Number of discrete states: 4 (uMod.count,pulse.count,TSouEnt.count,TLoaSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * 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.00387/7.238, allocations: 1.478 MB / 2.37 GB, free: 94.28 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.006291/7.244, allocations: 2.279 MB / 2.372 GB, free: 94.17 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/7.244, allocations: 0 / 2.372 GB, free: 94.17 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001818/7.246, allocations: 0.6608 MB / 2.373 GB, free: 94.17 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009191/7.255, allocations: 0.9074 MB / 2.374 GB, free: 94.15 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/7.268, allocations: 3.244 MB / 2.377 GB, free: 93.36 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003369/7.271, allocations: 1.917 MB / 2.379 GB, free: 92.62 MB / 0.8855 GB Notification: Performance of SimCode: time 3.387e-06/7.271, allocations: 0 / 2.379 GB, free: 92.62 MB / 0.8855 GB