Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.63/1.63, allocations: 252 MB / 267 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 184.5 kB / 326.6 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.4 MB / 0.5777 GB, free: 20.32 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007915/0.0007913, allocations: 84.08 kB / 0.6822 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003073, allocations: 9.125 kB / 0.7964 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2236, allocations: 106.3 MB / 0.9003 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.03901/0.2627, allocations: 55.76 MB / 0.9548 GB, free: 7.918 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01622/0.279, allocations: 12.23 MB / 0.9667 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.2821, allocations: 59.56 kB / 0.9668 GB, free: 11.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002741/0.2849, allocations: 0.7104 MB / 0.9674 GB, free: 10.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.006827/0.2917, allocations: 1.826 MB / 0.9692 GB, free: 9.066 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Fluid/Chillers/BaseClasses/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function ‘Buildings.Fluid.Chillers.BaseClasses.warnIfPerformanceOutOfBounds‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.004209/0.296, allocations: 1.139 MB / 0.9703 GB, free: 7.938 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.006658/0.3026, allocations: 4.725 MB / 0.975 GB, free: 3.195 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002081/0.3048, allocations: 0.9694 MB / 0.9759 GB, free: 2.207 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003375/0.3082, allocations: 1.303 MB / 0.9772 GB, free: 0.8984 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00239/0.3106, allocations: 1.081 MB / 0.9782 GB, free: 15.81 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0003281/0.3109, allocations: 60 kB / 0.9783 GB, free: 15.75 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003666/0.3146, allocations: 1.029 MB / 0.9793 GB, free: 14.72 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0004795/0.3151, allocations: 326.5 kB / 0.9796 GB, free: 14.4 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0009707/0.3161, allocations: 356.8 kB / 0.9799 GB, free: 14.05 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.003213/0.3193, allocations: 1.956 MB / 0.9819 GB, free: 12.09 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.3193, allocations: 4 kB / 0.9819 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3193, allocations: 0 / 0.9819 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.38e-05/0.3194, allocations: 0 / 0.9819 GB, free: 12.08 MB / 0.6355 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.004058/0.3234, allocations: 1.906 MB / 0.9837 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.3235, allocations: 11.97 kB / 0.9837 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002095/0.3237, allocations: 143.7 kB / 0.9839 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003608/0.3273, allocations: 0.6456 MB / 0.9845 GB, free: 9.301 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002521/0.3299, allocations: 1.327 MB / 0.9858 GB, free: 7.922 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.33, allocations: 149.4 kB / 0.9859 GB, free: 7.766 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.3302, allocations: 100 kB / 0.986 GB, free: 7.668 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002984/0.3332, allocations: 1.338 MB / 0.9873 GB, free: 6.293 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.3333, allocations: 0 / 0.9873 GB, free: 6.293 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.3334, allocations: 39.98 kB / 0.9874 GB, free: 6.254 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-05/0.3334, allocations: 31.92 kB / 0.9874 GB, free: 6.223 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003672/0.3371, allocations: 1.382 MB / 0.9888 GB, free: 4.84 MB / 0.6355 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.007601/0.3447, allocations: 5.375 MB / 0.994 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.3473, allocations: 1.092 MB / 0.9951 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.3489, allocations: 0.6216 MB / 0.9957 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000949/0.3498, allocations: 1.244 MB / 0.9969 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001804/0.3516, allocations: 0.6823 MB / 0.9976 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=69): time 3.577e-06/0.3517, allocations: 0 / 0.9976 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69): time 0.005397/0.3571, allocations: 1.785 MB / 0.9993 GB, free: 9.348 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.3572, allocations: 67.91 kB / 0.9994 GB, free: 9.27 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.359, allocations: 1.308 MB / 1.001 GB, free: 7.953 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.3591, allocations: 45.7 kB / 1.001 GB, free: 7.902 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006031/0.3597, allocations: 0.6621 MB / 1.001 GB, free: 7.23 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002599/0.36, allocations: 236.6 kB / 1.002 GB, free: 6.996 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.486e-05/0.3601, allocations: 16 kB / 1.002 GB, free: 6.98 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3602, allocations: 337.9 kB / 1.002 GB, free: 6.645 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/0.3618, allocations: 0.5485 MB / 1.002 GB, free: 6.094 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/0.3635, allocations: 0.7859 MB / 1.003 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001618/0.3651, allocations: 0.5941 MB / 1.004 GB, free: 4.629 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3651, allocations: 0 / 1.004 GB, free: 4.629 MB / 0.6511 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003976/0.3691, allocations: 1.465 MB / 1.005 GB, free: 3.148 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001933/0.3693, allocations: 215.4 kB / 1.005 GB, free: 2.891 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.3694, allocations: 7.953 kB / 1.005 GB, free: 2.883 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.3694, allocations: 8 kB / 1.005 GB, free: 2.875 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.3707, allocations: 271.6 kB / 1.006 GB, free: 2.609 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.3707, allocations: 11.94 kB / 1.006 GB, free: 2.598 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.3726, allocations: 239 kB / 1.006 GB, free: 2.363 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.3727, allocations: 39.98 kB / 1.006 GB, free: 2.324 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.3727, allocations: 4 kB / 1.006 GB, free: 2.32 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003508/0.3762, allocations: 1.309 MB / 1.007 GB, free: 1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3763, allocations: 4 kB / 1.007 GB, free: 0.9961 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3763, allocations: 8 kB / 1.007 GB, free: 0.9883 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.3775, allocations: 271.9 kB / 1.008 GB, free: 0.7227 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3775, allocations: 4 kB / 1.008 GB, free: 0.7188 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.3794, allocations: 231.2 kB / 1.008 GB, free: 0.4922 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-05/0.3795, allocations: 39.98 kB / 1.008 GB, free: 464 kB / 0.6511 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.0008116/0.3803, allocations: 417.4 kB / 1.008 GB, free: 36 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/0.3806, allocations: 154.2 kB / 1.008 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003926/0.3845, allocations: 1.544 MB / 1.01 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/0.3846, allocations: 8 kB / 1.01 GB, free: 14.31 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.3846, allocations: 0 / 1.01 GB, free: 14.31 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003164/0.3878, allocations: 1.292 MB / 1.011 GB, free: 12.99 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006997/0.3948, allocations: 3.266 MB / 1.014 GB, free: 9.562 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/0.3948, allocations: 12.03 kB / 1.014 GB, free: 9.551 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.3961, allocations: 227.7 kB / 1.015 GB, free: 9.328 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-05/0.3961, allocations: 12 kB / 1.015 GB, free: 9.316 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.591e-05/0.3962, allocations: 31.97 kB / 1.015 GB, free: 9.285 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.005e-05/0.3962, allocations: 8 kB / 1.015 GB, free: 9.277 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.3962, allocations: 7.938 kB / 1.015 GB, free: 9.27 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005591/0.4018, allocations: 2.325 MB / 1.017 GB, free: 6.871 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009328/0.4028, allocations: 374.7 kB / 1.017 GB, free: 6.484 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000357/0.4032, allocations: 23.98 kB / 1.017 GB, free: 6.461 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/0.4049, allocations: 175.7 kB / 1.017 GB, free: 6.289 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.4051, allocations: 76.36 kB / 1.017 GB, free: 6.211 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.4052, allocations: 35.97 kB / 1.018 GB, free: 6.176 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001649/0.4069, allocations: 0.9293 MB / 1.018 GB, free: 5.25 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4069, allocations: 0 / 1.018 GB, free: 5.25 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00249/0.4094, allocations: 0.776 MB / 1.019 GB, free: 4.473 MB / 0.6667 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 (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.00694/0.4163, allocations: 3.275 MB / 1.022 GB, free: 1.129 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.005765/0.4221, allocations: 2.089 MB / 1.024 GB, free: 15.01 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/0.4222, allocations: 8.125 kB / 1.024 GB, free: 15 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002139/0.4243, allocations: 0.7068 MB / 1.025 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005289/0.4296, allocations: 0.7567 MB / 1.026 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/0.4547, allocations: 9.871 MB / 1.035 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.4559, allocations: 1.249 MB / 1.037 GB, free: 1.98 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002107/0.458, allocations: 367.5 kB / 1.037 GB, free: 1.617 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/0.4591, allocations: 0.5774 MB / 1.038 GB, free: 1.039 MB / 0.6823 GB Notification: Performance of SimCode: time 1.012e-06/0.4591, allocations: 4 kB / 1.038 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4935/0.9526, allocations: 42.8 MB / 1.079 GB, free: 136.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.9527, allocations: 248.5 kB / 1.08 GB, free: 136.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.64/4.593, allocations: 0 / 1.08 GB, free: 136.4 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)