Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR") [: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.5455/0.5455, allocations: 94.74 MB / 102 MB, free: 10.37 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.001411/0.001411, allocations: 172.7 kB / 125.3 MB, free: 12 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.313/1.313, allocations: 170.5 MB / 319 MB, free: 9.52 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.001678/0.001678, allocations: 108.8 kB / 381 MB, free: 18.1 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.706e-06, allocations: 3.938 kB / 448.6 MB, free: 2.164 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1523, allocations: 61.52 MB / 0.4981 GB, free: 4.555 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.127/1.279, allocations: 421.3 MB / 0.9095 GB, free: 190.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003347/1.28, allocations: 83.81 kB / 0.9096 GB, free: 190.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.461/2.74, allocations: 454.5 MB / 1.353 GB, free: 66.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001486/2.74, allocations: 41.22 kB / 1.354 GB, free: 66.38 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.003667/2.744, allocations: 1.84 MB / 1.355 GB, free: 65.64 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/2.744, allocations: 11.62 kB / 1.355 GB, free: 65.64 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008888/2.745, allocations: 231.2 kB / 1.356 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003341/2.748, allocations: 1.728 MB / 1.357 GB, free: 65.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/2.749, allocations: 110.2 kB / 1.357 GB, free: 65.15 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/2.749, allocations: 61.16 kB / 1.357 GB, free: 65.15 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001318/2.75, allocations: 0.7593 MB / 1.358 GB, free: 65.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/2.751, allocations: 1.001 MB / 1.359 GB, free: 64.93 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/2.751, allocations: 4.844 kB / 1.359 GB, free: 64.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-05/2.752, allocations: 7.188 kB / 1.359 GB, free: 64.93 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/2.752, allocations: 22 kB / 1.359 GB, free: 64.93 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006594/2.758, allocations: 6.089 MB / 1.365 GB, free: 61.36 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009636/2.759, allocations: 0.5561 MB / 1.366 GB, free: 61.34 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/2.76, allocations: 312.2 kB / 1.366 GB, free: 61.33 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006035/2.76, allocations: 1.072 MB / 1.367 GB, free: 60.11 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005374/2.761, allocations: 406.1 kB / 1.367 GB, free: 60 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=65): time 2.415e-06/2.761, allocations: 0 / 1.367 GB, free: 60 MB / 0.5261 GB Notification: Performance of matching and sorting (n=75): time 0.0126/2.773, allocations: 2.973 MB / 1.37 GB, free: 58.88 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.322e-05/2.774, allocations: 318.2 kB / 1.371 GB, free: 58.51 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/2.775, allocations: 1.028 MB / 1.372 GB, free: 58.35 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.869e-05/2.775, allocations: 28.14 kB / 1.372 GB, free: 58.32 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003583/2.775, allocations: 0.5192 MB / 1.372 GB, free: 58.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/2.776, allocations: 249.5 kB / 1.372 GB, free: 57.86 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.512e-05/2.776, allocations: 0 / 1.372 GB, free: 57.86 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001031/2.776, allocations: 344.2 kB / 1.373 GB, free: 57.56 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004096/2.776, allocations: 272.4 kB / 1.373 GB, free: 57.56 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005899/2.777, allocations: 0.6659 MB / 1.374 GB, free: 57.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/2.778, allocations: 480.7 kB / 1.374 GB, free: 57.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/2.778, allocations: 3.531 kB / 1.374 GB, free: 57.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002162/2.78, allocations: 1.058 MB / 1.375 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007196/2.781, allocations: 3.3 MB / 1.378 GB, free: 53.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/2.781, allocations: 7 kB / 1.378 GB, free: 53.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.859e-05/2.781, allocations: 19.47 kB / 1.378 GB, free: 53.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/2.782, allocations: 294.5 kB / 1.379 GB, free: 53.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/2.782, allocations: 15.19 kB / 1.379 GB, free: 53.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/2.784, allocations: 117.9 kB / 1.379 GB, free: 53.58 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/2.784, allocations: 52.58 kB / 1.379 GB, free: 53.58 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/2.784, allocations: 3.25 kB / 1.379 GB, free: 53.58 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00145/2.785, allocations: 0.7923 MB / 1.38 GB, free: 53.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/2.785, allocations: 7.625 kB / 1.38 GB, free: 53.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/2.785, allocations: 17.16 kB / 1.38 GB, free: 53.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009864/2.786, allocations: 290.5 kB / 1.38 GB, free: 53.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/2.786, allocations: 13.5 kB / 1.38 GB, free: 53.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/2.787, allocations: 112.3 kB / 1.38 GB, free: 53.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.397e-05/2.788, allocations: 48.27 kB / 1.38 GB, free: 53.55 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.0002717/2.788, allocations: 138.1 kB / 1.38 GB, free: 53.44 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/2.788, allocations: 154 kB / 1.38 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/2.79, allocations: 0.8622 MB / 1.381 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/2.79, allocations: 10.72 kB / 1.381 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/2.79, allocations: 3.969 kB / 1.381 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/2.79, allocations: 6.469 kB / 1.381 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004145/2.794, allocations: 2.738 MB / 1.384 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/2.794, allocations: 7.844 kB / 1.384 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008214/2.795, allocations: 208.4 kB / 1.384 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.55e-05/2.795, allocations: 9.688 kB / 1.384 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/2.795, allocations: 18.44 kB / 1.384 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/2.795, allocations: 13.75 kB / 1.384 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/2.795, allocations: 9.25 kB / 1.384 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002279/2.798, allocations: 1.789 MB / 1.386 GB, free: 51.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006637/2.798, allocations: 328.3 kB / 1.386 GB, free: 51.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/2.799, allocations: 14.06 kB / 1.386 GB, free: 51.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009638/2.799, allocations: 104.2 kB / 1.386 GB, free: 51.13 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/2.8, allocations: 69.55 kB / 1.386 GB, free: 51.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.003e-05/2.8, allocations: 46.86 kB / 1.386 GB, free: 51.12 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001044/2.801, allocations: 0.7619 MB / 1.387 GB, free: 51.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002942/2.804, allocations: 0.8308 MB / 1.388 GB, free: 50.94 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.002274/2.806, allocations: 0.873 MB / 1.389 GB, free: 50.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002363/2.808, allocations: 1.26 MB / 1.39 GB, free: 50.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/2.808, allocations: 3.875 kB / 1.39 GB, free: 50.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007728/2.809, allocations: 416.5 kB / 1.39 GB, free: 50.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003609/2.813, allocations: 0.6355 MB / 1.391 GB, free: 50.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006915/2.82, allocations: 2.483 MB / 1.393 GB, free: 49.93 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/2.821, allocations: 1.425 MB / 1.395 GB, free: 49.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.533e-06/2.821, allocations: 2.125 kB / 1.395 GB, free: 49.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.07114/2.892, allocations: 36.13 MB / 1.43 GB, free: 47.57 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)