Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.76/1.76, allocations: 289.9 MB / 297.4 MB, free: 6.418 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 172.8 kB / 366.7 MB, free: 1.684 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.775/1.775, allocations: 205.2 MB / 0.626 GB, free: 7.199 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008831/0.0008834, allocations: 87.38 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.399e-05/2.444e-05, allocations: 4 kB / 0.8598 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7213/0.7214, allocations: 116.3 MB / 0.9733 GB, free: 76.44 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.103/1.824, allocations: 417.5 MB / 1.381 GB, free: 139.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/1.824, allocations: 91.7 kB / 1.381 GB, free: 139.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.555/4.379, allocations: 0.6199 GB / 2.001 GB, free: 168.2 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.643e-06/4.379, allocations: 0 / 2.001 GB, free: 168.2 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.000164/4.379, allocations: 43.06 kB / 2.001 GB, free: 168.2 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.004046/4.383, allocations: 1.779 MB / 2.003 GB, free: 167.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/4.383, allocations: 10.88 kB / 2.003 GB, free: 167.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003783/4.387, allocations: 0.6325 MB / 2.003 GB, free: 167.6 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004098/4.391, allocations: 1.651 MB / 2.005 GB, free: 167.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/4.392, allocations: 106 kB / 2.005 GB, free: 167.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001919/4.392, allocations: 64.8 kB / 2.005 GB, free: 167.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002011/4.394, allocations: 0.932 MB / 2.006 GB, free: 167.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/4.395, allocations: 0.9909 MB / 2.007 GB, free: 167.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/4.396, allocations: 0 / 2.007 GB, free: 167.1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.139e-05/4.396, allocations: 7.062 kB / 2.007 GB, free: 167.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.482e-05/4.396, allocations: 24.66 kB / 2.007 GB, free: 167.1 MB / 0.948 GB Warning: The model contains alias variables with conflicting start and/or 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.006917/4.403, allocations: 5.244 MB / 2.012 GB, free: 164.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/4.404, allocations: 0.6774 MB / 2.013 GB, free: 164.7 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005431/4.404, allocations: 440.9 kB / 2.013 GB, free: 164.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007456/4.405, allocations: 1.245 MB / 2.015 GB, free: 163.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006748/4.406, allocations: 0.5254 MB / 2.015 GB, free: 163.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=67): time 2.434e-06/4.406, allocations: 0 / 2.015 GB, free: 163.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=67): time 0.001929/4.408, allocations: 0.9158 MB / 2.016 GB, free: 163.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/4.408, allocations: 111.3 kB / 2.016 GB, free: 163 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/4.409, allocations: 1.038 MB / 2.017 GB, free: 162.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.097e-05/4.409, allocations: 32.27 kB / 2.017 GB, free: 162.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005178/4.41, allocations: 0.6904 MB / 2.018 GB, free: 162.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/4.41, allocations: 220.5 kB / 2.018 GB, free: 162.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.321e-05/4.41, allocations: 0 / 2.018 GB, free: 162.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.03e-05/4.41, allocations: 334.5 kB / 2.018 GB, free: 162.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004628/4.41, allocations: 345.9 kB / 2.019 GB, free: 162.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005963/4.411, allocations: 0.5935 MB / 2.019 GB, free: 161.9 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009125/4.412, allocations: 439.1 kB / 2.02 GB, free: 161.9 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/4.412, allocations: 0 / 2.02 GB, free: 161.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001828/4.414, allocations: 1.022 MB / 2.021 GB, free: 161.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002941/4.414, allocations: 1.2 MB / 2.022 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/4.414, allocations: 3.938 kB / 2.022 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/4.414, allocations: 7.719 kB / 2.022 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/4.415, allocations: 279.9 kB / 2.022 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/4.415, allocations: 7.906 kB / 2.022 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/4.417, allocations: 207.3 kB / 2.022 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/4.417, allocations: 52.12 kB / 2.022 GB, free: 160.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/4.417, allocations: 4.844 kB / 2.022 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001498/4.419, allocations: 0.8532 MB / 2.023 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/4.419, allocations: 7.766 kB / 2.023 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.265e-06/4.419, allocations: 7.688 kB / 2.023 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/4.42, allocations: 272.9 kB / 2.023 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/4.42, allocations: 9.531 kB / 2.023 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/4.422, allocations: 192.9 kB / 2.024 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.441e-05/4.422, allocations: 49.62 kB / 2.024 GB, free: 160.5 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002524/4.422, allocations: 125.8 kB / 2.024 GB, free: 160.4 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001582/4.423, allocations: 0.9169 MB / 2.025 GB, free: 160.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/4.424, allocations: 149.2 kB / 2.025 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/4.426, allocations: 1.089 MB / 2.026 GB, free: 160.1 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/4.426, allocations: 10.31 kB / 2.026 GB, free: 160.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/4.426, allocations: 0.875 kB / 2.026 GB, free: 160.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001361/4.427, allocations: 0.9322 MB / 2.027 GB, free: 160 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004513/4.432, allocations: 2.984 MB / 2.03 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/4.432, allocations: 4.188 kB / 2.03 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/4.433, allocations: 244.3 kB / 2.03 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.557e-05/4.433, allocations: 7.156 kB / 2.03 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/4.433, allocations: 21.64 kB / 2.03 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/4.433, allocations: 13.92 kB / 2.03 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/4.433, allocations: 8.5 kB / 2.03 GB, free: 159.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003036/4.436, allocations: 2.049 MB / 2.032 GB, free: 158.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000873/4.437, allocations: 471.3 kB / 2.032 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/4.437, allocations: 9.219 kB / 2.032 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/4.439, allocations: 164.3 kB / 2.033 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/4.439, allocations: 74.94 kB / 2.033 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/4.439, allocations: 51 kB / 2.033 GB, free: 158.1 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001316/4.44, allocations: 0.7879 MB / 2.034 GB, free: 158 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.71e-07/4.44, allocations: 7.844 kB / 2.034 GB, free: 158 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002988/4.443, allocations: 0.829 MB / 2.034 GB, free: 157.9 MB / 0.948 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005002/4.448, allocations: 4.434 MB / 2.039 GB, free: 155.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002628/4.451, allocations: 1.431 MB / 2.04 GB, free: 155.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/4.451, allocations: 3.156 kB / 2.04 GB, free: 155.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009422/4.452, allocations: 0.4908 MB / 2.041 GB, free: 155.3 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00373/4.456, allocations: 0.635 MB / 2.041 GB, free: 155.3 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005553/4.461, allocations: 2.334 MB / 2.043 GB, free: 154.5 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008482/4.462, allocations: 1.279 MB / 2.045 GB, free: 153.8 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.00242/4.465, allocations: 471.1 kB / 2.045 GB, free: 153.8 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000786/4.465, allocations: 0.5621 MB / 2.046 GB, free: 153.8 MB / 0.948 GB Notification: Performance of SimCode: time 1.943e-06/4.465, allocations: 4.891 kB / 2.046 GB, free: 153.8 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09912/4.564, allocations: 42.22 MB / 2.087 GB, free: 152.7 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/4.565, allocations: 177.2 kB / 2.087 GB, free: 152.5 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.572/8.137, allocations: 0 / 2.087 GB, free: 152.5 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)