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.001087/0.001087, allocations: 104 kB / 16.37 MB, free: 6.473 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.001324/0.001324, allocations: 193.3 kB / 17.31 MB, free: 5.82 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.479/1.479, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.768/1.768, allocations: 292.3 MB / 0.5496 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.00161/0.00161, allocations: 78.84 kB / 0.6729 GB, free: 5.867 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2446, allocations: 114.6 MB / 0.7848 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.4262/0.6709, allocations: 60.44 MB / 0.8438 GB, free: 9.332 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01992/0.6909, allocations: 13.11 MB / 0.8566 GB, free: 15.96 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004024/0.695, allocations: 64.97 kB / 0.8567 GB, free: 15.93 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.00403/0.699, allocations: 0.9566 MB / 0.8576 GB, free: 15.36 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.009436/0.7085, allocations: 2.309 MB / 0.8599 GB, free: 13.97 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.005615/0.7142, allocations: 1.571 MB / 0.8614 GB, free: 13.14 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008192/0.7224, allocations: 4.262 MB / 0.8656 GB, free: 11.1 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002683/0.7251, allocations: 1.333 MB / 0.8669 GB, free: 10.51 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00577/0.7309, allocations: 1.576 MB / 0.8684 GB, free: 9.777 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003162/0.7341, allocations: 1.187 MB / 0.8696 GB, free: 9.219 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0004429/0.7345, allocations: 138.9 kB / 0.8697 GB, free: 9.219 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00495/0.7395, allocations: 1.479 MB / 0.8711 GB, free: 8.594 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0005931/0.7401, allocations: 424.7 kB / 0.8715 GB, free: 8.273 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001825/0.7419, allocations: 0.91 MB / 0.8724 GB, free: 7.664 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.005551/0.7475, allocations: 2.796 MB / 0.8752 GB, free: 5.824 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.7475, allocations: 4 kB / 0.8752 GB, free: 5.82 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7475, allocations: 0 / 0.8752 GB, free: 5.82 MB / 0.67 GB Notification: Performance of Transformations before backend: time 3.489e-05/0.7476, allocations: 2.906 kB / 0.8752 GB, free: 5.82 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.004827/0.7524, allocations: 2.2 MB / 0.8773 GB, free: 4.156 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.7525, allocations: 9.188 kB / 0.8773 GB, free: 4.156 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00371/0.7562, allocations: 0.6083 MB / 0.8779 GB, free: 3.895 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002998/0.7592, allocations: 1.428 MB / 0.8793 GB, free: 2.797 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.7594, allocations: 145.4 kB / 0.8795 GB, free: 2.695 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/0.7596, allocations: 99.78 kB / 0.8795 GB, free: 2.664 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/0.7629, allocations: 1.31 MB / 0.8808 GB, free: 1.895 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/0.763, allocations: 1.062 kB / 0.8808 GB, free: 1.895 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.7631, allocations: 36.28 kB / 0.8809 GB, free: 1.867 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-05/0.7632, allocations: 31.98 kB / 0.8809 GB, free: 1.859 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003795/0.767, allocations: 1.318 MB / 0.8822 GB, free: 1.262 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.008099/0.7751, allocations: 5.385 MB / 0.8874 GB, free: 12.7 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002676/0.7778, allocations: 1.049 MB / 0.8885 GB, free: 12.08 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001652/0.7794, allocations: 0.5967 MB / 0.889 GB, free: 11.81 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009999/0.7805, allocations: 1.237 MB / 0.8903 GB, free: 10.36 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00195/0.7824, allocations: 0.6641 MB / 0.8909 GB, free: 9.988 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=69): time 5.32e-06/0.7824, allocations: 1.25 kB / 0.8909 GB, free: 9.988 MB / 0.6856 GB Notification: Performance of matching and sorting (n=69): time 0.005546/0.788, allocations: 1.704 MB / 0.8926 GB, free: 9.211 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.7881, allocations: 66.86 kB / 0.8926 GB, free: 9.137 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/0.7901, allocations: 1.329 MB / 0.8939 GB, free: 8.422 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.7903, allocations: 45.48 kB / 0.894 GB, free: 8.379 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005894/0.7909, allocations: 0.6568 MB / 0.8946 GB, free: 7.797 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002496/0.7912, allocations: 234.9 kB / 0.8948 GB, free: 7.594 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/0.7915, allocations: 178 kB / 0.895 GB, free: 7.488 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.7916, allocations: 333.1 kB / 0.8953 GB, free: 7.164 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.7932, allocations: 0.5347 MB / 0.8958 GB, free: 6.914 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.795, allocations: 0.7461 MB / 0.8966 GB, free: 6.418 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003265/0.7983, allocations: 1.144 MB / 0.8977 GB, free: 5.797 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.7984, allocations: 2.062 kB / 0.8977 GB, free: 5.797 MB / 0.6856 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004076/0.8024, allocations: 1.412 MB / 0.8991 GB, free: 4.414 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.8025, allocations: 34.95 kB / 0.8991 GB, free: 4.375 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.8025, allocations: 11.97 kB / 0.8991 GB, free: 4.363 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.8026, allocations: 11.94 kB / 0.8991 GB, free: 4.352 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.8038, allocations: 252 kB / 0.8994 GB, free: 4.105 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.8e-05/0.8038, allocations: 12.59 kB / 0.8994 GB, free: 4.094 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.8056, allocations: 175.1 kB / 0.8995 GB, free: 3.922 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-05/0.8057, allocations: 43.98 kB / 0.8996 GB, free: 3.879 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002033/0.8077, allocations: 0.7907 MB / 0.9004 GB, free: 3.086 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0017/0.8094, allocations: 0.7392 MB / 0.9011 GB, free: 2.27 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003025/0.8125, allocations: 1.132 MB / 0.9022 GB, free: 1.09 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.647e-06/0.8125, allocations: 0 / 0.9022 GB, free: 1.09 MB / 0.6856 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.00414/0.8166, allocations: 1.404 MB / 0.9036 GB, free: 15.67 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.8167, allocations: 33.7 kB / 0.9036 GB, free: 15.63 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.8167, allocations: 7.984 kB / 0.9036 GB, free: 15.62 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.8168, allocations: 11.38 kB / 0.9036 GB, free: 15.61 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.818, allocations: 255.9 kB / 0.9039 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.818, allocations: 7.938 kB / 0.9039 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/0.8199, allocations: 171.4 kB / 0.904 GB, free: 15.19 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.82, allocations: 40.77 kB / 0.9041 GB, free: 15.15 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.000346/0.8204, allocations: 226 kB / 0.9043 GB, free: 14.92 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003652/0.8208, allocations: 150.1 kB / 0.9044 GB, free: 14.77 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003958/0.8247, allocations: 1.473 MB / 0.9059 GB, free: 13.29 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.028e-05/0.8248, allocations: 11.98 kB / 0.9059 GB, free: 13.28 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.8248, allocations: 3.938 kB / 0.9059 GB, free: 13.28 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003306/0.8281, allocations: 1.227 MB / 0.9071 GB, free: 12.02 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007/0.8351, allocations: 3.215 MB / 0.9102 GB, free: 8.656 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.8352, allocations: 4 kB / 0.9102 GB, free: 8.652 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.8363, allocations: 223.7 kB / 0.9104 GB, free: 8.434 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.657e-05/0.8363, allocations: 11.94 kB / 0.9104 GB, free: 8.422 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.816e-05/0.8364, allocations: 27.98 kB / 0.9105 GB, free: 8.395 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.399e-05/0.8364, allocations: 15.92 kB / 0.9105 GB, free: 8.379 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.8364, allocations: 4 kB / 0.9105 GB, free: 8.375 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005607/0.842, allocations: 2.235 MB / 0.9127 GB, free: 6.059 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009144/0.843, allocations: 347.4 kB / 0.913 GB, free: 5.699 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.8432, allocations: 19.94 kB / 0.913 GB, free: 5.68 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.8445, allocations: 127.8 kB / 0.9131 GB, free: 5.555 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.8447, allocations: 76.36 kB / 0.9132 GB, free: 5.48 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.203e-05/0.8448, allocations: 41.41 kB / 0.9133 GB, free: 5.441 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001331/0.8461, allocations: 0.9449 MB / 0.9142 GB, free: 4.5 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8461, allocations: 0 / 0.9142 GB, free: 4.5 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002353/0.8485, allocations: 0.7993 MB / 0.915 GB, free: 3.699 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.001197/0.8497, allocations: 0.5294 MB / 0.9155 GB, free: 3.18 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005455/0.8552, allocations: 2.003 MB / 0.9174 GB, free: 1.152 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/0.8552, allocations: 0 / 0.9174 GB, free: 1.152 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001851/0.8571, allocations: 0.6678 MB / 0.9181 GB, free: 500 kB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003975/0.861, allocations: 0.768 MB / 0.9188 GB, free: 15.78 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004995/0.8661, allocations: 2.746 MB / 0.9215 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/0.8669, allocations: 1.245 MB / 0.9227 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005435/0.8674, allocations: 143.2 kB / 0.9229 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of SimCode: time 8.81e-07/0.8674, allocations: 0 / 0.9229 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of Templates: time 0.04027/0.9077, allocations: 27.07 MB / 0.9493 GB, free: 0.7617 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)