Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.755/2.755, allocations: 287.3 MB / 302.3 MB, free: 8.258 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.001666/0.001666, allocations: 184.6 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.185/2.185, allocations: 205.4 MB / 0.6295 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 93.67 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004986/0.0004988, allocations: 11.78 kB / 0.8657 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2202, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.07316/0.2935, allocations: 50.6 MB / 1.028 GB, free: 9.594 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02563/0.3192, allocations: 11.28 MB / 1.039 GB, free: 14.3 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002613/0.3219, allocations: 55.62 kB / 1.039 GB, free: 14.24 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.004426/0.3263, allocations: 0.9252 MB / 1.04 GB, free: 13.31 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.009703/0.3361, allocations: 2.228 MB / 1.042 GB, free: 11.08 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.00786/0.344, allocations: 1.722 MB / 1.044 GB, free: 9.391 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.00711/0.3511, allocations: 2.538 MB / 1.046 GB, free: 6.848 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002533/0.3537, allocations: 0.9971 MB / 1.047 GB, free: 5.832 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003954/0.3577, allocations: 1.164 MB / 1.048 GB, free: 4.664 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002228/0.36, allocations: 0.7894 MB / 1.049 GB, free: 3.871 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0004099/0.3604, allocations: 56 kB / 1.049 GB, free: 3.816 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004343/0.3648, allocations: 0.9323 MB / 1.05 GB, free: 2.883 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.0007651/0.3656, allocations: 306.7 kB / 1.05 GB, free: 2.582 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.0008272/0.3664, allocations: 360.8 kB / 1.05 GB, free: 2.223 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.004302/0.3708, allocations: 1.878 MB / 1.052 GB, free: 348 kB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3708, allocations: 4 kB / 1.052 GB, free: 344 kB / 0.6667 GB Notification: Performance of FrontEnd: time 2.565e-06/0.3708, allocations: 0 / 1.052 GB, free: 344 kB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.546e-05/0.3709, allocations: 0 / 1.052 GB, free: 344 kB / 0.6667 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.005308/0.3762, allocations: 1.894 MB / 1.054 GB, free: 14.38 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.3762, allocations: 8.031 kB / 1.054 GB, free: 14.37 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000318/0.3766, allocations: 143.7 kB / 1.054 GB, free: 14.22 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006117/0.3827, allocations: 0.6418 MB / 1.055 GB, free: 13.57 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003473/0.3862, allocations: 1.23 MB / 1.056 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002317/0.3865, allocations: 145.4 kB / 1.056 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002558/0.3867, allocations: 92 kB / 1.056 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004967/0.3917, allocations: 1.342 MB / 1.058 GB, free: 10.67 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.666e-05/0.3918, allocations: 11.92 kB / 1.058 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/0.392, allocations: 36 kB / 1.058 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.008e-05/0.392, allocations: 24 kB / 1.058 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00656/0.3986, allocations: 1.382 MB / 1.059 GB, free: 9.223 MB / 0.6823 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.0115/0.4101, allocations: 5.398 MB / 1.064 GB, free: 3.473 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00484/0.415, allocations: 1.12 MB / 1.065 GB, free: 2.305 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001433/0.4165, allocations: 1.232 MB / 1.067 GB, free: 0.7969 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003399/0.4199, allocations: 0.69 MB / 1.067 GB, free: 100 kB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 4.949e-06/0.42, allocations: 0 / 1.067 GB, free: 100 kB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.652/1.072, allocations: 1.786 MB / 1.069 GB, free: 89.97 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/1.072, allocations: 62.92 kB / 1.069 GB, free: 89.91 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/1.075, allocations: 1.297 MB / 1.07 GB, free: 89.54 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002807/1.075, allocations: 46.45 kB / 1.07 GB, free: 89.5 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008226/1.076, allocations: 0.6693 MB / 1.071 GB, free: 89.05 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004045/1.077, allocations: 243.8 kB / 1.071 GB, free: 88.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/1.077, allocations: 14.53 kB / 1.071 GB, free: 88.89 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001026/1.077, allocations: 335.5 kB / 1.072 GB, free: 88.57 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003099/1.08, allocations: 0.5475 MB / 1.072 GB, free: 88.45 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0034/1.083, allocations: 0.776 MB / 1.073 GB, free: 88.08 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003142/1.087, allocations: 0.5943 MB / 1.074 GB, free: 87.89 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-05/1.087, allocations: 4.438 kB / 1.074 GB, free: 87.89 MB / 0.6823 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.007371/1.094, allocations: 1.472 MB / 1.075 GB, free: 87.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003172/1.094, allocations: 1.197 MB / 1.076 GB, free: 86.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/1.094, allocations: 2.844 kB / 1.076 GB, free: 86.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.28e-05/1.094, allocations: 6.844 kB / 1.076 GB, free: 86.15 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/1.097, allocations: 283.9 kB / 1.076 GB, free: 86.13 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.943e-05/1.097, allocations: 6.812 kB / 1.076 GB, free: 86.13 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003192/1.101, allocations: 243.8 kB / 1.077 GB, free: 86.08 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002761/1.101, allocations: 40 kB / 1.077 GB, free: 86.07 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/1.101, allocations: 4.062 kB / 1.077 GB, free: 86.07 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006946/1.108, allocations: 1.316 MB / 1.078 GB, free: 85.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/1.108, allocations: 5.719 kB / 1.078 GB, free: 85.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/1.108, allocations: 10.5 kB / 1.078 GB, free: 85.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002519/1.11, allocations: 272.8 kB / 1.078 GB, free: 85.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.776e-05/1.111, allocations: 7.531 kB / 1.078 GB, free: 85.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/1.114, allocations: 239.8 kB / 1.079 GB, free: 85.62 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002185/1.114, allocations: 39.72 kB / 1.079 GB, free: 85.61 MB / 0.6823 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.001048/1.115, allocations: 424 kB / 1.079 GB, free: 85.29 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004886/1.115, allocations: 145.7 kB / 1.079 GB, free: 85.22 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007332/1.123, allocations: 1.525 MB / 1.081 GB, free: 84.73 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/1.123, allocations: 8.109 kB / 1.081 GB, free: 84.73 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/1.123, allocations: 0.875 kB / 1.081 GB, free: 84.73 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006325/1.129, allocations: 1.299 MB / 1.082 GB, free: 84.26 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01194/1.141, allocations: 3.272 MB / 1.085 GB, free: 82.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/1.141, allocations: 4.156 kB / 1.085 GB, free: 82.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/1.143, allocations: 235.7 kB / 1.085 GB, free: 82.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-05/1.144, allocations: 8.656 kB / 1.085 GB, free: 82.7 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000178/1.144, allocations: 25.12 kB / 1.085 GB, free: 82.69 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.626e-05/1.144, allocations: 11.47 kB / 1.085 GB, free: 82.69 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/1.144, allocations: 6.672 kB / 1.085 GB, free: 82.69 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01035/1.154, allocations: 2.619 MB / 1.088 GB, free: 81.28 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/1.155, allocations: 377.2 kB / 1.088 GB, free: 81.02 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005099/1.156, allocations: 17.91 kB / 1.088 GB, free: 81.01 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002896/1.159, allocations: 183.9 kB / 1.088 GB, free: 80.98 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003443/1.159, allocations: 73.23 kB / 1.089 GB, free: 80.96 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001961/1.159, allocations: 45.72 kB / 1.089 GB, free: 80.95 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002328/1.162, allocations: 0.9292 MB / 1.089 GB, free: 80.58 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.012e-06/1.162, allocations: 0 / 1.089 GB, free: 80.58 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00377/1.166, allocations: 0.7895 MB / 1.09 GB, free: 80.45 MB / 0.6823 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.01216/1.178, allocations: 4.738 MB / 1.095 GB, free: 77.38 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.009976/1.188, allocations: 2.089 MB / 1.097 GB, free: 76.74 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/1.188, allocations: 5.031 kB / 1.097 GB, free: 76.74 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.003687/1.192, allocations: 0.7174 MB / 1.098 GB, free: 76.54 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006707/1.198, allocations: 0.7397 MB / 1.098 GB, free: 76.36 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/1.21, allocations: 5.844 MB / 1.104 GB, free: 72.14 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/1.211, allocations: 1.275 MB / 1.105 GB, free: 71.38 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003205/1.215, allocations: 359 kB / 1.106 GB, free: 71.27 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/1.216, allocations: 0.5846 MB / 1.106 GB, free: 70.83 MB / 0.6823 GB Notification: Performance of SimCode: time 1.102e-06/1.216, allocations: 0 / 1.106 GB, free: 70.83 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1267/1.343, allocations: 42.25 MB / 1.147 GB, free: 37.25 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/1.343, allocations: 236.2 kB / 1.148 GB, free: 37.01 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.323/5.667, allocations: 3.5 kB / 1.148 GB, free: 37.01 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)