Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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.3-maint.7.0.x/package.mo): time 1.217/1.217, allocations: 249.4 MB / 256.7 MB, free: 7.09 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.0009781/0.0009781, allocations: 181.1 kB / 316 MB, free: 3.547 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.115/1.115, allocations: 205.2 MB / 0.5667 GB, free: 15.73 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000821/0.000821, allocations: 95.25 kB / 0.671 GB, free: 4.848 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3569/0.3577, allocations: 112.4 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.5234, allocations: 106.3 MB / 0.8847 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9994/1.523, allocations: 409.9 MB / 1.285 GB, free: 325.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/1.523, allocations: 89.11 kB / 1.285 GB, free: 325.6 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 1.495/3.018, allocations: 0.6079 GB / 1.893 GB, free: 48.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/3.018, allocations: 15.98 kB / 1.893 GB, free: 48.78 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003599/3.022, allocations: 0.6768 MB / 1.894 GB, free: 48.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/3.025, allocations: 1.669 MB / 1.895 GB, free: 46.43 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/3.025, allocations: 109.4 kB / 1.895 GB, free: 46.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/3.025, allocations: 67.94 kB / 1.895 GB, free: 46.24 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001444/3.027, allocations: 0.9489 MB / 1.896 GB, free: 45.29 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/3.028, allocations: 0.9909 MB / 1.897 GB, free: 44.26 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.519e-05/3.028, allocations: 11.84 kB / 1.897 GB, free: 44.25 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.658e-05/3.028, allocations: 4 kB / 1.897 GB, free: 44.25 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/3.028, allocations: 28 kB / 1.897 GB, free: 44.22 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006037/3.034, allocations: 5.668 MB / 1.903 GB, free: 38.27 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009768/3.035, allocations: 0.6626 MB / 1.904 GB, free: 37.61 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005611/3.036, allocations: 462.5 kB / 1.904 GB, free: 37.16 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005946/3.037, allocations: 1.239 MB / 1.905 GB, free: 35.64 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005982/3.037, allocations: 0.5183 MB / 1.906 GB, free: 35.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=67): time 2.715e-06/3.037, allocations: 0 / 1.906 GB, free: 35.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=67): time 0.001705/3.039, allocations: 0.9433 MB / 1.907 GB, free: 34.15 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/3.039, allocations: 111.4 kB / 1.907 GB, free: 34.02 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/3.04, allocations: 1.04 MB / 1.908 GB, free: 32.97 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.927e-05/3.04, allocations: 33.69 kB / 1.908 GB, free: 32.93 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/3.04, allocations: 449.5 kB / 1.908 GB, free: 32.48 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/3.041, allocations: 220.7 kB / 1.908 GB, free: 32.27 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/3.041, allocations: 0 / 1.908 GB, free: 32.27 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.967e-05/3.041, allocations: 338 kB / 1.909 GB, free: 31.93 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004551/3.041, allocations: 357.4 kB / 1.909 GB, free: 31.58 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005632/3.042, allocations: 0.61 MB / 1.91 GB, free: 30.86 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009081/3.043, allocations: 453.6 kB / 1.91 GB, free: 30.42 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/3.043, allocations: 0 / 1.91 GB, free: 30.42 MB / 0.8698 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001696/3.044, allocations: 1.041 MB / 1.911 GB, free: 29.38 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001867/3.045, allocations: 1.166 MB / 1.912 GB, free: 28.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/3.045, allocations: 7.812 kB / 1.912 GB, free: 28.14 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/3.045, allocations: 8 kB / 1.912 GB, free: 28.13 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/3.046, allocations: 295.6 kB / 1.913 GB, free: 27.84 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/3.046, allocations: 7.984 kB / 1.913 GB, free: 27.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/3.047, allocations: 219.1 kB / 1.913 GB, free: 27.62 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/3.048, allocations: 47.97 kB / 1.913 GB, free: 27.57 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.39e-06/3.048, allocations: 4 kB / 1.913 GB, free: 27.57 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001479/3.049, allocations: 0.8689 MB / 1.914 GB, free: 26.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/3.049, allocations: 4 kB / 1.914 GB, free: 26.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.693e-06/3.049, allocations: 7.984 kB / 1.914 GB, free: 26.69 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/3.05, allocations: 292 kB / 1.914 GB, free: 26.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/3.05, allocations: 4 kB / 1.914 GB, free: 26.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/3.052, allocations: 215.3 kB / 1.914 GB, free: 26.19 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.2e-05/3.052, allocations: 47.97 kB / 1.914 GB, free: 26.14 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * 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.0001968/3.052, allocations: 120.6 kB / 1.914 GB, free: 26.02 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/3.052, allocations: 142.2 kB / 1.914 GB, free: 25.88 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/3.054, allocations: 1.159 MB / 1.916 GB, free: 24.71 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/3.054, allocations: 8 kB / 1.916 GB, free: 24.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/3.054, allocations: 0 / 1.916 GB, free: 24.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001383/3.056, allocations: 0.9555 MB / 1.917 GB, free: 23.71 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00403/3.06, allocations: 3.022 MB / 1.92 GB, free: 20.57 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/3.06, allocations: 4 kB / 1.92 GB, free: 20.56 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/3.061, allocations: 255.8 kB / 1.92 GB, free: 20.31 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/3.061, allocations: 11.94 kB / 1.92 GB, free: 20.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.637e-05/3.061, allocations: 19.98 kB / 1.92 GB, free: 20.28 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/3.061, allocations: 11.44 kB / 1.92 GB, free: 20.27 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/3.061, allocations: 8 kB / 1.92 GB, free: 20.27 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002311/3.063, allocations: 2.095 MB / 1.922 GB, free: 17.96 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003091/3.066, allocations: 3.139 MB / 1.925 GB, free: 14.61 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000561/3.067, allocations: 467.9 kB / 1.925 GB, free: 14.11 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/3.067, allocations: 12 kB / 1.925 GB, free: 14.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/3.069, allocations: 179.7 kB / 1.926 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/3.069, allocations: 60.42 kB / 1.926 GB, free: 13.86 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.675e-05/3.069, allocations: 47.95 kB / 1.926 GB, free: 13.82 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0008479/3.07, allocations: 0.7935 MB / 1.926 GB, free: 13.02 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003234/3.073, allocations: 1.076 MB / 1.927 GB, free: 11.95 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.001083/3.074, allocations: 0.8189 MB / 1.928 GB, free: 11.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001663/3.076, allocations: 1.387 MB / 1.93 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/3.076, allocations: 1.5 kB / 1.93 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006791/3.076, allocations: 0.5025 MB / 1.93 GB, free: 9.293 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/3.079, allocations: 0.6191 MB / 1.931 GB, free: 8.691 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003309/3.082, allocations: 2.09 MB / 1.933 GB, free: 6.512 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/3.083, allocations: 1.445 MB / 1.934 GB, free: 5.039 MB / 0.8698 GB Notification: Performance of SimCode: time 7.51e-07/3.083, allocations: 0 / 1.934 GB, free: 5.039 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)