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.0007552/0.0007553, allocations: 90.36 kB / 15.06 MB, free: 1.094 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.000854/0.000854, allocations: 172.7 kB / 15.95 MB, free: 204 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.578/1.578, 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 8.1.4-maint.8.1.x/package.mo): time 1.662/1.662, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005395/0.0005396, allocations: 13.75 kB / 0.6737 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2471, allocations: 116.3 MB / 0.7873 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.04905/0.2962, allocations: 55.77 MB / 0.8417 GB, free: 4.008 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01798/0.3142, allocations: 12.27 MB / 0.8537 GB, free: 7.715 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002886/0.3171, allocations: 55.62 kB / 0.8538 GB, free: 7.66 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002464/0.3196, allocations: 0.7065 MB / 0.8545 GB, free: 6.949 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.005844/0.3255, allocations: 1.83 MB / 0.8562 GB, free: 5.113 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.003809/0.3293, allocations: 1.174 MB / 0.8574 GB, free: 3.953 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.006584/0.3359, allocations: 4.742 MB / 0.862 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.3378, allocations: 0.9698 MB / 0.863 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002917/0.3407, allocations: 1.295 MB / 0.8642 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001817/0.3425, allocations: 1.089 MB / 0.8653 GB, free: 11.81 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.3427, allocations: 60 kB / 0.8654 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002707/0.3454, allocations: 1.021 MB / 0.8664 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0003467/0.3458, allocations: 322.6 kB / 0.8667 GB, free: 10.41 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0005483/0.3464, allocations: 364.8 kB / 0.867 GB, free: 10.05 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002393/0.3488, allocations: 1.968 MB / 0.8689 GB, free: 8.078 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3488, allocations: 4 kB / 0.8689 GB, free: 8.074 MB / 0.6856 GB Notification: Performance of FrontEnd: time 3.286e-06/0.3488, allocations: 0 / 0.8689 GB, free: 8.074 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.191e-05/0.3488, allocations: 3.938 kB / 0.8689 GB, free: 8.07 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.00311/0.3519, allocations: 1.909 MB / 0.8708 GB, free: 6.094 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.352, allocations: 12.03 kB / 0.8708 GB, free: 6.082 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002949/0.3549, allocations: 0.6378 MB / 0.8714 GB, free: 5.441 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.357, allocations: 1.347 MB / 0.8728 GB, free: 4.043 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.3572, allocations: 141.4 kB / 0.8729 GB, free: 3.895 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.3574, allocations: 100 kB / 0.873 GB, free: 3.797 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.36, allocations: 1.342 MB / 0.8743 GB, free: 2.418 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.3601, allocations: 4 kB / 0.8743 GB, free: 2.414 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.3602, allocations: 36 kB / 0.8743 GB, free: 2.379 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.27e-05/0.3602, allocations: 28 kB / 0.8744 GB, free: 2.352 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003081/0.3633, allocations: 1.386 MB / 0.8757 GB, free: 0.9688 MB / 0.6856 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.006483/0.3698, allocations: 5.387 MB / 0.881 GB, free: 11.23 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00219/0.372, allocations: 1.092 MB / 0.882 GB, free: 10.1 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.3734, allocations: 0.6271 MB / 0.8826 GB, free: 9.469 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008942/0.3743, allocations: 1.24 MB / 0.8839 GB, free: 7.953 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001627/0.376, allocations: 0.6979 MB / 0.8845 GB, free: 7.238 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=69): time 3.476e-06/0.376, allocations: 0 / 0.8845 GB, free: 7.238 MB / 0.7012 GB Notification: Performance of matching and sorting (n=69): time 0.004739/0.3807, allocations: 1.793 MB / 0.8863 GB, free: 5.441 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.3808, allocations: 59.97 kB / 0.8864 GB, free: 5.371 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.3825, allocations: 1.3 MB / 0.8876 GB, free: 4.062 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 9.089e-05/0.3826, allocations: 49.69 kB / 0.8877 GB, free: 4.008 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006675/0.3833, allocations: 0.6583 MB / 0.8883 GB, free: 3.34 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.3835, allocations: 240.6 kB / 0.8885 GB, free: 3.102 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/0.3836, allocations: 12 kB / 0.8886 GB, free: 3.09 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3837, allocations: 341.9 kB / 0.8889 GB, free: 2.75 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.3851, allocations: 0.5485 MB / 0.8894 GB, free: 2.203 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.3867, allocations: 0.7788 MB / 0.8902 GB, free: 1.34 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.3882, allocations: 0.5941 MB / 0.8908 GB, free: 0.7422 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.3882, allocations: 4 kB / 0.8908 GB, free: 0.7383 MB / 0.7012 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003425/0.3916, allocations: 1.462 MB / 0.8922 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001718/0.3918, allocations: 211.5 kB / 0.8924 GB, free: 15 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.3918, allocations: 4 kB / 0.8924 GB, free: 15 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.3919, allocations: 7.953 kB / 0.8924 GB, free: 14.99 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.393, allocations: 275.6 kB / 0.8927 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/0.393, allocations: 4 kB / 0.8927 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.3946, allocations: 243 kB / 0.8929 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.3947, allocations: 35.97 kB / 0.8929 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.3947, allocations: 8 kB / 0.8929 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003067/0.3978, allocations: 1.317 MB / 0.8942 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3978, allocations: 4 kB / 0.8942 GB, free: 13.11 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.3978, allocations: 7.938 kB / 0.8942 GB, free: 13.11 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.3989, allocations: 264 kB / 0.8945 GB, free: 12.85 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.399, allocations: 11.94 kB / 0.8945 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.4004, allocations: 239.1 kB / 0.8947 GB, free: 12.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.879e-05/0.4005, allocations: 39.97 kB / 0.8948 GB, free: 12.56 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 ($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.0007102/0.4012, allocations: 420.8 kB / 0.8952 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.4015, allocations: 142.2 kB / 0.8953 GB, free: 12 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.4052, allocations: 1.536 MB / 0.8968 GB, free: 10.44 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.4052, allocations: 11.94 kB / 0.8968 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.4052, allocations: 4 kB / 0.8968 GB, free: 10.43 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003121/0.4083, allocations: 1.3 MB / 0.8981 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007648/0.416, allocations: 3.277 MB / 0.9013 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.416, allocations: 4 kB / 0.9013 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.4172, allocations: 236.2 kB / 0.9015 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.26e-05/0.4172, allocations: 8 kB / 0.9015 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.229e-05/0.4173, allocations: 27.97 kB / 0.9016 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.336e-05/0.4173, allocations: 11.94 kB / 0.9016 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4173, allocations: 4 kB / 0.9016 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005519/0.4228, allocations: 2.333 MB / 0.9038 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000873/0.4237, allocations: 370.8 kB / 0.9042 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003317/0.4241, allocations: 19.98 kB / 0.9042 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.4256, allocations: 183 kB / 0.9044 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.4258, allocations: 76.36 kB / 0.9045 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.4259, allocations: 39.97 kB / 0.9045 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001712/0.4276, allocations: 0.9254 MB / 0.9054 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of sort global known variables: time 4.81e-07/0.4276, allocations: 0 / 0.9054 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002628/0.4302, allocations: 0.7836 MB / 0.9062 GB, free: 0.5625 MB / 0.7169 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.0012/0.4314, allocations: 0.491 MB / 0.9067 GB, free: 76 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.005209/0.4367, allocations: 2.093 MB / 0.9087 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.4367, allocations: 0 / 0.9087 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.4386, allocations: 0.7186 MB / 0.9094 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/0.4429, allocations: 0.7654 MB / 0.9101 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00596/0.4488, allocations: 3.221 MB / 0.9133 GB, free: 9.176 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008433/0.4497, allocations: 1.238 MB / 0.9145 GB, free: 7.906 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002006/0.4517, allocations: 378.5 kB / 0.9149 GB, free: 7.535 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000392/0.4521, allocations: 123.3 kB / 0.915 GB, free: 7.414 MB / 0.7325 GB Notification: Performance of SimCode: time 1.213e-06/0.4521, allocations: 4 kB / 0.915 GB, free: 7.41 MB / 0.7325 GB Notification: Performance of Templates: time 0.5143/0.9664, allocations: 29.32 MB / 0.9436 GB, free: 126.1 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: