Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.929/1.929, allocations: 387.2 MB / 394.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 174.6 kB / 487 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 221.3 MB / 0.7819 GB, free: 6.73 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 102.5 kB / 0.9213 GB, free: 43.66 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3349/0.336, allocations: 148.5 MB / 1.066 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7779/1.114, allocations: 142.3 MB / 1.205 GB, free: 72.7 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9917/2.106, allocations: 428.9 MB / 1.624 GB, free: 180 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/2.106, allocations: 86.95 kB / 1.624 GB, free: 180 MB / 1.01 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.883/3.989, allocations: 0.6396 GB / 2.264 GB, free: 133.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/3.989, allocations: 16 kB / 2.264 GB, free: 133.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003569/3.992, allocations: 0.6808 MB / 2.265 GB, free: 132.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003289/3.996, allocations: 1.675 MB / 2.266 GB, free: 130.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/3.996, allocations: 113.4 kB / 2.266 GB, free: 130.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/3.996, allocations: 60 kB / 2.266 GB, free: 130.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001555/3.998, allocations: 0.9498 MB / 2.267 GB, free: 129.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/3.999, allocations: 0.9987 MB / 2.268 GB, free: 128.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/3.999, allocations: 7.875 kB / 2.268 GB, free: 128.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.252e-05/3.999, allocations: 11.91 kB / 2.268 GB, free: 128.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.741e-05/3.999, allocations: 24 kB / 2.268 GB, free: 128.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007131/4.006, allocations: 5.681 MB / 2.274 GB, free: 122.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/4.007, allocations: 0.6533 MB / 2.274 GB, free: 122 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005876/4.008, allocations: 460.8 kB / 2.275 GB, free: 121.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006834/4.009, allocations: 1.239 MB / 2.276 GB, free: 120 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006872/4.009, allocations: 0.5306 MB / 2.277 GB, free: 119.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=67): time 3.246e-06/4.009, allocations: 4 kB / 2.277 GB, free: 119.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=67): time 0.002019/4.011, allocations: 0.9432 MB / 2.278 GB, free: 118.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/4.012, allocations: 115.5 kB / 2.278 GB, free: 118.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/4.013, allocations: 1.048 MB / 2.279 GB, free: 117.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.262e-05/4.013, allocations: 29.7 kB / 2.279 GB, free: 117.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/4.013, allocations: 447.1 kB / 2.279 GB, free: 116.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/4.013, allocations: 224.7 kB / 2.279 GB, free: 116.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/4.013, allocations: 0 / 2.279 GB, free: 116.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001024/4.014, allocations: 330 kB / 2.28 GB, free: 116.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000489/4.014, allocations: 365.4 kB / 2.28 GB, free: 115.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006182/4.015, allocations: 0.5958 MB / 2.281 GB, free: 115.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009824/4.016, allocations: 449.6 kB / 2.281 GB, free: 114.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/4.016, allocations: 4 kB / 2.281 GB, free: 114.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001915/4.018, allocations: 1.037 MB / 2.282 GB, free: 113.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002734/4.018, allocations: 1.161 MB / 2.283 GB, free: 112.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/4.018, allocations: 3.984 kB / 2.283 GB, free: 112.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.67e-05/4.018, allocations: 11.94 kB / 2.283 GB, free: 112.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/4.019, allocations: 291.6 kB / 2.283 GB, free: 112.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/4.019, allocations: 8.625 kB / 2.283 GB, free: 112.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/4.021, allocations: 219.1 kB / 2.284 GB, free: 112 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/4.021, allocations: 51.97 kB / 2.284 GB, free: 111.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/4.021, allocations: 4 kB / 2.284 GB, free: 111.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001653/4.023, allocations: 0.8651 MB / 2.285 GB, free: 111.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/4.023, allocations: 4 kB / 2.285 GB, free: 111.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/4.023, allocations: 13.17 kB / 2.285 GB, free: 111 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/4.024, allocations: 283.8 kB / 2.285 GB, free: 110.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/4.024, allocations: 11.94 kB / 2.285 GB, free: 110.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/4.026, allocations: 207.3 kB / 2.285 GB, free: 110.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/4.026, allocations: 51.97 kB / 2.285 GB, free: 110.5 MB / 1.151 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.0002598/4.027, allocations: 124.7 kB / 2.285 GB, free: 110.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/4.027, allocations: 138.3 kB / 2.285 GB, free: 110.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/4.029, allocations: 1.167 MB / 2.287 GB, free: 109.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/4.029, allocations: 11.91 kB / 2.287 GB, free: 109 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/4.029, allocations: 7.938 kB / 2.287 GB, free: 109 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001423/4.031, allocations: 0.9477 MB / 2.287 GB, free: 108.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004493/4.035, allocations: 3.031 MB / 2.29 GB, free: 104.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/4.035, allocations: 8.094 kB / 2.29 GB, free: 104.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/4.036, allocations: 251.7 kB / 2.291 GB, free: 104.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.189e-05/4.036, allocations: 9 kB / 2.291 GB, free: 104.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/4.036, allocations: 19.98 kB / 2.291 GB, free: 104.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.263e-06/4.036, allocations: 8 kB / 2.291 GB, free: 104.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/4.036, allocations: 15.91 kB / 2.291 GB, free: 104.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002598/4.039, allocations: 2.096 MB / 2.293 GB, free: 102.3 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003558/4.043, allocations: 3.14 MB / 2.296 GB, free: 98.95 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009195/4.044, allocations: 468 kB / 2.296 GB, free: 98.45 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002325/4.044, allocations: 4.875 kB / 2.296 GB, free: 98.45 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/4.045, allocations: 179.7 kB / 2.296 GB, free: 98.27 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/4.045, allocations: 72.31 kB / 2.297 GB, free: 98.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/4.046, allocations: 47.97 kB / 2.297 GB, free: 98.15 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001271/4.047, allocations: 0.8014 MB / 2.297 GB, free: 97.35 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004198/4.051, allocations: 1.072 MB / 2.298 GB, free: 96.27 MB / 1.151 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.001656/4.053, allocations: 0.8111 MB / 2.299 GB, free: 95.53 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002396/4.055, allocations: 1.394 MB / 2.301 GB, free: 94.12 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/4.055, allocations: 1.5 kB / 2.301 GB, free: 94.12 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008052/4.056, allocations: 0.5025 MB / 2.301 GB, free: 93.62 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00354/4.06, allocations: 0.6106 MB / 2.302 GB, free: 93.02 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00512/4.065, allocations: 2.102 MB / 2.304 GB, free: 90.84 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001147/4.066, allocations: 1.451 MB / 2.305 GB, free: 89.35 MB / 1.151 GB Notification: Performance of SimCode: time 1.673e-06/4.066, allocations: 3.938 kB / 2.305 GB, free: 89.35 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)