Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.438/2.438, allocations: 284.8 MB / 292.1 MB, free: 10.77 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.001618/0.001618, allocations: 181.2 kB / 360.3 MB, free: 7.559 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.954/1.954, 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.001244/0.001243, allocations: 96 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2796/0.2809, allocations: 121.4 MB / 0.8502 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6278/0.9087, allocations: 115.2 MB / 0.9627 GB, free: 78.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.078/1.987, allocations: 434.7 MB / 1.387 GB, free: 134.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003684/1.987, allocations: 88.73 kB / 1.387 GB, free: 134.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.164/4.152, allocations: 0.5179 GB / 1.905 GB, free: 60.69 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/4.152, allocations: 8.5 kB / 1.905 GB, free: 60.68 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00316/4.155, allocations: 337.5 kB / 1.906 GB, free: 60.35 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006875/4.162, allocations: 1.648 MB / 1.907 GB, free: 58.68 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002855/4.162, allocations: 121.5 kB / 1.907 GB, free: 58.55 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003668/4.163, allocations: 64 kB / 1.907 GB, free: 58.49 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003544/4.166, allocations: 1.004 MB / 1.908 GB, free: 57.48 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003276/4.169, allocations: 1.133 MB / 1.909 GB, free: 56.26 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.692e-05/4.17, allocations: 7.938 kB / 1.909 GB, free: 56.25 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002078/4.17, allocations: 3.906 kB / 1.91 GB, free: 56.25 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.742e-05/4.17, allocations: 32 kB / 1.91 GB, free: 56.22 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01495/4.185, allocations: 7.132 MB / 1.916 GB, free: 48.63 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/4.186, allocations: 0.5651 MB / 1.917 GB, free: 48.06 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009068/4.187, allocations: 386.8 kB / 1.917 GB, free: 47.68 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007222/4.188, allocations: 0.8266 MB / 1.918 GB, free: 46.68 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/4.188, allocations: 51.16 kB / 1.918 GB, free: 46.62 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=63): time 4.338e-06/4.188, allocations: 0 / 1.918 GB, free: 46.62 MB / 0.9323 GB Notification: Performance of matching and sorting (n=63): time 0.002898/4.191, allocations: 0.8224 MB / 1.919 GB, free: 45.79 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/4.191, allocations: 115.4 kB / 1.919 GB, free: 45.65 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/4.194, allocations: 1.153 MB / 1.92 GB, free: 44.49 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0003614/4.194, allocations: 25.7 kB / 1.92 GB, free: 44.46 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004227/4.195, allocations: 0.5127 MB / 1.921 GB, free: 43.94 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003435/4.195, allocations: 216.8 kB / 1.921 GB, free: 43.72 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.858e-05/4.195, allocations: 0 / 1.921 GB, free: 43.72 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.399e-05/4.195, allocations: 334 kB / 1.921 GB, free: 43.39 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009538/4.196, allocations: 353.9 kB / 1.922 GB, free: 43.05 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/4.197, allocations: 0.6049 MB / 1.922 GB, free: 42.33 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001471/4.199, allocations: 429.3 kB / 1.923 GB, free: 41.91 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/4.199, allocations: 0 / 1.923 GB, free: 41.91 MB / 0.9323 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003301/4.202, allocations: 1.037 MB / 1.924 GB, free: 40.87 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004468/4.203, allocations: 1.872 MB / 1.926 GB, free: 38.89 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/4.203, allocations: 7.984 kB / 1.926 GB, free: 38.88 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.379e-05/4.203, allocations: 12 kB / 1.926 GB, free: 38.87 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002627/4.205, allocations: 275.6 kB / 1.926 GB, free: 38.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.121e-05/4.205, allocations: 15.92 kB / 1.926 GB, free: 38.59 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003153/4.209, allocations: 215 kB / 1.926 GB, free: 38.38 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/4.209, allocations: 43.97 kB / 1.926 GB, free: 38.33 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/4.209, allocations: 6.812 kB / 1.926 GB, free: 38.33 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002957/4.212, allocations: 0.861 MB / 1.927 GB, free: 37.46 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/4.212, allocations: 4.625 kB / 1.927 GB, free: 37.46 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/4.212, allocations: 16 kB / 1.927 GB, free: 37.45 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002433/4.214, allocations: 271.6 kB / 1.927 GB, free: 37.18 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/4.215, allocations: 8 kB / 1.927 GB, free: 37.17 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/4.217, allocations: 191.1 kB / 1.927 GB, free: 36.98 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002204/4.218, allocations: 39.98 kB / 1.927 GB, free: 36.95 MB / 0.9323 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.0004275/4.218, allocations: 124.7 kB / 1.928 GB, free: 36.82 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005246/4.219, allocations: 142.2 kB / 1.928 GB, free: 36.68 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003477/4.222, allocations: 0.9897 MB / 1.929 GB, free: 35.67 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/4.222, allocations: 8 kB / 1.929 GB, free: 35.66 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/4.222, allocations: 3.906 kB / 1.929 GB, free: 35.66 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002179/4.224, allocations: 0.8384 MB / 1.929 GB, free: 34.79 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007194/4.232, allocations: 2.465 MB / 1.932 GB, free: 32.27 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/4.232, allocations: 4 kB / 1.932 GB, free: 32.26 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002023/4.234, allocations: 212 kB / 1.932 GB, free: 32.05 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.655e-05/4.234, allocations: 8 kB / 1.932 GB, free: 32.05 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/4.234, allocations: 11.98 kB / 1.932 GB, free: 32.04 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/4.234, allocations: 8 kB / 1.932 GB, free: 32.03 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/4.234, allocations: 3.938 kB / 1.932 GB, free: 32.02 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004253/4.238, allocations: 1.745 MB / 1.934 GB, free: 30.15 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005742/4.244, allocations: 2.715 MB / 1.936 GB, free: 27.31 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/4.245, allocations: 379 kB / 1.937 GB, free: 26.92 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004606/4.246, allocations: 15.84 kB / 1.937 GB, free: 26.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002592/4.249, allocations: 127.9 kB / 1.937 GB, free: 26.78 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000331/4.249, allocations: 76.3 kB / 1.937 GB, free: 26.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/4.249, allocations: 31.97 kB / 1.937 GB, free: 26.67 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.002058/4.251, allocations: 0.8717 MB / 1.938 GB, free: 25.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.006444/4.258, allocations: 1.057 MB / 1.939 GB, free: 24.74 MB / 0.9323 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.002108/4.26, allocations: 0.801 MB / 1.94 GB, free: 24 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003846/4.264, allocations: 1.407 MB / 1.941 GB, free: 22.58 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/4.264, allocations: 0 / 1.941 GB, free: 22.58 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001322/4.265, allocations: 475.8 kB / 1.942 GB, free: 22.12 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00556/4.271, allocations: 0.5543 MB / 1.942 GB, free: 21.57 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007378/4.278, allocations: 2.075 MB / 1.944 GB, free: 19.43 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/4.28, allocations: 1.453 MB / 1.946 GB, free: 17.95 MB / 0.9323 GB Notification: Performance of SimCode: time 1.643e-06/4.28, allocations: 0 / 1.946 GB, free: 17.95 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)