Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_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.001325/0.001325, 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.001277/0.001277, allocations: 197.1 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.558/2.558, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 66.59 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2365, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05081/0.2874, allocations: 60.61 MB / 1.112 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01547/0.3029, allocations: 13.24 MB / 1.125 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001622/0.3045, allocations: 71.56 kB / 1.125 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.3065, allocations: 0.9667 MB / 1.126 GB, free: 13.14 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004509/0.311, allocations: 2.323 MB / 1.128 GB, free: 10.81 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003266/0.3143, allocations: 1.577 MB / 1.13 GB, free: 9.246 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004255/0.3186, allocations: 4.316 MB / 1.134 GB, free: 4.918 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.32, allocations: 1.346 MB / 1.135 GB, free: 3.543 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00251/0.3226, allocations: 1.562 MB / 1.137 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.3238, allocations: 1.198 MB / 1.138 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001994/0.324, allocations: 144 kB / 1.138 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002676/0.3267, allocations: 1.497 MB / 1.14 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003577/0.3271, allocations: 430.4 kB / 1.14 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0008403/0.3279, allocations: 0.9289 MB / 1.141 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003202/0.3311, allocations: 2.785 MB / 1.144 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.3311, allocations: 4 kB / 1.144 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3311, allocations: 3.938 kB / 1.144 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.238e-05/0.3312, allocations: 8 kB / 1.144 GB, free: 10.97 MB / 0.9044 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.003327/0.3345, allocations: 2.205 MB / 1.146 GB, free: 8.703 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3345, allocations: 12.62 kB / 1.146 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001513/0.3347, allocations: 144 kB / 1.146 GB, free: 8.543 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003501/0.3382, allocations: 0.5563 MB / 1.147 GB, free: 7.984 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001952/0.3402, allocations: 1.399 MB / 1.148 GB, free: 6.531 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.3403, allocations: 153.4 kB / 1.148 GB, free: 6.371 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3405, allocations: 103.9 kB / 1.148 GB, free: 6.27 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/0.3432, allocations: 1.326 MB / 1.149 GB, free: 4.906 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.3433, allocations: 7.938 kB / 1.149 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.3434, allocations: 36 kB / 1.149 GB, free: 4.863 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.563e-05/0.3434, allocations: 27.94 kB / 1.15 GB, free: 4.836 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00359/0.347, allocations: 1.351 MB / 1.151 GB, free: 3.488 MB / 0.9044 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.006493/0.3535, allocations: 5.532 MB / 1.156 GB, free: 13.6 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.356, allocations: 1.058 MB / 1.157 GB, free: 12.5 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.3575, allocations: 0.5964 MB / 1.158 GB, free: 11.89 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007617/0.3583, allocations: 1.236 MB / 1.159 GB, free: 10.38 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001722/0.36, allocations: 0.6666 MB / 1.16 GB, free: 9.707 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 2.534e-06/0.36, allocations: 4 kB / 1.16 GB, free: 9.703 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.004924/0.3649, allocations: 1.707 MB / 1.161 GB, free: 7.988 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.365, allocations: 59.97 kB / 1.161 GB, free: 7.918 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/0.3666, allocations: 1.344 MB / 1.163 GB, free: 6.566 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.568e-05/0.3667, allocations: 45.7 kB / 1.163 GB, free: 6.516 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004992/0.3672, allocations: 0.6701 MB / 1.163 GB, free: 5.836 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.3674, allocations: 244.5 kB / 1.164 GB, free: 5.594 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002736/0.3677, allocations: 182.4 kB / 1.164 GB, free: 5.41 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.595e-05/0.3678, allocations: 334 kB / 1.164 GB, free: 5.078 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.3693, allocations: 0.5356 MB / 1.165 GB, free: 4.539 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.371, allocations: 0.7567 MB / 1.165 GB, free: 3.703 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003046/0.3741, allocations: 1.168 MB / 1.167 GB, free: 2.488 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3741, allocations: 0 / 1.167 GB, free: 2.488 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003663/0.3778, allocations: 1.427 MB / 1.168 GB, free: 1.047 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.3778, allocations: 37.64 kB / 1.168 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.619e-06/0.3778, allocations: 7.984 kB / 1.168 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3778, allocations: 8 kB / 1.168 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.379, allocations: 255.8 kB / 1.168 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.3791, allocations: 7.938 kB / 1.168 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.3805, allocations: 179.1 kB / 1.168 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.391e-05/0.3806, allocations: 47.91 kB / 1.168 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001862/0.3824, allocations: 0.8024 MB / 1.169 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001647/0.3841, allocations: 0.7517 MB / 1.17 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002931/0.387, allocations: 1.144 MB / 1.171 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.645e-06/0.387, allocations: 0 / 1.171 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003569/0.3906, allocations: 1.411 MB / 1.173 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.3907, allocations: 33.7 kB / 1.173 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.3907, allocations: 11.88 kB / 1.173 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.226e-06/0.3907, allocations: 8 kB / 1.173 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.3918, allocations: 259.9 kB / 1.173 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.3919, allocations: 8 kB / 1.173 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.3932, allocations: 175.3 kB / 1.173 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.022e-05/0.3933, allocations: 35.98 kB / 1.173 GB, free: 11.72 MB / 0.9356 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.0002511/0.3936, allocations: 236.1 kB / 1.173 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.3939, allocations: 158.1 kB / 1.173 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003686/0.3976, allocations: 1.474 MB / 1.175 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.3976, allocations: 8 kB / 1.175 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3976, allocations: 0 / 1.175 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003046/0.4007, allocations: 1.234 MB / 1.176 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006056/0.4067, allocations: 3.235 MB / 1.179 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.4068, allocations: 15.97 kB / 1.179 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.4079, allocations: 215.7 kB / 1.179 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.758e-05/0.4079, allocations: 8 kB / 1.179 GB, free: 4.934 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.457e-05/0.408, allocations: 31.97 kB / 1.179 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/0.408, allocations: 11.94 kB / 1.179 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.408, allocations: 4 kB / 1.179 GB, free: 4.887 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005198/0.4132, allocations: 2.243 MB / 1.182 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005478/0.4138, allocations: 358.8 kB / 1.182 GB, free: 2.195 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.414, allocations: 16 kB / 1.182 GB, free: 2.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.4154, allocations: 127.8 kB / 1.182 GB, free: 2.055 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.4155, allocations: 76.36 kB / 1.182 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.427e-05/0.4156, allocations: 39.97 kB / 1.182 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001181/0.4168, allocations: 0.9572 MB / 1.183 GB, free: 0.9883 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4168, allocations: 0 / 1.183 GB, free: 0.9883 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001799/0.4186, allocations: 0.8071 MB / 1.184 GB, free: 184 kB / 0.9356 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.006266/0.4249, allocations: 3.235 MB / 1.187 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00533/0.4302, allocations: 2.074 MB / 1.189 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4303, allocations: 0 / 1.189 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.4321, allocations: 0.6913 MB / 1.19 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/0.4352, allocations: 0.7649 MB / 1.191 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02112/0.4563, allocations: 13.48 MB / 1.204 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007918/0.4572, allocations: 1.253 MB / 1.205 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001545/0.4587, allocations: 371.5 kB / 1.205 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000768/0.4595, allocations: 0.6008 MB / 1.206 GB, free: 9.047 MB / 0.9669 GB Notification: Performance of SimCode: time 3.91e-07/0.4595, allocations: 4 kB / 1.206 GB, free: 9.043 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.247/1.706, allocations: 44.47 MB / 1.249 GB, free: 183.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.443/11.15, allocations: 1.188 kB / 1.249 GB, free: 183.9 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)