Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") [: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 1.6.0+build.1/package.mo): time 0.4957/0.4957, allocations: 94.74 MB / 102 MB, free: 10.35 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001287/0.001287, allocations: 183 kB / 125.3 MB, free: 11.98 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.311/1.311, allocations: 170.5 MB / 319 MB, free: 9.344 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001676/0.001676, allocations: 108.2 kB / 381 MB, free: 18.21 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.623e-06/6.653e-06, allocations: 0 / 448.6 MB, free: 2.121 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1328, allocations: 61.52 MB / 0.4981 GB, free: 4.512 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.139/1.272, allocations: 421.2 MB / 0.9095 GB, free: 189.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/1.272, allocations: 86.55 kB / 0.9096 GB, free: 189.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.429/2.702, allocations: 455.1 MB / 1.354 GB, free: 65.88 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001407/2.702, allocations: 50.56 kB / 1.354 GB, free: 65.88 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003493/2.705, allocations: 1.862 MB / 1.356 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/2.705, allocations: 9.625 kB / 1.356 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007956/2.706, allocations: 230 kB / 1.356 GB, free: 65.02 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002959/2.709, allocations: 1.754 MB / 1.358 GB, free: 64.68 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/2.709, allocations: 107.3 kB / 1.358 GB, free: 64.62 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/2.709, allocations: 63.75 kB / 1.358 GB, free: 64.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001231/2.711, allocations: 0.7851 MB / 1.359 GB, free: 64.61 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/2.712, allocations: 1.008 MB / 1.36 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/2.712, allocations: 5.156 kB / 1.36 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.569e-05/2.712, allocations: 10.05 kB / 1.36 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/2.712, allocations: 25.88 kB / 1.36 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005936/2.718, allocations: 6.123 MB / 1.366 GB, free: 60.84 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008795/2.719, allocations: 0.5672 MB / 1.366 GB, free: 60.81 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/2.719, allocations: 315.3 kB / 1.367 GB, free: 60.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005726/2.72, allocations: 1.081 MB / 1.368 GB, free: 59.58 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005122/2.72, allocations: 427.8 kB / 1.368 GB, free: 59.46 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=65): time 2.395e-06/2.721, allocations: 0 / 1.368 GB, free: 59.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=75): time 0.01179/2.732, allocations: 3.085 MB / 1.371 GB, free: 58.32 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.453e-05/2.732, allocations: 325.8 kB / 1.371 GB, free: 57.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/2.734, allocations: 1.068 MB / 1.372 GB, free: 57.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.421e-05/2.734, allocations: 29.36 kB / 1.372 GB, free: 57.76 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003615/2.734, allocations: 0.5208 MB / 1.373 GB, free: 57.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000191/2.734, allocations: 255 kB / 1.373 GB, free: 57.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/2.734, allocations: 0 / 1.373 GB, free: 57.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.784e-05/2.735, allocations: 345.2 kB / 1.374 GB, free: 56.99 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003839/2.735, allocations: 283.5 kB / 1.374 GB, free: 56.99 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005893/2.736, allocations: 0.6738 MB / 1.374 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/2.737, allocations: 0.5011 MB / 1.375 GB, free: 56.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/2.737, allocations: 3.375 kB / 1.375 GB, free: 56.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002063/2.739, allocations: 1.102 MB / 1.376 GB, free: 56.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000626/2.74, allocations: 3.31 MB / 1.379 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/2.74, allocations: 8.719 kB / 1.379 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/2.74, allocations: 16.19 kB / 1.379 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/2.741, allocations: 293.7 kB / 1.38 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/2.741, allocations: 18.88 kB / 1.38 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/2.742, allocations: 115.5 kB / 1.38 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/2.742, allocations: 52 kB / 1.38 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.292e-06/2.742, allocations: 6.156 kB / 1.38 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001443/2.743, allocations: 0.8298 MB / 1.381 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/2.743, allocations: 10.97 kB / 1.381 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/2.743, allocations: 15.22 kB / 1.381 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000966/2.744, allocations: 289.1 kB / 1.381 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/2.744, allocations: 22.72 kB / 1.381 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009332/2.745, allocations: 102.7 kB / 1.381 GB, free: 52.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.722e-05/2.745, allocations: 49.06 kB / 1.381 GB, free: 52.84 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,chi.on,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 124 * 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.0002076/2.746, allocations: 144.7 kB / 1.381 GB, free: 52.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/2.746, allocations: 157.3 kB / 1.381 GB, free: 52.65 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/2.748, allocations: 0.9176 MB / 1.382 GB, free: 52.57 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/2.748, allocations: 6.938 kB / 1.382 GB, free: 52.57 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/2.748, allocations: 0 / 1.382 GB, free: 52.57 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/2.748, allocations: 6.828 kB / 1.382 GB, free: 52.57 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004044/2.752, allocations: 2.812 MB / 1.385 GB, free: 51.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/2.752, allocations: 7.719 kB / 1.385 GB, free: 51.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007807/2.753, allocations: 209.9 kB / 1.385 GB, free: 51.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.434e-05/2.753, allocations: 10.94 kB / 1.385 GB, free: 51.55 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.176e-05/2.753, allocations: 18.11 kB / 1.385 GB, free: 51.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/2.753, allocations: 13.67 kB / 1.385 GB, free: 51.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/2.753, allocations: 10.84 kB / 1.385 GB, free: 51.55 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002136/2.755, allocations: 1.862 MB / 1.387 GB, free: 50.59 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005301/2.756, allocations: 341.3 kB / 1.387 GB, free: 50.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/2.756, allocations: 11.16 kB / 1.387 GB, free: 50.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009294/2.757, allocations: 103 kB / 1.388 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/2.757, allocations: 83.56 kB / 1.388 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-05/2.757, allocations: 40.34 kB / 1.388 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0009035/2.758, allocations: 0.8035 MB / 1.388 GB, free: 50.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002339/2.76, allocations: 0.833 MB / 1.389 GB, free: 50.22 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (chi.vol1.dynBal.medium.T,chi.vol2.dynBal.medium.T) * Number of discrete variables: 4 ($whenCondition1,chi.on,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001576/2.762, allocations: 0.8762 MB / 1.39 GB, free: 50 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001748/2.764, allocations: 1.281 MB / 1.391 GB, free: 49.92 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/2.764, allocations: 0 / 1.391 GB, free: 49.92 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006623/2.764, allocations: 427.7 kB / 1.392 GB, free: 49.92 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/2.767, allocations: 0.6385 MB / 1.392 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005346/2.772, allocations: 2.533 MB / 1.395 GB, free: 49.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/2.773, allocations: 1.447 MB / 1.396 GB, free: 48.47 MB / 0.5261 GB Notification: Performance of SimCode: time 7.32e-07/2.773, allocations: 0 / 1.396 GB, free: 48.47 MB / 0.5261 GB Notification: Performance of Templates: time 0.07097/2.844, allocations: 36.48 MB / 1.432 GB, free: 46.83 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)