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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009173/0.0009173, allocations: 91.14 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.623/1.623, allocations: 252 MB / 0.5102 GB, free: 4.789 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006313/0.0006314, allocations: 15.75 kB / 0.6243 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5379/0.5385, allocations: 106.3 MB / 0.7281 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05356/0.5921, allocations: 55.77 MB / 0.7826 GB, free: 3.469 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01816/0.6103, allocations: 12.22 MB / 0.7945 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003436/0.6138, allocations: 55.62 kB / 0.7946 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003287/0.6171, allocations: 0.7065 MB / 0.7953 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007092/0.6243, allocations: 1.826 MB / 0.797 GB, free: 4.629 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Fluid/Chillers/BaseClasses/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function ‘Buildings.Fluid.Chillers.BaseClasses.warnIfPerformanceOutOfBounds‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.004477/0.6288, allocations: 1.131 MB / 0.7981 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007458/0.6362, allocations: 4.749 MB / 0.8028 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002288/0.6386, allocations: 0.983 MB / 0.8037 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004106/0.6427, allocations: 1.275 MB / 0.805 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002703/0.6454, allocations: 1.093 MB / 0.8061 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.6456, allocations: 60 kB / 0.8061 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003131/0.6488, allocations: 1.025 MB / 0.8071 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004044/0.6492, allocations: 322.6 kB / 0.8074 GB, free: 9.961 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006459/0.6499, allocations: 360.8 kB / 0.8078 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002859/0.6527, allocations: 1.952 MB / 0.8097 GB, free: 7.645 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.6527, allocations: 0 / 0.8097 GB, free: 7.645 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.986e-06/0.6528, allocations: 0 / 0.8097 GB, free: 7.645 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.822e-05/0.6528, allocations: 0 / 0.8097 GB, free: 7.645 MB / 0.6231 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 0.004057/0.6569, allocations: 1.913 MB / 0.8115 GB, free: 5.664 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.6569, allocations: 12.03 kB / 0.8116 GB, free: 5.652 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003206/0.6601, allocations: 0.6417 MB / 0.8122 GB, free: 5.008 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.6625, allocations: 1.331 MB / 0.8135 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.6627, allocations: 149.3 kB / 0.8136 GB, free: 3.469 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.6629, allocations: 100 kB / 0.8137 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002755/0.6657, allocations: 1.338 MB / 0.815 GB, free: 1.996 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.6657, allocations: 0 / 0.815 GB, free: 1.996 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-05/0.6658, allocations: 39.98 kB / 0.8151 GB, free: 1.957 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.329e-05/0.6658, allocations: 24 kB / 0.8151 GB, free: 1.934 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003442/0.6693, allocations: 1.382 MB / 0.8164 GB, free: 0.5508 MB / 0.6231 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007703/0.677, allocations: 5.383 MB / 0.8217 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00241/0.6794, allocations: 1.089 MB / 0.8228 GB, free: 9.688 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.6809, allocations: 0.6237 MB / 0.8234 GB, free: 9.062 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000912/0.6818, allocations: 1.24 MB / 0.8246 GB, free: 7.543 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001696/0.6835, allocations: 0.6784 MB / 0.8252 GB, free: 6.855 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=69): time 3.086e-06/0.6835, allocations: 0 / 0.8252 GB, free: 6.855 MB / 0.6387 GB Notification: Performance of matching and sorting (n=69): time 0.004783/0.6883, allocations: 1.793 MB / 0.827 GB, free: 5.059 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.6884, allocations: 59.97 kB / 0.827 GB, free: 4.988 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/0.6902, allocations: 1.304 MB / 0.8283 GB, free: 3.676 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.6903, allocations: 45.7 kB / 0.8284 GB, free: 3.625 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006771/0.691, allocations: 0.6777 MB / 0.829 GB, free: 2.938 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002603/0.6912, allocations: 232.6 kB / 0.8292 GB, free: 2.707 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.314e-05/0.6913, allocations: 16 kB / 0.8293 GB, free: 2.691 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.6915, allocations: 334 kB / 0.8296 GB, free: 2.359 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001422/0.6929, allocations: 0.5446 MB / 0.8301 GB, free: 1.812 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.6945, allocations: 0.7859 MB / 0.8309 GB, free: 0.9453 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.696, allocations: 0.6019 MB / 0.8315 GB, free: 348 kB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.696, allocations: 0 / 0.8315 GB, free: 348 kB / 0.6387 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003503/0.6995, allocations: 1.469 MB / 0.8329 GB, free: 14.85 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.6997, allocations: 207.5 kB / 0.8331 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.6997, allocations: 4 kB / 0.8331 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.6997, allocations: 7.953 kB / 0.8331 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.7009, allocations: 275.6 kB / 0.8334 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.7009, allocations: 4 kB / 0.8334 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.7024, allocations: 251 kB / 0.8336 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.476e-05/0.7025, allocations: 31.98 kB / 0.8336 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 8.345e-06/0.7025, allocations: 4 kB / 0.8337 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003382/0.7059, allocations: 1.317 MB / 0.8349 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.7059, allocations: 4.031 kB / 0.8349 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.7059, allocations: 8 kB / 0.8349 GB, free: 12.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.7071, allocations: 263.7 kB / 0.8352 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.7071, allocations: 15.88 kB / 0.8352 GB, free: 12.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.7085, allocations: 235.2 kB / 0.8354 GB, free: 12.19 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.808e-05/0.7086, allocations: 35.98 kB / 0.8355 GB, free: 12.16 MB / 0.6544 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.0007128/0.7093, allocations: 412.9 kB / 0.8359 GB, free: 11.74 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.7095, allocations: 150.1 kB / 0.836 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003591/0.7131, allocations: 1.536 MB / 0.8375 GB, free: 10.04 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.7131, allocations: 8 kB / 0.8375 GB, free: 10.03 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.7132, allocations: 0 / 0.8375 GB, free: 10.03 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002992/0.7162, allocations: 1.292 MB / 0.8388 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006091/0.7223, allocations: 3.273 MB / 0.842 GB, free: 5.277 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.7223, allocations: 8 kB / 0.842 GB, free: 5.27 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.7233, allocations: 236.2 kB / 0.8422 GB, free: 5.039 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.315e-05/0.7234, allocations: 8 kB / 0.8422 GB, free: 5.031 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-05/0.7234, allocations: 27.97 kB / 0.8422 GB, free: 5.004 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.7234, allocations: 19.88 kB / 0.8423 GB, free: 4.984 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.7235, allocations: 4 kB / 0.8423 GB, free: 4.98 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004924/0.7284, allocations: 2.329 MB / 0.8445 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006473/0.729, allocations: 370.7 kB / 0.8449 GB, free: 2.195 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.7292, allocations: 24.05 kB / 0.8449 GB, free: 2.172 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.7305, allocations: 175.8 kB / 0.8451 GB, free: 2 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.7306, allocations: 72.36 kB / 0.8452 GB, free: 1.926 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-05/0.7307, allocations: 39.97 kB / 0.8452 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001297/0.732, allocations: 0.9215 MB / 0.8461 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of sort global known variables: time 5.01e-07/0.732, allocations: 0 / 0.8461 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002084/0.7341, allocations: 0.7915 MB / 0.8469 GB, free: 180 kB / 0.6544 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) * Number of clocked states: 0 () * 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.0009845/0.7351, allocations: 0.4964 MB / 0.8474 GB, free: 15.68 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005074/0.7402, allocations: 2.085 MB / 0.8494 GB, free: 13.57 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.7402, allocations: 4.125 kB / 0.8494 GB, free: 13.57 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.7421, allocations: 0.7107 MB / 0.8501 GB, free: 12.86 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003998/0.7461, allocations: 0.7618 MB / 0.8508 GB, free: 12.1 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005561/0.7517, allocations: 3.221 MB / 0.854 GB, free: 8.797 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009028/0.7526, allocations: 1.242 MB / 0.8552 GB, free: 7.527 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001828/0.7545, allocations: 367.6 kB / 0.8555 GB, free: 7.164 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003977/0.7549, allocations: 123.4 kB / 0.8557 GB, free: 7.043 MB / 0.67 GB Notification: Performance of SimCode: time 8.32e-07/0.7549, allocations: 0 / 0.8557 GB, free: 7.043 MB / 0.67 GB Notification: Performance of Templates: time 0.05537/0.8103, allocations: 29.19 MB / 0.8842 GB, free: 10.25 MB / 0.7012 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile Environment - environmentSimulation: (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) Environment - environmentSimulation: