Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 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.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001043/0.001043, allocations: 102.4 kB / 16.27 MB, free: 5.973 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.001079/0.001079, allocations: 191.9 kB / 17.2 MB, free: 5.598 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.343/1.343, allocations: 205.1 MB / 223.1 MB, free: 12.28 MB / 190.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.822/1.822, allocations: 292.3 MB / 0.5495 GB, free: 17.57 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.001458/0.001458, allocations: 66.88 kB / 0.6722 GB, free: 6.543 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.261, allocations: 114.6 MB / 0.784 GB, free: 3.871 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.4381/0.6991, allocations: 60.45 MB / 0.8431 GB, free: 9.52 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01816/0.7174, allocations: 13.11 MB / 0.8559 GB, free: 148 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003355/0.7208, allocations: 64.91 kB / 0.8559 GB, free: 124 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003385/0.7242, allocations: 0.9576 MB / 0.8568 GB, free: 15.54 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.007987/0.7322, allocations: 2.3 MB / 0.8591 GB, free: 14.16 MB / 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.005016/0.7373, allocations: 1.558 MB / 0.8606 GB, free: 13.34 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.00717/0.7444, allocations: 4.262 MB / 0.8648 GB, free: 11.29 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002492/0.747, allocations: 1.324 MB / 0.8661 GB, free: 10.71 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004538/0.7515, allocations: 1.573 MB / 0.8676 GB, free: 9.977 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.7541, allocations: 1.185 MB / 0.8688 GB, free: 9.422 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0004516/0.7546, allocations: 138.8 kB / 0.8689 GB, free: 9.422 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004686/0.7593, allocations: 1.48 MB / 0.8703 GB, free: 8.879 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0006421/0.76, allocations: 429.5 kB / 0.8708 GB, free: 8.594 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001729/0.7617, allocations: 0.9091 MB / 0.8716 GB, free: 7.984 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.005809/0.7675, allocations: 2.77 MB / 0.8743 GB, free: 6.152 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.7676, allocations: 0 / 0.8743 GB, free: 6.152 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7676, allocations: 1.375 kB / 0.8743 GB, free: 6.152 MB / 0.67 GB Notification: Performance of Transformations before backend: time 5.426e-05/0.7676, allocations: 0.5625 kB / 0.8743 GB, free: 6.152 MB / 0.67 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.004618/0.7723, allocations: 2.191 MB / 0.8765 GB, free: 4.492 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.7723, allocations: 9.219 kB / 0.8765 GB, free: 4.492 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003832/0.7762, allocations: 0.6087 MB / 0.8771 GB, free: 4.23 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002832/0.779, allocations: 1.356 MB / 0.8784 GB, free: 3.172 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.7792, allocations: 140.3 kB / 0.8785 GB, free: 3.074 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/0.7794, allocations: 100.3 kB / 0.8786 GB, free: 3.043 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003104/0.7825, allocations: 1.318 MB / 0.8799 GB, free: 2.266 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.7826, allocations: 5 kB / 0.8799 GB, free: 2.262 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.7827, allocations: 37.75 kB / 0.88 GB, free: 2.234 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.7827, allocations: 24.28 kB / 0.88 GB, free: 2.234 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/0.7864, allocations: 1.33 MB / 0.8813 GB, free: 1.625 MB / 0.67 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.008051/0.7945, allocations: 5.419 MB / 0.8866 GB, free: 13.04 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.7971, allocations: 1.043 MB / 0.8876 GB, free: 12.43 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.7988, allocations: 0.5979 MB / 0.8882 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001043/0.7999, allocations: 1.242 MB / 0.8894 GB, free: 10.7 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001939/0.8018, allocations: 0.6513 MB / 0.89 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=69): time 4.298e-06/0.8019, allocations: 7.25 kB / 0.89 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of matching and sorting (n=69): time 0.006019/0.8079, allocations: 1.704 MB / 0.8917 GB, free: 9.562 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.808, allocations: 60.06 kB / 0.8918 GB, free: 9.496 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.8104, allocations: 1.329 MB / 0.8931 GB, free: 8.781 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002102/0.8106, allocations: 43.08 kB / 0.8931 GB, free: 8.738 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000697/0.8113, allocations: 0.6642 MB / 0.8938 GB, free: 8.152 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003112/0.8117, allocations: 238.2 kB / 0.894 GB, free: 7.945 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000308/0.812, allocations: 173.6 kB / 0.8941 GB, free: 7.844 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.8121, allocations: 335.5 kB / 0.8945 GB, free: 7.516 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.8138, allocations: 0.534 MB / 0.895 GB, free: 7.27 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/0.8156, allocations: 0.7461 MB / 0.8957 GB, free: 6.773 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003172/0.8188, allocations: 1.149 MB / 0.8968 GB, free: 6.148 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.8188, allocations: 1.375 kB / 0.8968 GB, free: 6.148 MB / 0.6856 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004254/0.8231, allocations: 1.409 MB / 0.8982 GB, free: 4.945 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 5.284e-05/0.8232, allocations: 33.7 kB / 0.8982 GB, free: 4.906 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.8232, allocations: 4 kB / 0.8983 GB, free: 4.902 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.8232, allocations: 8.25 kB / 0.8983 GB, free: 4.895 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.8245, allocations: 263.6 kB / 0.8985 GB, free: 4.637 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.339e-05/0.8246, allocations: 9.5 kB / 0.8985 GB, free: 4.629 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.8265, allocations: 185.8 kB / 0.8987 GB, free: 4.449 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.8266, allocations: 39.97 kB / 0.8987 GB, free: 4.41 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002202/0.8288, allocations: 0.7918 MB / 0.8995 GB, free: 3.617 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001802/0.8306, allocations: 0.743 MB / 0.9002 GB, free: 2.797 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003207/0.8339, allocations: 1.132 MB / 0.9013 GB, free: 1.617 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.148e-06/0.8339, allocations: 0 / 0.9013 GB, free: 1.617 MB / 0.6856 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.004227/0.8381, allocations: 1.403 MB / 0.9027 GB, free: 204 kB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.8382, allocations: 33.7 kB / 0.9027 GB, free: 164 kB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.8382, allocations: 4.312 kB / 0.9027 GB, free: 160 kB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.8382, allocations: 8 kB / 0.9028 GB, free: 152 kB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.8395, allocations: 255.5 kB / 0.903 GB, free: 15.9 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.301e-05/0.8395, allocations: 11.98 kB / 0.903 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/0.8415, allocations: 167.4 kB / 0.9032 GB, free: 15.72 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.8416, allocations: 35.98 kB / 0.9032 GB, free: 15.69 MB / 0.7012 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.0003453/0.8419, allocations: 237 kB / 0.9034 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000608/0.8426, allocations: 150.1 kB / 0.9036 GB, free: 15.3 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/0.8468, allocations: 1.468 MB / 0.905 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.8468, allocations: 8 kB / 0.905 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.8468, allocations: 0 / 0.905 GB, free: 13.82 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003235/0.8501, allocations: 1.24 MB / 0.9062 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007617/0.8577, allocations: 3.211 MB / 0.9094 GB, free: 9.184 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.8578, allocations: 4 kB / 0.9094 GB, free: 9.18 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.8589, allocations: 224.1 kB / 0.9096 GB, free: 8.961 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.668e-05/0.8589, allocations: 11.94 kB / 0.9096 GB, free: 8.949 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.112e-05/0.859, allocations: 23.98 kB / 0.9096 GB, free: 8.926 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.14e-05/0.859, allocations: 11.94 kB / 0.9096 GB, free: 8.914 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.859, allocations: 4 kB / 0.9096 GB, free: 8.91 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005941/0.865, allocations: 2.235 MB / 0.9118 GB, free: 6.594 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009726/0.866, allocations: 354.9 kB / 0.9121 GB, free: 6.227 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/0.8665, allocations: 23.94 kB / 0.9122 GB, free: 6.203 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001726/0.8682, allocations: 127.9 kB / 0.9123 GB, free: 6.078 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.8684, allocations: 72.34 kB / 0.9124 GB, free: 6.008 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.8686, allocations: 39.97 kB / 0.9124 GB, free: 5.969 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001756/0.8703, allocations: 0.9488 MB / 0.9133 GB, free: 5.023 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8703, allocations: 0 / 0.9133 GB, free: 5.023 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003252/0.8736, allocations: 0.7954 MB / 0.9141 GB, free: 4.227 MB / 0.7012 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.001415/0.875, allocations: 0.5305 MB / 0.9146 GB, free: 3.715 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.006092/0.8811, allocations: 2.07 MB / 0.9166 GB, free: 1.621 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.8812, allocations: 0 / 0.9166 GB, free: 1.621 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.8832, allocations: 0.664 MB / 0.9173 GB, free: 0.9609 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004694/0.8879, allocations: 0.761 MB / 0.918 GB, free: 276 kB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00577/0.8937, allocations: 2.787 MB / 0.9208 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009977/0.8947, allocations: 1.237 MB / 0.922 GB, free: 12.12 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006565/0.8954, allocations: 143.3 kB / 0.9221 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of SimCode: time 9.42e-07/0.8954, allocations: 0 / 0.9221 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of Templates: time 0.04277/0.9381, allocations: 27.09 MB / 0.9486 GB, free: 1.188 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)