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.0007523/0.0007524, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00478/0.00478, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.589/1.589, allocations: 252 MB / 0.5105 GB, free: 4.613 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.0004995/0.0004995, allocations: 16.56 kB / 0.6249 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5013/0.5019, allocations: 106.3 MB / 0.7287 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05478/0.5567, allocations: 58.98 MB / 0.7863 GB, free: 332 kB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02261/0.5793, allocations: 12.98 MB / 0.799 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003274/0.5827, allocations: 63.5 kB / 0.799 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00289/0.5856, allocations: 0.8101 MB / 0.7998 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007393/0.593, allocations: 2.126 MB / 0.8019 GB, free: 316 kB / 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.004118/0.5971, allocations: 1.379 MB / 0.8033 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.006783/0.6039, allocations: 5.503 MB / 0.8086 GB, free: 9.422 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.6057, allocations: 1.103 MB / 0.8097 GB, free: 8.289 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002734/0.6084, allocations: 1.326 MB / 0.811 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002653/0.6111, allocations: 1.147 MB / 0.8121 GB, free: 5.805 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0003339/0.6115, allocations: 63.98 kB / 0.8122 GB, free: 5.742 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00445/0.6159, allocations: 1.36 MB / 0.8135 GB, free: 4.379 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004769/0.6164, allocations: 342.4 kB / 0.8138 GB, free: 4.043 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001603/0.618, allocations: 0.837 MB / 0.8147 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003853/0.6219, allocations: 2.655 MB / 0.8173 GB, free: 0.5312 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.6219, allocations: 0 / 0.8173 GB, free: 0.5312 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.064e-06/0.6219, allocations: 0 / 0.8173 GB, free: 0.5312 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.05e-05/0.622, allocations: 0 / 0.8173 GB, free: 0.5312 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.003345/0.6253, allocations: 1.894 MB / 0.8191 GB, free: 14.57 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.6254, allocations: 12.03 kB / 0.8191 GB, free: 14.56 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003523/0.6289, allocations: 0.6424 MB / 0.8197 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002446/0.6314, allocations: 1.385 MB / 0.8211 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/0.6315, allocations: 153.4 kB / 0.8212 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001724/0.6317, allocations: 96 kB / 0.8213 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/0.6347, allocations: 1.334 MB / 0.8226 GB, free: 10.86 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.6347, allocations: 0 / 0.8226 GB, free: 10.86 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.6348, allocations: 40 kB / 0.8227 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.2e-05/0.6349, allocations: 28 kB / 0.8227 GB, free: 10.79 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003602/0.6385, allocations: 1.39 MB / 0.8241 GB, free: 9.395 MB / 0.6387 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.007355/0.6458, allocations: 5.379 MB / 0.8293 GB, free: 3.668 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002507/0.6484, allocations: 1.096 MB / 0.8304 GB, free: 2.531 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001607/0.65, allocations: 0.6348 MB / 0.831 GB, free: 1.895 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001032/0.651, allocations: 1.236 MB / 0.8322 GB, free: 392 kB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001778/0.6528, allocations: 0.69 MB / 0.8329 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=69): time 3.126e-06/0.6528, allocations: 0 / 0.8329 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of matching and sorting (n=69): time 0.00517/0.658, allocations: 1.801 MB / 0.8346 GB, free: 13.88 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.6581, allocations: 59.97 kB / 0.8347 GB, free: 13.8 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.6598, allocations: 1.308 MB / 0.836 GB, free: 12.49 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001088/0.6599, allocations: 45.7 kB / 0.836 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006503/0.6606, allocations: 0.6699 MB / 0.8367 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.6608, allocations: 232.6 kB / 0.8369 GB, free: 11.53 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.661, allocations: 77.67 kB / 0.837 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.6611, allocations: 330 kB / 0.8373 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.6627, allocations: 0.564 MB / 0.8378 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.6645, allocations: 0.7859 MB / 0.8386 GB, free: 9.684 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003162/0.6677, allocations: 1.21 MB / 0.8398 GB, free: 8.43 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.6677, allocations: 4 kB / 0.8398 GB, free: 8.426 MB / 0.6544 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00391/0.6716, allocations: 1.477 MB / 0.8412 GB, free: 6.934 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.6718, allocations: 203.4 kB / 0.8414 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.6718, allocations: 4 kB / 0.8414 GB, free: 6.684 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.6718, allocations: 19.98 kB / 0.8414 GB, free: 6.664 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/0.6731, allocations: 263.7 kB / 0.8417 GB, free: 6.406 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.101e-05/0.6731, allocations: 15.94 kB / 0.8417 GB, free: 6.391 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.6748, allocations: 239 kB / 0.8419 GB, free: 6.156 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.554e-05/0.6749, allocations: 39.97 kB / 0.842 GB, free: 6.117 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.675, allocations: 4 kB / 0.842 GB, free: 6.113 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003508/0.6785, allocations: 1.321 MB / 0.8433 GB, free: 4.781 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6785, allocations: 3.938 kB / 0.8433 GB, free: 4.777 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.6785, allocations: 8 kB / 0.8433 GB, free: 4.77 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.6797, allocations: 267.8 kB / 0.8435 GB, free: 4.508 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.6797, allocations: 8 kB / 0.8435 GB, free: 4.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.6815, allocations: 227.1 kB / 0.8438 GB, free: 4.277 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/0.6816, allocations: 43.97 kB / 0.8438 GB, free: 4.234 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 (chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007481/0.6823, allocations: 421.3 kB / 0.8442 GB, free: 3.812 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.6826, allocations: 150.1 kB / 0.8444 GB, free: 3.664 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003861/0.6864, allocations: 1.536 MB / 0.8459 GB, free: 2.109 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/0.6865, allocations: 15.98 kB / 0.8459 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.6865, allocations: 3.938 kB / 0.8459 GB, free: 2.09 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003232/0.6897, allocations: 1.3 MB / 0.8471 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006535/0.6963, allocations: 3.277 MB / 0.8503 GB, free: 13.32 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.6963, allocations: 4.062 kB / 0.8503 GB, free: 13.32 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.6974, allocations: 235.7 kB / 0.8506 GB, free: 13.09 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.286e-05/0.6975, allocations: 8 kB / 0.8506 GB, free: 13.08 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.6975, allocations: 31.92 kB / 0.8506 GB, free: 13.05 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-05/0.6976, allocations: 15.92 kB / 0.8506 GB, free: 13.04 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.6976, allocations: 11.94 kB / 0.8506 GB, free: 13.02 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005341/0.7029, allocations: 2.337 MB / 0.8529 GB, free: 10.61 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.704, allocations: 366.8 kB / 0.8533 GB, free: 10.23 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002902/0.7043, allocations: 16 kB / 0.8533 GB, free: 10.21 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/0.706, allocations: 190.6 kB / 0.8535 GB, free: 10.03 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.7062, allocations: 68.36 kB / 0.8535 GB, free: 9.965 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.755e-05/0.7063, allocations: 35.97 kB / 0.8536 GB, free: 9.93 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001352/0.7076, allocations: 0.9449 MB / 0.8545 GB, free: 8.988 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7077, allocations: 4 kB / 0.8545 GB, free: 8.984 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002052/0.7097, allocations: 0.7836 MB / 0.8553 GB, free: 8.199 MB / 0.67 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001084/0.7108, allocations: 0.5087 MB / 0.8558 GB, free: 7.691 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005445/0.7163, allocations: 2.097 MB / 0.8578 GB, free: 5.57 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.7163, allocations: 0 / 0.8578 GB, free: 5.57 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.7182, allocations: 0.7186 MB / 0.8585 GB, free: 4.852 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004688/0.7229, allocations: 0.7616 MB / 0.8592 GB, free: 4.098 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005175/0.7281, allocations: 3.321 MB / 0.8625 GB, free: 0.6875 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007649/0.7289, allocations: 1.246 MB / 0.8637 GB, free: 15.41 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001718/0.7306, allocations: 371.5 kB / 0.8641 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.731, allocations: 127.4 kB / 0.8642 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of SimCode: time 9.82e-07/0.731, allocations: 3.938 kB / 0.8642 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of Templates: time 0.05262/0.7837, allocations: 30.97 MB / 0.8944 GB, free: 356 kB / 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: