Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.0015/0.0015, allocations: 108 kB / 15.61 MB, free: 152 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.001466/0.001466, allocations: 195.8 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.657/1.657, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.843/2.843, allocations: 472.6 MB / 0.7451 GB, free: 4.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 61.62 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3717, allocations: 159.9 MB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05644/0.4282, allocations: 60.59 MB / 1.127 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01933/0.4476, allocations: 13.26 MB / 1.14 GB, free: 412 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002706/0.4503, allocations: 75.56 kB / 1.14 GB, free: 336 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003573/0.454, allocations: 0.9628 MB / 1.141 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007538/0.4615, allocations: 2.32 MB / 1.144 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003974/0.4655, allocations: 1.582 MB / 1.145 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005238/0.4708, allocations: 4.318 MB / 1.149 GB, free: 7.133 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0017/0.4725, allocations: 1.338 MB / 1.151 GB, free: 5.766 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003266/0.4758, allocations: 1.56 MB / 1.152 GB, free: 4.203 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.4773, allocations: 1.202 MB / 1.153 GB, free: 2.996 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002197/0.4775, allocations: 144 kB / 1.153 GB, free: 2.855 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003096/0.4807, allocations: 1.501 MB / 1.155 GB, free: 1.352 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003826/0.481, allocations: 434.5 kB / 1.155 GB, free: 0.9258 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0009419/0.482, allocations: 0.9251 MB / 1.156 GB, free: 15.99 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003619/0.4856, allocations: 2.793 MB / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.4856, allocations: 0 / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4857, allocations: 0 / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.446e-05/0.4857, allocations: 0 / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.003626/0.4893, allocations: 2.218 MB / 1.161 GB, free: 10.91 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.4894, allocations: 8.031 kB / 1.161 GB, free: 10.91 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003625/0.493, allocations: 0.5644 MB / 1.162 GB, free: 10.34 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002382/0.4954, allocations: 1.402 MB / 1.163 GB, free: 8.883 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.4956, allocations: 141.4 kB / 1.163 GB, free: 8.734 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001845/0.4958, allocations: 100 kB / 1.163 GB, free: 8.637 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002981/0.4988, allocations: 1.33 MB / 1.165 GB, free: 7.27 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.4988, allocations: 4 kB / 1.165 GB, free: 7.266 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.4989, allocations: 40 kB / 1.165 GB, free: 7.227 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/0.4989, allocations: 27.98 kB / 1.165 GB, free: 7.199 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003823/0.5028, allocations: 1.343 MB / 1.166 GB, free: 5.859 MB / 0.92 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.008454/0.5113, allocations: 5.517 MB / 1.171 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.5139, allocations: 1.062 MB / 1.172 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.5155, allocations: 0.6075 MB / 1.173 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009718/0.5165, allocations: 1.232 MB / 1.174 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001816/0.5184, allocations: 0.6627 MB / 1.175 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 3.306e-06/0.5184, allocations: 0 / 1.175 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.00529/0.5237, allocations: 1.711 MB / 1.177 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.5237, allocations: 63.95 kB / 1.177 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.5257, allocations: 1.34 MB / 1.178 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.5259, allocations: 49.7 kB / 1.178 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006536/0.5265, allocations: 0.6778 MB / 1.179 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002625/0.5268, allocations: 244.4 kB / 1.179 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/0.5271, allocations: 174.5 kB / 1.179 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.5273, allocations: 334 kB / 1.179 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001554/0.5288, allocations: 0.5356 MB / 1.18 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.5306, allocations: 0.7561 MB / 1.181 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003034/0.5336, allocations: 1.16 MB / 1.182 GB, free: 4.867 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5337, allocations: 0 / 1.182 GB, free: 4.867 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00381/0.5375, allocations: 1.426 MB / 1.183 GB, free: 3.422 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.47e-05/0.5375, allocations: 39.36 kB / 1.183 GB, free: 3.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.5375, allocations: 4 kB / 1.183 GB, free: 3.375 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.5376, allocations: 4 kB / 1.183 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.5388, allocations: 263.9 kB / 1.183 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.59e-05/0.5388, allocations: 11.98 kB / 1.183 GB, free: 3.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.5403, allocations: 183 kB / 1.184 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.335e-05/0.5404, allocations: 39.98 kB / 1.184 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002034/0.5425, allocations: 0.8024 MB / 1.184 GB, free: 2.078 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001708/0.5442, allocations: 0.7528 MB / 1.185 GB, free: 1.246 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003047/0.5472, allocations: 1.144 MB / 1.186 GB, free: 52 kB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.577e-06/0.5473, allocations: 3.938 kB / 1.186 GB, free: 48 kB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.00395/0.5512, allocations: 1.415 MB / 1.188 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/0.5513, allocations: 41.62 kB / 1.188 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5513, allocations: 4.312 kB / 1.188 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.5513, allocations: 15.94 kB / 1.188 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.5525, allocations: 255.6 kB / 1.188 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.5525, allocations: 8 kB / 1.188 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.554, allocations: 171.4 kB / 1.188 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-05/0.5541, allocations: 39.97 kB / 1.188 GB, free: 14.09 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (chi.tru.y,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 (97): * Single equations (assignments): 96 * 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.0002918/0.5544, allocations: 228.7 kB / 1.188 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002464/0.5547, allocations: 158.1 kB / 1.189 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/0.5586, allocations: 1.47 MB / 1.19 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.5586, allocations: 8 kB / 1.19 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5586, allocations: 0 / 1.19 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003203/0.5619, allocations: 1.238 MB / 1.191 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006571/0.5684, allocations: 3.238 MB / 1.194 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.5685, allocations: 4 kB / 1.194 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.5696, allocations: 224 kB / 1.195 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.5697, allocations: 8 kB / 1.195 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.669e-05/0.5697, allocations: 31.98 kB / 1.195 GB, free: 7.277 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.888e-06/0.5698, allocations: 11.94 kB / 1.195 GB, free: 7.266 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5698, allocations: 4 kB / 1.195 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005653/0.5754, allocations: 2.243 MB / 1.197 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008587/0.5763, allocations: 358.7 kB / 1.197 GB, free: 4.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/0.5765, allocations: 27.98 kB / 1.197 GB, free: 4.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.5778, allocations: 119.9 kB / 1.197 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.578, allocations: 72.36 kB / 1.197 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.5781, allocations: 43.97 kB / 1.197 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00151/0.5796, allocations: 0.9611 MB / 1.198 GB, free: 3.355 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5796, allocations: 3.938 kB / 1.198 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002496/0.5821, allocations: 0.811 MB / 1.199 GB, free: 2.539 MB / 0.9512 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 (74): * Single equations (assignments): 66 * 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.001248/0.5834, allocations: 0.5332 MB / 1.2 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005657/0.5891, allocations: 2.078 MB / 1.202 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.5891, allocations: 0 / 1.202 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001908/0.591, allocations: 0.6874 MB / 1.202 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003513/0.5945, allocations: 0.7658 MB / 1.203 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006075/0.6006, allocations: 2.954 MB / 1.206 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008012/0.6014, allocations: 1.245 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001669/0.6031, allocations: 367.5 kB / 1.208 GB, free: 9.805 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.6035, allocations: 127.4 kB / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of SimCode: time 8.02e-07/0.6035, allocations: 0 / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of Templates: time 0.05541/0.6589, allocations: 31.98 MB / 1.239 GB, free: 10.09 MB / 0.9981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)