Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0015/0.0015, allocations: 191.9 kB / 16.14 MB, free: 6.711 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.208/1.208, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.155/2.155, allocations: 390.2 MB / 0.6643 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.89 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5532/0.5545, allocations: 140.4 MB / 0.949 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05316/0.6077, allocations: 60.09 MB / 1.008 GB, free: 5.863 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01826/0.626, allocations: 13.27 MB / 1.021 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002362/0.6284, allocations: 63.56 kB / 1.021 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.6307, allocations: 0.8142 MB / 1.022 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005506/0.6362, allocations: 2.146 MB / 1.024 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003586/0.6398, allocations: 1.402 MB / 1.025 GB, free: 4.137 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005693/0.6455, allocations: 5.523 MB / 1.03 GB, free: 14.6 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.647, allocations: 1.122 MB / 1.031 GB, free: 13.45 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002261/0.6493, allocations: 1.353 MB / 1.033 GB, free: 12.09 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001346/0.6506, allocations: 1.198 MB / 1.034 GB, free: 10.88 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.6508, allocations: 72 kB / 1.034 GB, free: 10.81 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002967/0.6538, allocations: 1.388 MB / 1.035 GB, free: 9.422 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003317/0.6541, allocations: 366.4 kB / 1.036 GB, free: 9.062 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0008011/0.655, allocations: 0.8353 MB / 1.037 GB, free: 8.223 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003006/0.658, allocations: 2.718 MB / 1.039 GB, free: 5.496 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.658, allocations: 4 kB / 1.039 GB, free: 5.492 MB / 0.795 GB Notification: Performance of FrontEnd: time 8.01e-07/0.658, allocations: 0 / 1.039 GB, free: 5.492 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.802e-05/0.658, allocations: 0 / 1.039 GB, free: 5.492 MB / 0.795 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.003572/0.6616, allocations: 2.209 MB / 1.041 GB, free: 3.219 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.6616, allocations: 15.97 kB / 1.041 GB, free: 3.203 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001716/0.6618, allocations: 143.9 kB / 1.042 GB, free: 3.055 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003599/0.6654, allocations: 0.6071 MB / 1.042 GB, free: 2.445 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/0.6675, allocations: 1.393 MB / 1.043 GB, free: 1 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.6677, allocations: 149.3 kB / 1.044 GB, free: 0.8398 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.6678, allocations: 107.9 kB / 1.044 GB, free: 0.7344 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002862/0.6707, allocations: 1.311 MB / 1.045 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.6707, allocations: 0 / 1.045 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.6709, allocations: 36 kB / 1.045 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-05/0.6709, allocations: 31.92 kB / 1.045 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003548/0.6744, allocations: 1.323 MB / 1.046 GB, free: 14 MB / 0.8106 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.006528/0.681, allocations: 5.375 MB / 1.052 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.6834, allocations: 1.047 MB / 1.053 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.685, allocations: 0.6057 MB / 1.053 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000913/0.6859, allocations: 1.24 MB / 1.054 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001771/0.6877, allocations: 0.6627 MB / 1.055 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 3.457e-06/0.6877, allocations: 0 / 1.055 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.004952/0.6927, allocations: 1.699 MB / 1.057 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.6927, allocations: 59.97 kB / 1.057 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.6943, allocations: 1.32 MB / 1.058 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.226e-05/0.6944, allocations: 45.7 kB / 1.058 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005473/0.695, allocations: 0.6661 MB / 1.059 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/0.6952, allocations: 240.6 kB / 1.059 GB, free: 316 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000289/0.6955, allocations: 166.5 kB / 1.059 GB, free: 144 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.6957, allocations: 341.9 kB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/0.6972, allocations: 0.5239 MB / 1.06 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.6989, allocations: 0.7586 MB / 1.061 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003049/0.702, allocations: 1.139 MB / 1.062 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.702, allocations: 0 / 1.062 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003711/0.7057, allocations: 1.411 MB / 1.063 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.7058, allocations: 41.62 kB / 1.063 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.7058, allocations: 4.25 kB / 1.063 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.7058, allocations: 12 kB / 1.063 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.7071, allocations: 247.6 kB / 1.064 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.7071, allocations: 8 kB / 1.064 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.7086, allocations: 230.9 kB / 1.064 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.683e-05/0.7087, allocations: 35.98 kB / 1.064 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001852/0.7106, allocations: 0.7985 MB / 1.065 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001624/0.7122, allocations: 0.743 MB / 1.065 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002869/0.7151, allocations: 1.135 MB / 1.066 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.017e-06/0.7151, allocations: 3.984 kB / 1.066 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003466/0.7186, allocations: 1.399 MB / 1.068 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/0.7186, allocations: 34.95 kB / 1.068 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.7186, allocations: 0 / 1.068 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.7186, allocations: 11.94 kB / 1.068 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.7198, allocations: 255.7 kB / 1.068 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.7199, allocations: 8 kB / 1.068 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.7213, allocations: 211.3 kB / 1.068 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-05/0.7214, allocations: 35.98 kB / 1.068 GB, free: 6.48 MB / 0.8262 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.0002576/0.7216, allocations: 236 kB / 1.069 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.7219, allocations: 150.1 kB / 1.069 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003795/0.7257, allocations: 1.47 MB / 1.07 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.7257, allocations: 8 kB / 1.07 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.7257, allocations: 0 / 1.07 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003186/0.7289, allocations: 1.234 MB / 1.071 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006049/0.735, allocations: 3.214 MB / 1.074 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.735, allocations: 8.562 kB / 1.074 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.7361, allocations: 223.7 kB / 1.075 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-05/0.7361, allocations: 11.92 kB / 1.075 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.638e-05/0.7362, allocations: 27.92 kB / 1.075 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.694e-06/0.7362, allocations: 8 kB / 1.075 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.7362, allocations: 7.938 kB / 1.075 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005173/0.7414, allocations: 2.232 MB / 1.077 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005139/0.7419, allocations: 358.8 kB / 1.077 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/0.7422, allocations: 20 kB / 1.077 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/0.7435, allocations: 159.7 kB / 1.077 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.7437, allocations: 76.34 kB / 1.078 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.609e-05/0.7438, allocations: 39.97 kB / 1.078 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001201/0.745, allocations: 0.9412 MB / 1.078 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.745, allocations: 0 / 1.078 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001883/0.7469, allocations: 0.7838 MB / 1.079 GB, free: 10.98 MB / 0.8419 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.006323/0.7532, allocations: 3.198 MB / 1.082 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00508/0.7583, allocations: 2.007 MB / 1.084 GB, free: 5.688 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.7583, allocations: 0 / 1.084 GB, free: 5.688 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.7601, allocations: 0.6796 MB / 1.085 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00339/0.7635, allocations: 0.7542 MB / 1.086 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0238/0.7873, allocations: 13.65 MB / 1.099 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007967/0.7882, allocations: 1.249 MB / 1.1 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001674/0.7898, allocations: 367.5 kB / 1.101 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008206/0.7907, allocations: 0.593 MB / 1.101 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of SimCode: time 8.62e-07/0.7907, allocations: 0 / 1.101 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.584/1.375, allocations: 42.59 MB / 1.143 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/1.375, allocations: 249.9 kB / 1.143 GB, free: 9.5 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.886/4.261, allocations: 0 / 1.143 GB, free: 9.5 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)