Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.ElectricReformulatedEIR,fileNamePrefix="Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_10_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.001168/0.001168, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001409/0.00141, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.357/1.357, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.317/2.317, allocations: 437 MB / 0.7101 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 67.89 kB / 0.8688 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5092/0.5104, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05272/0.5631, allocations: 60.1 MB / 1.076 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01542/0.5786, allocations: 13.15 MB / 1.088 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.5799, allocations: 71.5 kB / 1.089 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001832/0.5818, allocations: 0.8376 MB / 1.089 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004012/0.5858, allocations: 2.166 MB / 1.091 GB, free: 6.152 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002946/0.5888, allocations: 1.459 MB / 1.093 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003754/0.5925, allocations: 4.341 MB / 1.097 GB, free: 364 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.5939, allocations: 1.334 MB / 1.098 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.5963, allocations: 1.586 MB / 1.1 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.5974, allocations: 1.248 MB / 1.101 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.5976, allocations: 144 kB / 1.101 GB, free: 12 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.5999, allocations: 1.513 MB / 1.103 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003565/0.6002, allocations: 434.5 kB / 1.103 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007671/0.601, allocations: 0.925 MB / 1.104 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002881/0.6039, allocations: 2.82 MB / 1.107 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.6039, allocations: 0 / 1.107 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6039, allocations: 0 / 1.107 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.581e-05/0.6039, allocations: 0 / 1.107 GB, free: 6.305 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.003134/0.6071, allocations: 2.213 MB / 1.109 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.6071, allocations: 8.031 kB / 1.109 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.6073, allocations: 151.9 kB / 1.109 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003412/0.6107, allocations: 0.5602 MB / 1.11 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.6125, allocations: 1.427 MB / 1.111 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.6127, allocations: 145.4 kB / 1.111 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.6128, allocations: 107.9 kB / 1.111 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002654/0.6155, allocations: 1.326 MB / 1.113 GB, free: 204 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.6155, allocations: 3.938 kB / 1.113 GB, free: 200 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.627e-05/0.6156, allocations: 43.98 kB / 1.113 GB, free: 156 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.14e-05/0.6157, allocations: 31.92 kB / 1.113 GB, free: 124 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00338/0.6191, allocations: 1.339 MB / 1.114 GB, free: 14.79 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.006227/0.6253, allocations: 5.478 MB / 1.119 GB, free: 8.953 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002308/0.6276, allocations: 1.067 MB / 1.12 GB, free: 7.844 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.6291, allocations: 0.6075 MB / 1.121 GB, free: 7.23 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008032/0.6299, allocations: 1.232 MB / 1.122 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.6316, allocations: 0.6705 MB / 1.123 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 2.134e-06/0.6316, allocations: 0 / 1.123 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.004542/0.6362, allocations: 1.703 MB / 1.125 GB, free: 3.332 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.6362, allocations: 63.97 kB / 1.125 GB, free: 3.258 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.6376, allocations: 1.332 MB / 1.126 GB, free: 1.918 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.828e-05/0.6377, allocations: 45.7 kB / 1.126 GB, free: 1.867 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004992/0.6382, allocations: 0.6778 MB / 1.127 GB, free: 1.18 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000211/0.6384, allocations: 232.6 kB / 1.127 GB, free: 0.9492 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002817/0.6387, allocations: 178.4 kB / 1.127 GB, free: 0.7695 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.6388, allocations: 334 kB / 1.127 GB, free: 448 kB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.6403, allocations: 0.5356 MB / 1.128 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.6419, allocations: 0.7595 MB / 1.129 GB, free: 15.05 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.6448, allocations: 1.156 MB / 1.13 GB, free: 13.85 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.6448, allocations: 0 / 1.13 GB, free: 13.85 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003398/0.6482, allocations: 1.426 MB / 1.131 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.6483, allocations: 41.64 kB / 1.131 GB, free: 12.36 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.6483, allocations: 0 / 1.131 GB, free: 12.36 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.6483, allocations: 8 kB / 1.131 GB, free: 12.36 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.6495, allocations: 256 kB / 1.131 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.6495, allocations: 11.94 kB / 1.131 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.6509, allocations: 223 kB / 1.132 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.221e-05/0.651, allocations: 39.97 kB / 1.132 GB, free: 11.84 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001789/0.6528, allocations: 0.7907 MB / 1.132 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00159/0.6544, allocations: 0.7594 MB / 1.133 GB, free: 10.2 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002704/0.6571, allocations: 1.144 MB / 1.134 GB, free: 9.004 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.645e-06/0.6571, allocations: 4 kB / 1.134 GB, free: 9 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003376/0.6605, allocations: 1.419 MB / 1.136 GB, free: 7.566 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.6606, allocations: 34.8 kB / 1.136 GB, free: 7.527 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.6606, allocations: 7.938 kB / 1.136 GB, free: 7.52 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.394e-06/0.6606, allocations: 8 kB / 1.136 GB, free: 7.512 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.6618, allocations: 251.6 kB / 1.136 GB, free: 7.266 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.6618, allocations: 11.98 kB / 1.136 GB, free: 7.254 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/0.6632, allocations: 207.3 kB / 1.136 GB, free: 7.051 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.718e-05/0.6633, allocations: 47.97 kB / 1.136 GB, free: 7.004 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.0002476/0.6636, allocations: 232 kB / 1.136 GB, free: 6.77 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.6638, allocations: 158.1 kB / 1.137 GB, free: 6.613 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00359/0.6674, allocations: 1.47 MB / 1.138 GB, free: 5.125 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.6674, allocations: 12 kB / 1.138 GB, free: 5.113 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6674, allocations: 4 kB / 1.138 GB, free: 5.109 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002991/0.6704, allocations: 1.234 MB / 1.139 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005887/0.6763, allocations: 3.23 MB / 1.142 GB, free: 464 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.6763, allocations: 7.938 kB / 1.142 GB, free: 456 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.6774, allocations: 220.2 kB / 1.143 GB, free: 236 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.6774, allocations: 8 kB / 1.143 GB, free: 228 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.821e-05/0.6775, allocations: 27.97 kB / 1.143 GB, free: 200 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.196e-06/0.6775, allocations: 8 kB / 1.143 GB, free: 192 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/0.6775, allocations: 11.88 kB / 1.143 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005058/0.6826, allocations: 2.243 MB / 1.145 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005065/0.6831, allocations: 358.8 kB / 1.145 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.6833, allocations: 20.06 kB / 1.145 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.6847, allocations: 163.7 kB / 1.145 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.6849, allocations: 76.36 kB / 1.145 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.723e-05/0.685, allocations: 39.91 kB / 1.146 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001183/0.6862, allocations: 0.9493 MB / 1.146 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6862, allocations: 0 / 1.146 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00181/0.688, allocations: 0.7993 MB / 1.147 GB, free: 11.45 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.006214/0.6942, allocations: 3.206 MB / 1.15 GB, free: 8.176 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005177/0.6994, allocations: 2.085 MB / 1.152 GB, free: 6.062 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.6994, allocations: 0 / 1.152 GB, free: 6.062 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.7012, allocations: 0.6874 MB / 1.153 GB, free: 5.379 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/0.7043, allocations: 0.7797 MB / 1.154 GB, free: 4.621 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/0.7283, allocations: 13.92 MB / 1.167 GB, free: 6.145 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007125/0.729, allocations: 1.245 MB / 1.169 GB, free: 4.867 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001487/0.7305, allocations: 376.5 kB / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007543/0.7313, allocations: 0.6047 MB / 1.17 GB, free: 3.891 MB / 0.92 GB Notification: Performance of SimCode: time 5.91e-07/0.7313, allocations: 0 / 1.17 GB, free: 3.891 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4592/1.19, allocations: 43.72 MB / 1.212 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002811/1.191, allocations: 254.2 kB / 1.213 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.76/3.951, allocations: 0 / 1.213 GB, free: 8.488 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)