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.001025/0.001025, 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.001086/0.001086, allocations: 194.3 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.234/1.234, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.489/2.489, allocations: 437.1 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 59.91 kB / 0.8693 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7544/0.7558, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06602/0.8219, allocations: 60.62 MB / 1.077 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02612/0.848, allocations: 13.24 MB / 1.09 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003579/0.8516, allocations: 67.62 kB / 1.09 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003306/0.855, allocations: 0.9687 MB / 1.091 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008801/0.8638, allocations: 2.316 MB / 1.093 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005082/0.8689, allocations: 1.582 MB / 1.094 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006071/0.875, allocations: 4.304 MB / 1.099 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002655/0.8777, allocations: 1.357 MB / 1.1 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004418/0.8821, allocations: 1.565 MB / 1.101 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002594/0.8847, allocations: 1.206 MB / 1.103 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000632/0.8854, allocations: 144 kB / 1.103 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004548/0.8899, allocations: 1.501 MB / 1.104 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0007931/0.8907, allocations: 430.4 kB / 1.105 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001929/0.8927, allocations: 0.9173 MB / 1.105 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004774/0.8975, allocations: 2.796 MB / 1.108 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.8975, allocations: 3.938 kB / 1.108 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.654e-06/0.8975, allocations: 0 / 1.108 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.026e-05/0.8975, allocations: 0 / 1.108 GB, free: 5.152 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.003629/0.9011, allocations: 2.217 MB / 1.11 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.9012, allocations: 8.031 kB / 1.11 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001817/0.9014, allocations: 147.9 kB / 1.111 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003633/0.905, allocations: 0.5602 MB / 1.111 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/0.9072, allocations: 1.391 MB / 1.112 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/0.9073, allocations: 149.4 kB / 1.113 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.9075, allocations: 99.98 kB / 1.113 GB, free: 460 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002895/0.9104, allocations: 1.33 MB / 1.114 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.9104, allocations: 0 / 1.114 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.9106, allocations: 43.98 kB / 1.114 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.054e-05/0.9106, allocations: 27.94 kB / 1.114 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00368/0.9143, allocations: 1.339 MB / 1.115 GB, free: 13.68 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.007339/0.9216, allocations: 5.536 MB / 1.121 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002529/0.9242, allocations: 1.058 MB / 1.122 GB, free: 6.684 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001593/0.9258, allocations: 0.6075 MB / 1.122 GB, free: 6.07 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008918/0.9267, allocations: 1.24 MB / 1.124 GB, free: 4.555 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00177/0.9285, allocations: 0.6665 MB / 1.124 GB, free: 3.875 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 3.717e-06/0.9285, allocations: 0 / 1.124 GB, free: 3.875 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.008562/0.9371, allocations: 1.707 MB / 1.126 GB, free: 2.16 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.334e-05/0.9372, allocations: 63.97 kB / 1.126 GB, free: 2.086 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/0.9397, allocations: 1.336 MB / 1.127 GB, free: 0.7422 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.9398, allocations: 45.7 kB / 1.127 GB, free: 0.6914 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006262/0.9405, allocations: 0.67 MB / 1.128 GB, free: 12 kB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/0.9408, allocations: 240.6 kB / 1.128 GB, free: 15.77 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003147/0.9411, allocations: 178.4 kB / 1.128 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.9412, allocations: 345.9 kB / 1.129 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.9429, allocations: 0.5278 MB / 1.129 GB, free: 14.72 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.9447, allocations: 0.7573 MB / 1.13 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003251/0.948, allocations: 1.16 MB / 1.131 GB, free: 12.67 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.948, allocations: 4 kB / 1.131 GB, free: 12.67 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004014/0.9521, allocations: 1.415 MB / 1.132 GB, free: 11.24 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/0.9521, allocations: 49.66 kB / 1.133 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.9521, allocations: 4 kB / 1.133 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.9522, allocations: 4 kB / 1.133 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.9534, allocations: 251.6 kB / 1.133 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-05/0.9535, allocations: 8 kB / 1.133 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.9551, allocations: 187.1 kB / 1.133 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.9552, allocations: 43.97 kB / 1.133 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002071/0.9573, allocations: 0.7985 MB / 1.134 GB, free: 9.891 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001773/0.959, allocations: 0.7516 MB / 1.135 GB, free: 9.059 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003143/0.9622, allocations: 1.144 MB / 1.136 GB, free: 7.867 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.308e-06/0.9622, allocations: 4 kB / 1.136 GB, free: 7.863 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004145/0.9664, allocations: 1.419 MB / 1.137 GB, free: 6.426 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.867e-05/0.9664, allocations: 37.64 kB / 1.137 GB, free: 6.383 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.9665, allocations: 7.938 kB / 1.137 GB, free: 6.375 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.9665, allocations: 4 kB / 1.137 GB, free: 6.371 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.9678, allocations: 256 kB / 1.137 GB, free: 6.121 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.883e-05/0.9678, allocations: 11.94 kB / 1.137 GB, free: 6.109 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/0.9696, allocations: 171.3 kB / 1.137 GB, free: 5.941 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.9697, allocations: 39.98 kB / 1.138 GB, free: 5.902 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.0004078/0.9701, allocations: 231.7 kB / 1.138 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000497/0.9706, allocations: 154.1 kB / 1.138 GB, free: 5.52 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004306/0.9749, allocations: 1.482 MB / 1.139 GB, free: 4.02 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.975, allocations: 19.97 kB / 1.139 GB, free: 4 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.975, allocations: 0 / 1.139 GB, free: 4 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003343/0.9783, allocations: 1.238 MB / 1.141 GB, free: 2.73 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007606/0.986, allocations: 3.234 MB / 1.144 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.986, allocations: 8.5 kB / 1.144 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.9872, allocations: 223.7 kB / 1.144 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-05/0.9872, allocations: 8 kB / 1.144 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.771e-05/0.9873, allocations: 23.98 kB / 1.144 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.484e-05/0.9873, allocations: 11.94 kB / 1.144 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/0.9873, allocations: 7.984 kB / 1.144 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005842/0.9932, allocations: 2.247 MB / 1.146 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007558/0.994, allocations: 354.8 kB / 1.147 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003089/0.9943, allocations: 23.98 kB / 1.147 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/0.9958, allocations: 123.9 kB / 1.147 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.9959, allocations: 80.34 kB / 1.147 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.443e-05/0.996, allocations: 35.97 kB / 1.147 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001647/0.9977, allocations: 0.9611 MB / 1.148 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/0.9977, allocations: 0 / 1.148 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003161/1.001, allocations: 0.811 MB / 1.149 GB, free: 10.34 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.007791/1.009, allocations: 3.211 MB / 1.152 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006415/1.015, allocations: 2.085 MB / 1.154 GB, free: 4.957 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/1.015, allocations: 0 / 1.154 GB, free: 4.957 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00203/1.017, allocations: 0.6874 MB / 1.154 GB, free: 4.273 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004568/1.022, allocations: 0.7592 MB / 1.155 GB, free: 3.531 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03532/1.057, allocations: 13.49 MB / 1.168 GB, free: 5.488 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/1.058, allocations: 1.245 MB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001739/1.06, allocations: 372.1 kB / 1.17 GB, free: 3.844 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008497/1.061, allocations: 0.6086 MB / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of SimCode: time 5.51e-07/1.061, allocations: 0 / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3956/1.456, allocations: 44.47 MB / 1.214 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.028/10.48, allocations: 4.062 kB / 1.214 GB, free: 7.285 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)