Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.ElectricEIR,fileNamePrefix="Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR",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.001444/0.001444, 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.001653/0.001653, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.405/2.405, allocations: 437 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 63.91 kB / 0.8693 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.541/0.5425, allocations: 151.6 MB / 1.017 GB, free: 2.539 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.05431/0.5969, allocations: 60.62 MB / 1.077 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01783/0.6148, allocations: 13.21 MB / 1.089 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003342/0.6182, allocations: 75.56 kB / 1.09 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003262/0.6215, allocations: 0.957 MB / 1.09 GB, free: 7.434 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0066/0.6281, allocations: 2.31 MB / 1.093 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003581/0.6317, allocations: 1.568 MB / 1.094 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004271/0.636, allocations: 4.31 MB / 1.098 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001444/0.6374, allocations: 1.349 MB / 1.1 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.64, allocations: 1.569 MB / 1.101 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.6412, allocations: 1.202 MB / 1.103 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002052/0.6414, allocations: 140 kB / 1.103 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002715/0.6441, allocations: 1.474 MB / 1.104 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003442/0.6445, allocations: 418.5 kB / 1.104 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007931/0.6453, allocations: 0.9173 MB / 1.105 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003164/0.6484, allocations: 2.75 MB / 1.108 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.6485, allocations: 0 / 1.108 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.176e-06/0.6485, allocations: 3.984 kB / 1.108 GB, free: 5.363 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.124e-05/0.6485, allocations: 0 / 1.108 GB, free: 5.363 MB / 0.8575 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.003455/0.652, allocations: 2.185 MB / 1.11 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.652, allocations: 8.031 kB / 1.11 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.6522, allocations: 151.9 kB / 1.11 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003501/0.6557, allocations: 0.5525 MB / 1.111 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.6576, allocations: 1.371 MB / 1.112 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.6577, allocations: 145.4 kB / 1.112 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.6579, allocations: 100 kB / 1.112 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002668/0.6606, allocations: 1.326 MB / 1.114 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.6606, allocations: 11.89 kB / 1.114 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.6607, allocations: 43.92 kB / 1.114 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.224e-05/0.6608, allocations: 31.88 kB / 1.114 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003529/0.6643, allocations: 1.327 MB / 1.115 GB, free: 13.95 MB / 0.8731 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.006272/0.6706, allocations: 5.481 MB / 1.121 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00529/0.6759, allocations: 1.344 MB / 1.122 GB, free: 6.742 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.6775, allocations: 0.5997 MB / 1.122 GB, free: 6.137 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007987/0.6783, allocations: 1.24 MB / 1.124 GB, free: 4.621 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001694/0.68, allocations: 0.655 MB / 1.124 GB, free: 3.953 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 2.355e-06/0.68, allocations: 0 / 1.124 GB, free: 3.953 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.004811/0.6848, allocations: 1.688 MB / 1.126 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.6849, allocations: 59.97 kB / 1.126 GB, free: 2.188 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.6863, allocations: 1.291 MB / 1.127 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.327e-05/0.6864, allocations: 45.64 kB / 1.127 GB, free: 0.8359 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004755/0.6869, allocations: 0.6581 MB / 1.128 GB, free: 172 kB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.6871, allocations: 244.6 kB / 1.128 GB, free: 15.92 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002759/0.6874, allocations: 174.5 kB / 1.128 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.812e-05/0.6875, allocations: 334 kB / 1.129 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.689, allocations: 0.5317 MB / 1.129 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.6907, allocations: 0.7516 MB / 1.13 GB, free: 14.05 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003002/0.6937, allocations: 1.136 MB / 1.131 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.6938, allocations: 4 kB / 1.131 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003545/0.6973, allocations: 1.407 MB / 1.132 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.6974, allocations: 33.7 kB / 1.132 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.6974, allocations: 3.938 kB / 1.132 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.6974, allocations: 11.94 kB / 1.132 GB, free: 11.38 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.6986, allocations: 260 kB / 1.133 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.526e-05/0.6986, allocations: 11.94 kB / 1.133 GB, free: 11.11 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.6999, allocations: 183.1 kB / 1.133 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.98e-05/0.7, allocations: 35.98 kB / 1.133 GB, free: 10.9 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001795/0.7018, allocations: 0.7829 MB / 1.134 GB, free: 10.11 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001624/0.7034, allocations: 0.7478 MB / 1.134 GB, free: 9.281 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002912/0.7063, allocations: 1.132 MB / 1.135 GB, free: 8.102 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.345e-06/0.7063, allocations: 0 / 1.135 GB, free: 8.102 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003439/0.7098, allocations: 1.399 MB / 1.137 GB, free: 6.684 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.7098, allocations: 41.62 kB / 1.137 GB, free: 6.637 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.7098, allocations: 4 kB / 1.137 GB, free: 6.633 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-06/0.7098, allocations: 8 kB / 1.137 GB, free: 6.625 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.711, allocations: 259.9 kB / 1.137 GB, free: 6.371 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.711, allocations: 11.98 kB / 1.137 GB, free: 6.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.7123, allocations: 179.4 kB / 1.137 GB, free: 6.184 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-05/0.7124, allocations: 35.98 kB / 1.137 GB, free: 6.148 MB / 0.8887 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.0001945/0.7126, allocations: 228.1 kB / 1.138 GB, free: 5.918 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002151/0.7128, allocations: 154.1 kB / 1.138 GB, free: 5.766 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/0.7164, allocations: 1.458 MB / 1.139 GB, free: 4.289 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.7165, allocations: 4 kB / 1.139 GB, free: 4.285 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.7165, allocations: 4 kB / 1.139 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003058/0.7195, allocations: 1.23 MB / 1.14 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005651/0.7252, allocations: 3.202 MB / 1.143 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.7252, allocations: 4 kB / 1.143 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.7263, allocations: 223.9 kB / 1.144 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.7263, allocations: 11.94 kB / 1.144 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.7264, allocations: 27.98 kB / 1.144 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.7264, allocations: 15.98 kB / 1.144 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.7264, allocations: 7.938 kB / 1.144 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004988/0.7314, allocations: 2.212 MB / 1.146 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.7319, allocations: 354.8 kB / 1.146 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/0.7321, allocations: 23.92 kB / 1.146 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.7333, allocations: 127.9 kB / 1.146 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.7335, allocations: 68.36 kB / 1.146 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.335e-05/0.7335, allocations: 39.97 kB / 1.147 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001032/0.7346, allocations: 0.9207 MB / 1.147 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7346, allocations: 4 kB / 1.147 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001594/0.7362, allocations: 0.8032 MB / 1.148 GB, free: 10.74 MB / 0.9044 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.006253/0.7424, allocations: 3.163 MB / 1.151 GB, free: 7.512 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005275/0.7477, allocations: 2.054 MB / 1.153 GB, free: 5.434 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.7478, allocations: 4.188 kB / 1.153 GB, free: 5.43 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.7495, allocations: 0.6833 MB / 1.154 GB, free: 4.75 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/0.7527, allocations: 0.7795 MB / 1.155 GB, free: 3.992 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0217/0.7745, allocations: 13.03 MB / 1.167 GB, free: 6.402 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007488/0.7752, allocations: 1.237 MB / 1.169 GB, free: 5.137 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00154/0.7768, allocations: 367.5 kB / 1.169 GB, free: 4.773 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007655/0.7776, allocations: 0.593 MB / 1.17 GB, free: 4.18 MB / 0.92 GB Notification: Performance of SimCode: time 3.3e-07/0.7776, allocations: 0 / 1.17 GB, free: 4.18 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.669/6.447, allocations: 43.77 MB / 1.212 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/17.47, allocations: 9.734 kB / 1.212 GB, free: 8.906 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)