Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.423/2.423, allocations: 284.8 MB / 292.1 MB, free: 10.84 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001657/0.001657, allocations: 185.2 kB / 360.3 MB, free: 7.555 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.961/1.961, allocations: 205.1 MB / 0.6187 GB, free: 13.23 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001184/0.001183, allocations: 88.17 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2712/0.2724, allocations: 121.4 MB / 0.8502 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6344/0.9069, allocations: 115.2 MB / 0.9627 GB, free: 78.56 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.138/2.045, allocations: 473.7 MB / 1.425 GB, free: 91.71 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/2.045, allocations: 90.27 kB / 1.425 GB, free: 91.67 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: 384 * Number of variables: 384 Notification: Performance of Generate backend data structure: time 4.981/7.026, allocations: 1.005 GB / 2.431 GB, free: 129.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/7.026, allocations: 7.344 kB / 2.431 GB, free: 129.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006946/7.033, allocations: 0.709 MB / 2.431 GB, free: 129.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01265/7.046, allocations: 3.078 MB / 2.434 GB, free: 128.7 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001968/7.048, allocations: 286.8 kB / 2.435 GB, free: 128.6 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009611/7.049, allocations: 118.4 kB / 2.435 GB, free: 128.6 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008752/7.057, allocations: 1.445 MB / 2.436 GB, free: 128.6 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009129/7.067, allocations: 1.671 MB / 2.438 GB, free: 128.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.166e-05/7.067, allocations: 7.578 kB / 2.438 GB, free: 128.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004451/7.067, allocations: 3.875 kB / 2.438 GB, free: 128.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/7.067, allocations: 39.72 kB / 2.438 GB, free: 128.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02924/7.097, allocations: 9.662 MB / 2.447 GB, free: 123.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/7.099, allocations: 0.7309 MB / 2.448 GB, free: 123.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/7.1, allocations: 0.583 MB / 2.448 GB, free: 123.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01324/7.114, allocations: 4.042 MB / 2.452 GB, free: 122.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003193/7.117, allocations: 0.7011 MB / 2.453 GB, free: 122 MB / 0.948 GB Notification: Performance of pre-optimization done (n=92): time 9.989e-06/7.117, allocations: 0 / 2.453 GB, free: 122 MB / 0.948 GB Notification: Performance of matching and sorting (n=92): time 0.006984/7.124, allocations: 1.29 MB / 2.454 GB, free: 121.8 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/7.124, allocations: 227.8 kB / 2.455 GB, free: 121.5 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004943/7.129, allocations: 1.838 MB / 2.456 GB, free: 121.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005901/7.13, allocations: 35.45 kB / 2.456 GB, free: 121.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001029/7.131, allocations: 0.7513 MB / 2.457 GB, free: 120.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007324/7.132, allocations: 298.5 kB / 2.457 GB, free: 120.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/7.132, allocations: 7.688 kB / 2.457 GB, free: 120.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.000128/7.132, allocations: 364.4 kB / 2.458 GB, free: 120.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/7.134, allocations: 0.6055 MB / 2.458 GB, free: 120.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002404/7.136, allocations: 1.13 MB / 2.459 GB, free: 119.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004066/7.14, allocations: 0.8343 MB / 2.46 GB, free: 119.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.548e-05/7.14, allocations: 4.5 kB / 2.46 GB, free: 119.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.008225/7.149, allocations: 1.964 MB / 2.462 GB, free: 119.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001163/7.15, allocations: 5.039 MB / 2.467 GB, free: 114.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.543e-05/7.15, allocations: 12.91 kB / 2.467 GB, free: 114.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.143e-05/7.15, allocations: 26.88 kB / 2.467 GB, free: 114.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003283/7.153, allocations: 358.1 kB / 2.468 GB, free: 114.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.803e-05/7.153, allocations: 25.69 kB / 2.468 GB, free: 114.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005493/7.159, allocations: 437.1 kB / 2.468 GB, free: 114.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006075/7.16, allocations: 95.72 kB / 2.468 GB, free: 114.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/7.16, allocations: 8.438 kB / 2.468 GB, free: 114.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007719/7.167, allocations: 1.677 MB / 2.47 GB, free: 114.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.559e-05/7.167, allocations: 14.12 kB / 2.47 GB, free: 114.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.515e-05/7.168, allocations: 22.53 kB / 2.47 GB, free: 114.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003242/7.171, allocations: 360.8 kB / 2.47 GB, free: 114.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.619e-05/7.171, allocations: 27.02 kB / 2.47 GB, free: 114.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005497/7.176, allocations: 389.8 kB / 2.47 GB, free: 114.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006593/7.177, allocations: 90.27 kB / 2.471 GB, free: 114.1 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,$PRE.uMod.booPul.y,uMod.booPul.y,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.TSouEnt.booPul.y,TSouEnt.booPul.y,$PRE.TLoaSet.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 153 * Array equations: 2 * Algorithm blocks: 4 * 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.0006454/7.178, allocations: 168.8 kB / 2.471 GB, free: 114 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008392/7.179, allocations: 227.8 kB / 2.471 GB, free: 113.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/7.184, allocations: 1.559 MB / 2.472 GB, free: 113.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.223e-05/7.184, allocations: 14.12 kB / 2.472 GB, free: 113.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/7.184, allocations: 0 / 2.472 GB, free: 113.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003418/7.188, allocations: 1.194 MB / 2.474 GB, free: 113.6 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009844/7.198, allocations: 3.399 MB / 2.477 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/7.198, allocations: 1.125 kB / 2.477 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002535/7.2, allocations: 238.9 kB / 2.477 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.108e-05/7.2, allocations: 3.094 kB / 2.477 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002199/7.2, allocations: 17.64 kB / 2.477 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/7.2, allocations: 11.92 kB / 2.477 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/7.2, allocations: 2.734 kB / 2.477 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006435/7.207, allocations: 2.29 MB / 2.479 GB, free: 112.9 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009208/7.216, allocations: 3.542 MB / 2.483 GB, free: 112.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002194/7.218, allocations: 0.5098 MB / 2.483 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/7.22, allocations: 3.5 kB / 2.483 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003847/7.224, allocations: 159.3 kB / 2.484 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003938/7.224, allocations: 70.92 kB / 2.484 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002425/7.224, allocations: 55.53 kB / 2.484 GB, free: 111.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.003527/7.228, allocations: 1.375 MB / 2.485 GB, free: 111.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01051/7.238, allocations: 1.907 MB / 2.487 GB, free: 111.5 MB / 0.948 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 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,uMod.booPul.y,pulse.booPul.y,TSouEnt.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 4 * 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.003929/7.242, allocations: 1.479 MB / 2.488 GB, free: 111.1 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00722/7.25, allocations: 2.694 MB / 2.491 GB, free: 110.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/7.25, allocations: 0 / 2.491 GB, free: 110.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001624/7.251, allocations: 0.6191 MB / 2.492 GB, free: 110.8 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009028/7.26, allocations: 0.9288 MB / 2.492 GB, free: 110.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/7.275, allocations: 3.297 MB / 2.496 GB, free: 109.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006692/7.282, allocations: 1.934 MB / 2.498 GB, free: 109.2 MB / 0.948 GB Notification: Performance of SimCode: time 3.036e-06/7.282, allocations: 0 / 2.498 GB, free: 109.2 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=2500 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)