Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.162/2.162, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001087, allocations: 180.6 kB / 487 MB, free: 5.367 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 221.3 MB / 0.7819 GB, free: 1.395 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009257/0.0009257, allocations: 102.4 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5752/0.5762, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.8241, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.013/1.838, allocations: 473 MB / 1.667 GB, free: 15.43 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003287/1.838, allocations: 89.7 kB / 1.667 GB, free: 15.39 MB / 1.104 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 383 * Number of variables: 383 Notification: Performance of Generate backend data structure: time 3.757/5.595, allocations: 1.019 GB / 2.686 GB, free: 184.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/5.595, allocations: 10.72 kB / 2.686 GB, free: 184.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004303/5.6, allocations: 0.7987 MB / 2.687 GB, free: 184.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007618/5.607, allocations: 3.107 MB / 2.69 GB, free: 183.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007854/5.608, allocations: 285 kB / 2.69 GB, free: 183.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004508/5.608, allocations: 115.5 kB / 2.69 GB, free: 183.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002806/5.611, allocations: 1.455 MB / 2.692 GB, free: 183.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003043/5.614, allocations: 1.658 MB / 2.693 GB, free: 183.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.131e-05/5.614, allocations: 0.6562 kB / 2.693 GB, free: 183.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/5.615, allocations: 7.703 kB / 2.693 GB, free: 183.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.839e-05/5.615, allocations: 68.17 kB / 2.693 GB, free: 183.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01495/5.63, allocations: 9.725 MB / 2.703 GB, free: 179.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/5.631, allocations: 0.7249 MB / 2.704 GB, free: 179 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008312/5.631, allocations: 0.6048 MB / 2.704 GB, free: 179 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006209/5.638, allocations: 4.085 MB / 2.708 GB, free: 177.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/5.639, allocations: 0.7167 MB / 2.709 GB, free: 177.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=93): time 2.325e-06/5.639, allocations: 0 / 2.709 GB, free: 177.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=93): time 0.002993/5.642, allocations: 1.3 MB / 2.71 GB, free: 177 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/5.642, allocations: 165.3 kB / 2.71 GB, free: 176.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/5.644, allocations: 1.835 MB / 2.712 GB, free: 176.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001458/5.645, allocations: 39.67 kB / 2.712 GB, free: 176.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006477/5.645, allocations: 0.7407 MB / 2.713 GB, free: 176.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/5.646, allocations: 306.3 kB / 2.713 GB, free: 176 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/5.646, allocations: 7.875 kB / 2.713 GB, free: 176 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.324e-05/5.646, allocations: 358.4 kB / 2.714 GB, free: 175.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009638/5.647, allocations: 0.6087 MB / 2.714 GB, free: 175.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/5.648, allocations: 1.096 MB / 2.715 GB, free: 175.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/5.65, allocations: 0.8184 MB / 2.716 GB, free: 175.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/5.65, allocations: 3.469 kB / 2.716 GB, free: 175.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004293/5.654, allocations: 1.949 MB / 2.718 GB, free: 175 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.00108/5.656, allocations: 5.016 MB / 2.723 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.092e-05/5.656, allocations: 12.75 kB / 2.723 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.602e-05/5.656, allocations: 21.59 kB / 2.723 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/5.657, allocations: 379.1 kB / 2.723 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/5.657, allocations: 28.83 kB / 2.723 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003311/5.661, allocations: 444.7 kB / 2.724 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002179/5.661, allocations: 90.08 kB / 2.724 GB, free: 169.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/5.661, allocations: 3.969 kB / 2.724 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00374/5.665, allocations: 1.658 MB / 2.725 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/5.665, allocations: 15.5 kB / 2.725 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/5.665, allocations: 23.62 kB / 2.725 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/5.666, allocations: 371 kB / 2.726 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/5.666, allocations: 25.53 kB / 2.726 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003644/5.67, allocations: 393.2 kB / 2.726 GB, free: 169.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/5.67, allocations: 93.25 kB / 2.726 GB, free: 169.5 MB / 1.151 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 (159): * Single equations (assignments): 154 * Array equations: 1 * Algorithm blocks: 4 * 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.0005388/5.671, allocations: 157.8 kB / 2.726 GB, free: 169.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000644/5.672, allocations: 229.4 kB / 2.727 GB, free: 169.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/5.675, allocations: 1.573 MB / 2.728 GB, free: 169.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/5.675, allocations: 10.38 kB / 2.728 GB, free: 169.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/5.675, allocations: 0 / 2.728 GB, free: 169.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001863/5.677, allocations: 1.208 MB / 2.729 GB, free: 169 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006444/5.683, allocations: 3.425 MB / 2.733 GB, free: 168.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.036e-06/5.684, allocations: 3.812 kB / 2.733 GB, free: 168.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/5.685, allocations: 241.6 kB / 2.733 GB, free: 168.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/5.685, allocations: 9.25 kB / 2.733 GB, free: 168.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.885e-05/5.685, allocations: 17.16 kB / 2.733 GB, free: 168.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/5.685, allocations: 9.219 kB / 2.733 GB, free: 168.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/5.685, allocations: 9.438 kB / 2.733 GB, free: 168.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00378/5.689, allocations: 2.306 MB / 2.735 GB, free: 168.2 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004935/5.694, allocations: 3.565 MB / 2.739 GB, free: 167.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/5.695, allocations: 0.5077 MB / 2.739 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000398/5.696, allocations: 7.562 kB / 2.739 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/5.697, allocations: 161.4 kB / 2.739 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/5.698, allocations: 72.34 kB / 2.739 GB, free: 167.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/5.698, allocations: 48.73 kB / 2.74 GB, free: 167.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.002261/5.7, allocations: 1.372 MB / 2.741 GB, free: 167.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.007963/5.708, allocations: 1.823 MB / 2.743 GB, free: 166.8 MB / 1.151 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.s[1],pum.filter.s[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 (103): * Single equations (assignments): 93 * 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.002583/5.711, allocations: 1.414 MB / 2.744 GB, free: 166.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00438/5.715, allocations: 2.619 MB / 2.747 GB, free: 166.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/5.715, allocations: 3.469 kB / 2.747 GB, free: 166.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009204/5.716, allocations: 0.6226 MB / 2.747 GB, free: 166.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005476/5.721, allocations: 0.9172 MB / 2.748 GB, free: 166.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007924/5.729, allocations: 3.308 MB / 2.751 GB, free: 165.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/5.731, allocations: 1.933 MB / 2.753 GB, free: 164.6 MB / 1.151 GB Notification: Performance of SimCode: time 2.685e-06/5.731, allocations: 0 / 2.753 GB, free: 164.6 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=2500 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)