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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001253/0.001253, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001266/0.001266, allocations: 193.6 kB / 16.14 MB, free: 6.734 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.221/1.221, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.305/2.305, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 67.89 kB / 0.8686 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5504/0.5518, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05331/0.6051, allocations: 60.24 MB / 1.076 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01709/0.6223, allocations: 13.32 MB / 1.089 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.6246, allocations: 63.62 kB / 1.089 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.6274, allocations: 0.8141 MB / 1.089 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00552/0.6329, allocations: 2.146 MB / 1.091 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003587/0.6365, allocations: 1.433 MB / 1.093 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005784/0.6423, allocations: 5.562 MB / 1.098 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001626/0.644, allocations: 1.134 MB / 1.099 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002385/0.6464, allocations: 1.353 MB / 1.101 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.6481, allocations: 1.217 MB / 1.102 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002995/0.6484, allocations: 76 kB / 1.102 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002918/0.6513, allocations: 1.423 MB / 1.103 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005263/0.6518, allocations: 362.5 kB / 1.104 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001351/0.6532, allocations: 0.8625 MB / 1.105 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004011/0.6572, allocations: 2.746 MB / 1.107 GB, free: 5.699 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6572, allocations: 0 / 1.107 GB, free: 5.699 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6572, allocations: 0 / 1.107 GB, free: 5.699 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.078e-05/0.6573, allocations: 0 / 1.107 GB, free: 5.699 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.005035/0.6624, allocations: 2.213 MB / 1.109 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.6624, allocations: 12.03 kB / 1.109 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002486/0.6627, allocations: 151.9 kB / 1.11 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003715/0.6664, allocations: 0.5602 MB / 1.11 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.6691, allocations: 1.426 MB / 1.112 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001725/0.6693, allocations: 145.4 kB / 1.112 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001848/0.6695, allocations: 99.98 kB / 1.112 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003141/0.6726, allocations: 1.334 MB / 1.113 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.6727, allocations: 3.938 kB / 1.113 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.6728, allocations: 43.92 kB / 1.113 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.6728, allocations: 27.94 kB / 1.113 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00375/0.6766, allocations: 1.343 MB / 1.114 GB, free: 14.17 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.00707/0.6837, allocations: 5.478 MB / 1.12 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002467/0.6861, allocations: 1.066 MB / 1.121 GB, free: 7.234 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.6877, allocations: 0.6036 MB / 1.121 GB, free: 6.625 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000879/0.6886, allocations: 1.236 MB / 1.123 GB, free: 5.113 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00176/0.6904, allocations: 0.6627 MB / 1.123 GB, free: 4.441 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 2.916e-06/0.6904, allocations: 0 / 1.123 GB, free: 4.441 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.004742/0.6951, allocations: 1.711 MB / 1.125 GB, free: 2.723 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.6952, allocations: 67.95 kB / 1.125 GB, free: 2.645 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.6968, allocations: 1.325 MB / 1.126 GB, free: 1.312 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.834e-05/0.6969, allocations: 45.7 kB / 1.126 GB, free: 1.262 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005085/0.6974, allocations: 0.67 MB / 1.127 GB, free: 0.582 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.6976, allocations: 240.6 kB / 1.127 GB, free: 352 kB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002847/0.6979, allocations: 178.4 kB / 1.127 GB, free: 168 kB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.698, allocations: 334 kB / 1.128 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.6996, allocations: 0.5356 MB / 1.128 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.7013, allocations: 0.7556 MB / 1.129 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.7042, allocations: 1.156 MB / 1.13 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.7042, allocations: 0 / 1.13 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00358/0.7078, allocations: 1.426 MB / 1.132 GB, free: 11.81 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/0.7079, allocations: 37.64 kB / 1.132 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.7079, allocations: 4.312 kB / 1.132 GB, free: 11.76 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.7079, allocations: 8 kB / 1.132 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.7091, allocations: 255.7 kB / 1.132 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.069e-05/0.7092, allocations: 11.94 kB / 1.132 GB, free: 11.49 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.7107, allocations: 223 kB / 1.132 GB, free: 11.27 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.953e-05/0.7108, allocations: 43.95 kB / 1.132 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001795/0.7126, allocations: 0.8024 MB / 1.133 GB, free: 10.42 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001628/0.7142, allocations: 0.7516 MB / 1.134 GB, free: 9.59 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002958/0.7172, allocations: 1.152 MB / 1.135 GB, free: 8.391 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.171e-06/0.7172, allocations: 4 kB / 1.135 GB, free: 8.387 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003637/0.7209, allocations: 1.411 MB / 1.136 GB, free: 6.957 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.7209, allocations: 40.05 kB / 1.136 GB, free: 6.914 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.7209, allocations: 7.938 kB / 1.136 GB, free: 6.906 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.721, allocations: 4 kB / 1.136 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.7221, allocations: 255.9 kB / 1.136 GB, free: 6.652 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.122e-05/0.7222, allocations: 15.92 kB / 1.136 GB, free: 6.637 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.7238, allocations: 203.3 kB / 1.137 GB, free: 6.438 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.961e-05/0.7239, allocations: 43.97 kB / 1.137 GB, free: 6.395 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.0002735/0.7241, allocations: 236 kB / 1.137 GB, free: 6.156 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.7244, allocations: 154.1 kB / 1.137 GB, free: 6.004 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003846/0.7283, allocations: 1.474 MB / 1.138 GB, free: 4.512 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.7283, allocations: 8 kB / 1.138 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.7283, allocations: 0 / 1.138 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003043/0.7314, allocations: 1.238 MB / 1.14 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006342/0.7377, allocations: 3.231 MB / 1.143 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.7378, allocations: 11.97 kB / 1.143 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.7388, allocations: 215.7 kB / 1.143 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.325e-05/0.7389, allocations: 8 kB / 1.143 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.768e-05/0.7389, allocations: 27.97 kB / 1.143 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.393e-06/0.7389, allocations: 4 kB / 1.143 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.363e-06/0.739, allocations: 11.94 kB / 1.143 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005257/0.7442, allocations: 2.243 MB / 1.145 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006037/0.7448, allocations: 354.8 kB / 1.146 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002641/0.7451, allocations: 20 kB / 1.146 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.7466, allocations: 167.7 kB / 1.146 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.7467, allocations: 72.36 kB / 1.146 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.551e-05/0.7468, allocations: 43.95 kB / 1.146 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001357/0.7482, allocations: 0.9454 MB / 1.147 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7482, allocations: 0 / 1.147 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002163/0.7504, allocations: 0.7993 MB / 1.148 GB, free: 10.84 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.006624/0.757, allocations: 3.215 MB / 1.151 GB, free: 7.562 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005363/0.7624, allocations: 2.011 MB / 1.153 GB, free: 5.523 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7624, allocations: 8.125 kB / 1.153 GB, free: 5.516 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.7642, allocations: 0.6911 MB / 1.153 GB, free: 4.828 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003609/0.7679, allocations: 0.7417 MB / 1.154 GB, free: 4.098 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02643/0.7943, allocations: 13.93 MB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008776/0.7952, allocations: 1.246 MB / 1.169 GB, free: 4.328 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001788/0.797, allocations: 380.9 kB / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008366/0.7979, allocations: 0.5969 MB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of SimCode: time 6.51e-07/0.7979, allocations: 0 / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.676/2.473, allocations: 42.82 MB / 1.212 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/2.474, allocations: 259 kB / 1.212 GB, free: 8.805 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.612/6.086, allocations: 0 / 1.212 GB, free: 8.805 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)