Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.686/1.686, allocations: 289.8 MB / 297.1 MB, free: 8.953 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.001418/0.001418, allocations: 173.3 kB / 366.3 MB, free: 11.33 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.586/1.586, allocations: 205.1 MB / 0.6256 GB, free: 11.37 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009073/0.0009073, allocations: 91.27 kB / 0.7396 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.5457/0.5466, allocations: 122.4 MB / 0.8591 GB, free: 148 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.7755, allocations: 116.3 MB / 0.9726 GB, free: 31.63 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9974/1.773, allocations: 436.1 MB / 1.399 GB, free: 11.93 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003907/1.773, allocations: 86.45 kB / 1.399 GB, free: 11.88 MB / 0.9323 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.06/3.833, allocations: 0.5178 GB / 1.916 GB, free: 217 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/3.833, allocations: 11.25 kB / 1.916 GB, free: 217 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002046/3.835, allocations: 340.3 kB / 1.917 GB, free: 216.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004858/3.84, allocations: 1.65 MB / 1.918 GB, free: 216.6 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002631/3.84, allocations: 116.5 kB / 1.919 GB, free: 216.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003957/3.841, allocations: 67 kB / 1.919 GB, free: 216.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002481/3.843, allocations: 1.001 MB / 1.92 GB, free: 216.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/3.846, allocations: 1.133 MB / 1.921 GB, free: 216.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.85e-05/3.846, allocations: 6.75 kB / 1.921 GB, free: 216.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001765/3.846, allocations: 2.969 kB / 1.921 GB, free: 216.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.453e-05/3.846, allocations: 32.27 kB / 1.921 GB, free: 216.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01122/3.857, allocations: 7.108 MB / 1.928 GB, free: 212.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/3.859, allocations: 0.5752 MB / 1.928 GB, free: 212.2 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006041/3.859, allocations: 381.9 kB / 1.929 GB, free: 212.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005398/3.86, allocations: 0.8266 MB / 1.929 GB, free: 211.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/3.86, allocations: 42.58 kB / 1.929 GB, free: 211.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=63): time 2.825e-06/3.86, allocations: 0 / 1.929 GB, free: 211.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=63): time 0.002094/3.862, allocations: 0.8328 MB / 1.93 GB, free: 211.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/3.862, allocations: 110.9 kB / 1.93 GB, free: 211 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002416/3.864, allocations: 1.153 MB / 1.931 GB, free: 210.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001369/3.865, allocations: 29.53 kB / 1.931 GB, free: 210.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005331/3.865, allocations: 0.508 MB / 1.932 GB, free: 210.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003291/3.866, allocations: 214.8 kB / 1.932 GB, free: 210.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.925e-05/3.866, allocations: 0 / 1.932 GB, free: 210.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.465e-05/3.866, allocations: 340.3 kB / 1.933 GB, free: 210 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005618/3.866, allocations: 353.8 kB / 1.933 GB, free: 209.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007181/3.867, allocations: 0.6078 MB / 1.933 GB, free: 209.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009878/3.868, allocations: 424.3 kB / 1.934 GB, free: 209.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/3.868, allocations: 0 / 1.934 GB, free: 209.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002229/3.87, allocations: 1.039 MB / 1.935 GB, free: 208.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004217/3.871, allocations: 1.874 MB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/3.871, allocations: 3.875 kB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/3.871, allocations: 10.91 kB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/3.872, allocations: 281.3 kB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.265e-05/3.872, allocations: 15.16 kB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/3.874, allocations: 214.3 kB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/3.874, allocations: 36.06 kB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/3.874, allocations: 5.281 kB / 1.937 GB, free: 206.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00175/3.876, allocations: 0.8634 MB / 1.938 GB, free: 206.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/3.876, allocations: 3.156 kB / 1.938 GB, free: 206.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/3.876, allocations: 15.41 kB / 1.938 GB, free: 206.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/3.877, allocations: 279.7 kB / 1.938 GB, free: 206.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/3.877, allocations: 10.94 kB / 1.938 GB, free: 206.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/3.879, allocations: 182.7 kB / 1.939 GB, free: 206.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/3.879, allocations: 42.2 kB / 1.939 GB, free: 206.5 MB / 0.948 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.0002979/3.879, allocations: 125.8 kB / 1.939 GB, free: 206.4 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003732/3.88, allocations: 149.2 kB / 1.939 GB, free: 206.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/3.882, allocations: 0.9856 MB / 1.94 GB, free: 205.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/3.882, allocations: 7.266 kB / 1.94 GB, free: 205.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/3.882, allocations: 7.172 kB / 1.94 GB, free: 205.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001362/3.883, allocations: 0.8376 MB / 1.941 GB, free: 205.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005516/3.889, allocations: 2.465 MB / 1.943 GB, free: 204.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/3.889, allocations: 0 / 1.943 GB, free: 204.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/3.89, allocations: 219.3 kB / 1.943 GB, free: 204.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.815e-05/3.89, allocations: 3.844 kB / 1.943 GB, free: 204.3 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.782e-05/3.89, allocations: 11.25 kB / 1.943 GB, free: 204.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-05/3.89, allocations: 10.88 kB / 1.943 GB, free: 204.3 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/3.89, allocations: 3.219 kB / 1.943 GB, free: 204.3 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003535/3.894, allocations: 1.74 MB / 1.945 GB, free: 203.3 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003745/3.897, allocations: 2.724 MB / 1.948 GB, free: 201.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008618/3.898, allocations: 376.9 kB / 1.948 GB, free: 201.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004323/3.899, allocations: 4.438 kB / 1.948 GB, free: 201.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/3.9, allocations: 131.5 kB / 1.948 GB, free: 201.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/3.901, allocations: 69 kB / 1.948 GB, free: 201.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/3.901, allocations: 42.22 kB / 1.948 GB, free: 201.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.002034/3.903, allocations: 0.8691 MB / 1.949 GB, free: 200.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005422/3.908, allocations: 1.051 MB / 1.95 GB, free: 200.5 MB / 0.948 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.001904/3.91, allocations: 0.782 MB / 1.951 GB, free: 200.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002737/3.913, allocations: 1.406 MB / 1.952 GB, free: 199.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/3.913, allocations: 3.844 kB / 1.952 GB, free: 199.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009715/3.914, allocations: 475.2 kB / 1.953 GB, free: 199.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003457/3.917, allocations: 0.5534 MB / 1.953 GB, free: 199.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006197/3.924, allocations: 2.078 MB / 1.955 GB, free: 198.6 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00209/3.926, allocations: 1.46 MB / 1.957 GB, free: 197.8 MB / 0.948 GB Notification: Performance of SimCode: time 7.71e-07/3.926, allocations: 0 / 1.957 GB, free: 197.8 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)