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.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.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.001374/0.001374, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001298/0.001298, allocations: 188.3 kB / 16.13 MB, free: 6.645 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.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.566 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.317/2.317, allocations: 437 MB / 0.71 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 59.91 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6405/0.6422, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06011/0.7024, allocations: 60.25 MB / 1.076 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01771/0.7201, allocations: 13.26 MB / 1.088 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002496/0.7226, allocations: 59.62 kB / 1.089 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002636/0.7253, allocations: 0.818 MB / 1.089 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005833/0.7312, allocations: 2.146 MB / 1.091 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004021/0.7352, allocations: 1.412 MB / 1.093 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006268/0.7415, allocations: 5.571 MB / 1.098 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.7432, allocations: 1.138 MB / 1.099 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.7459, allocations: 1.349 MB / 1.101 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.7475, allocations: 1.217 MB / 1.102 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002485/0.7477, allocations: 72 kB / 1.102 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.7508, allocations: 1.38 MB / 1.103 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003912/0.7512, allocations: 366.4 kB / 1.104 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001/0.7522, allocations: 0.8431 MB / 1.104 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003589/0.7558, allocations: 2.714 MB / 1.107 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.7559, allocations: 0 / 1.107 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.745e-06/0.7559, allocations: 0 / 1.107 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.012e-05/0.7559, allocations: 7.938 kB / 1.107 GB, free: 5.887 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.003601/0.7595, allocations: 2.187 MB / 1.109 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.7596, allocations: 11.97 kB / 1.109 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.7597, allocations: 147.9 kB / 1.109 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003467/0.7632, allocations: 0.5525 MB / 1.11 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.7652, allocations: 1.406 MB / 1.111 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.7654, allocations: 145.4 kB / 1.111 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.7655, allocations: 100 kB / 1.112 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002757/0.7683, allocations: 1.326 MB / 1.113 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.7683, allocations: 0 / 1.113 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.966e-05/0.7684, allocations: 36 kB / 1.113 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.114e-05/0.7685, allocations: 27.94 kB / 1.113 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003391/0.7719, allocations: 1.339 MB / 1.114 GB, free: 14.44 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.006319/0.7782, allocations: 5.45 MB / 1.12 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005271/0.7835, allocations: 1.331 MB / 1.121 GB, free: 7.285 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/0.785, allocations: 0.6036 MB / 1.121 GB, free: 6.676 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008421/0.7859, allocations: 1.24 MB / 1.123 GB, free: 5.16 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.7875, allocations: 0.6588 MB / 1.123 GB, free: 4.492 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 2.685e-06/0.7875, allocations: 0 / 1.123 GB, free: 4.492 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.004712/0.7923, allocations: 1.688 MB / 1.125 GB, free: 2.797 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.7923, allocations: 59.97 kB / 1.125 GB, free: 2.727 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.7938, allocations: 1.279 MB / 1.126 GB, free: 1.438 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.675e-05/0.7939, allocations: 45.7 kB / 1.126 GB, free: 1.387 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004954/0.7944, allocations: 0.6503 MB / 1.127 GB, free: 0.7266 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.7946, allocations: 244.5 kB / 1.127 GB, free: 496 kB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/0.7949, allocations: 178.4 kB / 1.127 GB, free: 312 kB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.795, allocations: 338 kB / 1.128 GB, free: 15.97 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/0.7965, allocations: 0.5278 MB / 1.128 GB, free: 15.44 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/0.7982, allocations: 0.7439 MB / 1.129 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002985/0.8012, allocations: 1.148 MB / 1.13 GB, free: 13.41 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.8012, allocations: 4 kB / 1.13 GB, free: 13.41 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003799/0.805, allocations: 1.399 MB / 1.131 GB, free: 12 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.8051, allocations: 43.59 kB / 1.131 GB, free: 11.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/0.8051, allocations: 4 kB / 1.131 GB, free: 11.95 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.518e-05/0.8051, allocations: 15.94 kB / 1.131 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.8064, allocations: 255.5 kB / 1.132 GB, free: 11.68 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.8064, allocations: 15.92 kB / 1.132 GB, free: 11.66 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.8082, allocations: 222.9 kB / 1.132 GB, free: 11.45 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.82e-05/0.8083, allocations: 39.98 kB / 1.132 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001886/0.8102, allocations: 0.7868 MB / 1.133 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001609/0.8118, allocations: 0.7478 MB / 1.133 GB, free: 9.785 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003069/0.8149, allocations: 1.132 MB / 1.135 GB, free: 8.605 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.981e-06/0.8149, allocations: 4 kB / 1.135 GB, free: 8.602 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003604/0.8185, allocations: 1.399 MB / 1.136 GB, free: 7.184 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.8185, allocations: 33.7 kB / 1.136 GB, free: 7.145 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.8185, allocations: 0 / 1.136 GB, free: 7.145 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.197e-06/0.8186, allocations: 8 kB / 1.136 GB, free: 7.137 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.8198, allocations: 259.9 kB / 1.136 GB, free: 6.883 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.8198, allocations: 7.938 kB / 1.136 GB, free: 6.875 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.8215, allocations: 215.2 kB / 1.136 GB, free: 6.664 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.204e-05/0.8216, allocations: 39.97 kB / 1.136 GB, free: 6.625 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.000279/0.8219, allocations: 231.7 kB / 1.137 GB, free: 6.395 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002409/0.8221, allocations: 146.2 kB / 1.137 GB, free: 6.25 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003947/0.8261, allocations: 1.462 MB / 1.138 GB, free: 4.77 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.8261, allocations: 8 kB / 1.138 GB, free: 4.762 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.8261, allocations: 0 / 1.138 GB, free: 4.762 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003005/0.8291, allocations: 1.226 MB / 1.139 GB, free: 3.504 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006358/0.8355, allocations: 3.187 MB / 1.143 GB, free: 160 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.8355, allocations: 8 kB / 1.143 GB, free: 152 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.8368, allocations: 220 kB / 1.143 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.8368, allocations: 11.94 kB / 1.143 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.366e-05/0.8368, allocations: 27.92 kB / 1.143 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.878e-06/0.8369, allocations: 15.94 kB / 1.143 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.8369, allocations: 4 kB / 1.143 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005193/0.8421, allocations: 2.224 MB / 1.145 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005195/0.8426, allocations: 346.9 kB / 1.145 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.8428, allocations: 23.94 kB / 1.145 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.8443, allocations: 163.8 kB / 1.146 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.8444, allocations: 68.36 kB / 1.146 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-05/0.8445, allocations: 39.97 kB / 1.146 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001103/0.8456, allocations: 0.909 MB / 1.147 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8457, allocations: 0 / 1.147 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001834/0.8475, allocations: 0.8031 MB / 1.147 GB, free: 11.21 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.006452/0.854, allocations: 3.16 MB / 1.15 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005103/0.8591, allocations: 1.999 MB / 1.152 GB, free: 5.961 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.8591, allocations: 0 / 1.152 GB, free: 5.961 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001755/0.8608, allocations: 0.6796 MB / 1.153 GB, free: 5.285 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/0.8644, allocations: 0.7478 MB / 1.154 GB, free: 4.547 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02757/0.892, allocations: 13.47 MB / 1.167 GB, free: 6.52 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008672/0.8929, allocations: 1.238 MB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002251/0.8951, allocations: 375.5 kB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009104/0.8961, allocations: 0.5891 MB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of SimCode: time 5.41e-07/0.8961, allocations: 0 / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1998/1.096, allocations: 42.13 MB / 1.21 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/1.096, allocations: 230.5 kB / 1.21 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.93/4.026, allocations: 8 kB / 1.21 GB, free: 10.4 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)