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.001046/0.001046, allocations: 96.62 kB / 15.36 MB, free: 0.7305 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.001515/0.001515, allocations: 173.2 kB / 16.27 MB, free: 6.66 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.601/1.601, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.925/1.925, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0006023/0.0006023, allocations: 15.47 kB / 0.6743 GB, free: 25.98 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2995, allocations: 116.3 MB / 0.7879 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05806/0.3576, allocations: 58.97 MB / 0.8455 GB, free: 388 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02178/0.3794, allocations: 13.05 MB / 0.8582 GB, free: 3.301 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003419/0.3829, allocations: 59.56 kB / 0.8583 GB, free: 3.242 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003626/0.3866, allocations: 0.8043 MB / 0.859 GB, free: 2.434 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.009943/0.3965, allocations: 2.133 MB / 0.8611 GB, free: 300 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.004836/0.4014, allocations: 1.407 MB / 0.8625 GB, free: 14.9 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.008158/0.4096, allocations: 5.514 MB / 0.8679 GB, free: 9.375 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00216/0.4118, allocations: 1.095 MB / 0.869 GB, free: 8.246 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003379/0.4152, allocations: 1.334 MB / 0.8703 GB, free: 6.906 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00195/0.4171, allocations: 1.155 MB / 0.8714 GB, free: 5.746 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002178/0.4174, allocations: 56 kB / 0.8714 GB, free: 5.691 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003414/0.4208, allocations: 1.364 MB / 0.8728 GB, free: 4.324 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0004213/0.4212, allocations: 350.4 kB / 0.8731 GB, free: 3.98 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.4224, allocations: 0.837 MB / 0.8739 GB, free: 3.133 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.004308/0.4267, allocations: 2.659 MB / 0.8765 GB, free: 476 kB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4267, allocations: 0 / 0.8765 GB, free: 476 kB / 0.6856 GB Notification: Performance of FrontEnd: time 3.596e-06/0.4267, allocations: 3.984 kB / 0.8765 GB, free: 472 kB / 0.6856 GB Notification: Performance of Transformations before backend: time 3.03e-05/0.4267, allocations: 0 / 0.8765 GB, free: 472 kB / 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.003829/0.4306, allocations: 1.902 MB / 0.8784 GB, free: 14.5 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.4306, allocations: 15.97 kB / 0.8784 GB, free: 14.48 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00346/0.4341, allocations: 0.6386 MB / 0.879 GB, free: 13.84 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002308/0.4364, allocations: 1.392 MB / 0.8804 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.4366, allocations: 145.4 kB / 0.8805 GB, free: 12.24 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.4368, allocations: 100 kB / 0.8806 GB, free: 12.14 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002926/0.4397, allocations: 1.338 MB / 0.8819 GB, free: 10.77 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.4398, allocations: 8 kB / 0.8819 GB, free: 10.76 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.4399, allocations: 39.98 kB / 0.882 GB, free: 10.72 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.406e-05/0.4399, allocations: 28 kB / 0.882 GB, free: 10.7 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003795/0.4437, allocations: 1.386 MB / 0.8833 GB, free: 9.309 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.007793/0.4515, allocations: 5.406 MB / 0.8886 GB, free: 3.555 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002507/0.4541, allocations: 1.088 MB / 0.8897 GB, free: 2.426 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/0.4557, allocations: 0.6339 MB / 0.8903 GB, free: 1.789 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009852/0.4567, allocations: 1.232 MB / 0.8915 GB, free: 288 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00179/0.4585, allocations: 0.7017 MB / 0.8922 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=69): time 3.256e-06/0.4585, allocations: 0 / 0.8922 GB, free: 15.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69): time 0.005165/0.4637, allocations: 1.801 MB / 0.894 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.4637, allocations: 67.95 kB / 0.894 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.4654, allocations: 1.308 MB / 0.8953 GB, free: 12.37 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.678e-05/0.4655, allocations: 45.7 kB / 0.8953 GB, free: 12.32 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005386/0.466, allocations: 0.6622 MB / 0.896 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002417/0.4663, allocations: 236.6 kB / 0.8962 GB, free: 11.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.4664, allocations: 73.69 kB / 0.8963 GB, free: 11.33 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4666, allocations: 333.9 kB / 0.8966 GB, free: 11 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.4681, allocations: 0.5562 MB / 0.8971 GB, free: 10.45 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.4698, allocations: 0.786 MB / 0.8979 GB, free: 9.578 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003103/0.473, allocations: 1.206 MB / 0.8991 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.473, allocations: 0 / 0.8991 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003897/0.4769, allocations: 1.477 MB / 0.9005 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.477, allocations: 215.4 kB / 0.9007 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.4771, allocations: 3.984 kB / 0.9007 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.4771, allocations: 8 kB / 0.9007 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.4783, allocations: 271.7 kB / 0.901 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.4784, allocations: 11.94 kB / 0.901 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.48, allocations: 235.1 kB / 0.9012 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.634e-05/0.4801, allocations: 43.97 kB / 0.9013 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/0.4801, allocations: 4 kB / 0.9013 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003447/0.4836, allocations: 1.313 MB / 0.9026 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4836, allocations: 7.875 kB / 0.9026 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-06/0.4836, allocations: 8 kB / 0.9026 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.4848, allocations: 268 kB / 0.9028 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.4848, allocations: 8 kB / 0.9029 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.4865, allocations: 243 kB / 0.9031 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/0.4866, allocations: 39.92 kB / 0.9031 GB, free: 4.125 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.0007715/0.4874, allocations: 435.5 kB / 0.9035 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.4876, allocations: 142.2 kB / 0.9037 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003868/0.4915, allocations: 1.536 MB / 0.9052 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.4915, allocations: 8 kB / 0.9052 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.4915, allocations: 11.92 kB / 0.9052 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003199/0.4947, allocations: 1.296 MB / 0.9065 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006512/0.5013, allocations: 3.277 MB / 0.9097 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.5013, allocations: 4 kB / 0.9097 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.5025, allocations: 244.2 kB / 0.9099 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.5025, allocations: 4 kB / 0.9099 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.856e-05/0.5026, allocations: 23.98 kB / 0.9099 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.5026, allocations: 11.94 kB / 0.9099 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.5026, allocations: 7.938 kB / 0.9099 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005509/0.5081, allocations: 2.337 MB / 0.9122 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.5091, allocations: 374.7 kB / 0.9126 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002319/0.5094, allocations: 16 kB / 0.9126 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.5109, allocations: 187.8 kB / 0.9128 GB, free: 9.918 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.5111, allocations: 72.36 kB / 0.9128 GB, free: 9.848 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-05/0.5112, allocations: 39.97 kB / 0.9129 GB, free: 9.809 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00134/0.5125, allocations: 0.941 MB / 0.9138 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5125, allocations: 0 / 0.9138 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002317/0.5148, allocations: 0.7876 MB / 0.9146 GB, free: 8.082 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.001173/0.516, allocations: 0.5137 MB / 0.9151 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005679/0.5217, allocations: 2.101 MB / 0.9171 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/0.5218, allocations: 4.125 kB / 0.9171 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.5237, allocations: 0.7146 MB / 0.9178 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004924/0.5287, allocations: 0.778 MB / 0.9186 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005655/0.5343, allocations: 3.321 MB / 0.9218 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.456/0.9904, allocations: 1.238 MB / 0.923 GB, free: 131 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002436/0.9929, allocations: 371.2 kB / 0.9234 GB, free: 131 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000494/0.9934, allocations: 129 kB / 0.9235 GB, free: 131 MB / 0.7325 GB Notification: Performance of SimCode: time 1.112e-06/0.9934, allocations: 0 / 0.9235 GB, free: 131 MB / 0.7325 GB Notification: Performance of Templates: time 0.06873/1.062, allocations: 31.08 MB / 0.9539 GB, free: 120.7 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: