Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 196.6 kB / 16.53 MB, free: 6.672 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.673/1.673, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.764/1.764, allocations: 292.3 MB / 0.5489 GB, free: 12.85 MB / 462.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.001484/0.001484, allocations: 65.31 kB / 0.6715 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3065, allocations: 114.6 MB / 0.7834 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.08606/0.3926, allocations: 60.45 MB / 0.8424 GB, free: 0.832 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02259/0.4153, allocations: 13.07 MB / 0.8552 GB, free: 3.734 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004186/0.4195, allocations: 71.56 kB / 0.8552 GB, free: 3.664 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004946/0.4245, allocations: 0.9628 MB / 0.8562 GB, free: 2.695 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.00849/0.4331, allocations: 2.3 MB / 0.8584 GB, free: 396 kB / 0.67 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.00541/0.4385, allocations: 1.539 MB / 0.8599 GB, free: 14.86 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.007269/0.4458, allocations: 4.26 MB / 0.8641 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00288/0.4487, allocations: 1.325 MB / 0.8654 GB, free: 9.234 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004941/0.4537, allocations: 1.585 MB / 0.8669 GB, free: 7.648 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002544/0.4562, allocations: 1.194 MB / 0.8681 GB, free: 6.449 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003575/0.4566, allocations: 140 kB / 0.8682 GB, free: 6.312 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003903/0.4605, allocations: 1.439 MB / 0.8696 GB, free: 4.871 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0004983/0.461, allocations: 410.5 kB / 0.87 GB, free: 4.469 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001353/0.4624, allocations: 0.894 MB / 0.8709 GB, free: 3.57 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.005344/0.4677, allocations: 2.73 MB / 0.8736 GB, free: 0.832 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/0.4678, allocations: 0 / 0.8736 GB, free: 0.832 MB / 0.6856 GB Notification: Performance of FrontEnd: time 3.226e-06/0.4678, allocations: 0 / 0.8736 GB, free: 0.832 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.896e-05/0.4678, allocations: 0 / 0.8736 GB, free: 0.832 MB / 0.6856 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.004713/0.4725, allocations: 2.166 MB / 0.8757 GB, free: 14.59 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.4726, allocations: 12.03 kB / 0.8757 GB, free: 14.58 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003592/0.4762, allocations: 0.6073 MB / 0.8763 GB, free: 13.97 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/0.4789, allocations: 1.33 MB / 0.8776 GB, free: 12.59 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.4791, allocations: 145.4 kB / 0.8777 GB, free: 12.44 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.4793, allocations: 100 kB / 0.8778 GB, free: 12.34 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/0.4823, allocations: 1.307 MB / 0.8791 GB, free: 11 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.4823, allocations: 3.938 kB / 0.8791 GB, free: 10.99 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.4824, allocations: 44 kB / 0.8791 GB, free: 10.95 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.4825, allocations: 24 kB / 0.8791 GB, free: 10.93 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003589/0.4861, allocations: 1.311 MB / 0.8804 GB, free: 9.617 MB / 0.7012 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.008165/0.4942, allocations: 5.381 MB / 0.8857 GB, free: 3.887 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006154/0.5004, allocations: 1.413 MB / 0.8871 GB, free: 2.426 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.502, allocations: 0.5802 MB / 0.8876 GB, free: 1.844 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000997/0.5031, allocations: 1.243 MB / 0.8888 GB, free: 332 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001836/0.5049, allocations: 0.655 MB / 0.8895 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=69): time 3.477e-06/0.5049, allocations: 0 / 0.8895 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69): time 0.005811/0.5107, allocations: 1.68 MB / 0.8911 GB, free: 13.97 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/0.5108, allocations: 59.97 kB / 0.8912 GB, free: 13.89 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.5129, allocations: 1.274 MB / 0.8924 GB, free: 12.61 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.5131, allocations: 41.7 kB / 0.8925 GB, free: 12.56 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007182/0.5138, allocations: 0.6462 MB / 0.8931 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003421/0.5141, allocations: 232.6 kB / 0.8933 GB, free: 11.68 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003294/0.5145, allocations: 178.5 kB / 0.8935 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.5146, allocations: 341.9 kB / 0.8938 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001545/0.5162, allocations: 0.5239 MB / 0.8943 GB, free: 10.63 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001976/0.5182, allocations: 0.7469 MB / 0.8951 GB, free: 9.801 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003151/0.5213, allocations: 1.124 MB / 0.8962 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.5214, allocations: 4 kB / 0.8962 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004181/0.5256, allocations: 1.388 MB / 0.8975 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.66e-05/0.5256, allocations: 37.7 kB / 0.8975 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.5256, allocations: 4 kB / 0.8976 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/0.5257, allocations: 7.938 kB / 0.8976 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.5269, allocations: 259.6 kB / 0.8978 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.527, allocations: 4 kB / 0.8978 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/0.5289, allocations: 187.1 kB / 0.898 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.873e-05/0.529, allocations: 35.98 kB / 0.898 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002103/0.5311, allocations: 0.7861 MB / 0.8988 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001731/0.5328, allocations: 0.7352 MB / 0.8995 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003005/0.5358, allocations: 1.124 MB / 0.9006 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.905e-06/0.5358, allocations: 0 / 0.9006 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003791/0.5396, allocations: 1.384 MB / 0.902 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.5397, allocations: 33.69 kB / 0.902 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.5397, allocations: 4 kB / 0.902 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.5397, allocations: 8 kB / 0.902 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.5409, allocations: 255.6 kB / 0.9022 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.541, allocations: 8 kB / 0.9023 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/0.5425, allocations: 167.4 kB / 0.9024 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.801e-05/0.5426, allocations: 47.95 kB / 0.9025 GB, free: 2.004 MB / 0.7169 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.0003599/0.543, allocations: 236.5 kB / 0.9027 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002601/0.5432, allocations: 138.3 kB / 0.9028 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004254/0.5475, allocations: 1.454 MB / 0.9042 GB, free: 160 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.5476, allocations: 11.98 kB / 0.9042 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5476, allocations: 4 kB / 0.9043 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004664/0.5522, allocations: 1.218 MB / 0.9054 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.5629, allocations: 3.174 MB / 0.9085 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.771e-05/0.5629, allocations: 8 kB / 0.9085 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/0.5646, allocations: 220.2 kB / 0.9088 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.668e-05/0.5647, allocations: 11.94 kB / 0.9088 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.5648, allocations: 31.97 kB / 0.9088 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.848e-05/0.5648, allocations: 8 kB / 0.9088 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/0.5649, allocations: 7.938 kB / 0.9088 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008852/0.5737, allocations: 2.196 MB / 0.911 GB, free: 9.004 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/0.5752, allocations: 346.9 kB / 0.9113 GB, free: 8.645 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004003/0.5757, allocations: 19.94 kB / 0.9113 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/0.5777, allocations: 131.9 kB / 0.9114 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002337/0.578, allocations: 72.36 kB / 0.9115 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/0.5781, allocations: 43.97 kB / 0.9115 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002407/0.5806, allocations: 0.9085 MB / 0.9124 GB, free: 7.477 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.71e-07/0.5806, allocations: 0 / 0.9124 GB, free: 7.477 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.005835/0.5864, allocations: 0.7914 MB / 0.9132 GB, free: 6.684 MB / 0.7325 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.002486/0.589, allocations: 0.5258 MB / 0.9137 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01074/0.5998, allocations: 2.038 MB / 0.9157 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/0.5998, allocations: 4.125 kB / 0.9157 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003772/0.6036, allocations: 0.6833 MB / 0.9164 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007159/0.6108, allocations: 0.7537 MB / 0.9171 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.511/1.122, allocations: 2.675 MB / 0.9197 GB, free: 134.2 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001405/1.123, allocations: 1.227 MB / 0.9209 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002202/1.126, allocations: 366.7 kB / 0.9213 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004461/1.126, allocations: 123.8 kB / 0.9214 GB, free: 133.4 MB / 0.7325 GB Notification: Performance of SimCode: time 1.152e-06/1.126, allocations: 2.906 kB / 0.9214 GB, free: 133.4 MB / 0.7325 GB Notification: Performance of Templates: time 0.07569/1.202, allocations: 31.58 MB / 0.9522 GB, free: 122.9 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)