Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.ElectricReformulatedEIR,fileNamePrefix="Buildings_11_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_11_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.001363/0.001363, 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.001341/0.001341, allocations: 198.2 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.267/1.267, 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.1.0-maint.11.x/package.mo): time 2.484/2.484, allocations: 469.8 MB / 0.7424 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001684, allocations: 69.52 kB / 0.9087 GB, free: 34.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2263, allocations: 159.1 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05363/0.2799, allocations: 60.61 MB / 1.123 GB, free: 1.34 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01591/0.2959, allocations: 13.25 MB / 1.136 GB, free: 4.062 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009873/0.2969, allocations: 71.56 kB / 1.136 GB, free: 3.992 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001749/0.2987, allocations: 0.9589 MB / 1.137 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003846/0.3025, allocations: 2.318 MB / 1.139 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002854/0.3054, allocations: 1.591 MB / 1.141 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003789/0.3092, allocations: 4.31 MB / 1.145 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.3106, allocations: 1.349 MB / 1.147 GB, free: 9.418 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.3128, allocations: 1.562 MB / 1.148 GB, free: 7.855 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.314, allocations: 1.206 MB / 1.149 GB, free: 6.645 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.3142, allocations: 143.9 kB / 1.149 GB, free: 6.504 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002315/0.3165, allocations: 1.509 MB / 1.151 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003612/0.3169, allocations: 426.5 kB / 1.151 GB, free: 4.574 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007866/0.3177, allocations: 0.9289 MB / 1.152 GB, free: 3.641 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002744/0.3204, allocations: 2.785 MB / 1.155 GB, free: 0.8477 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3204, allocations: 0 / 1.155 GB, free: 0.8477 MB / 0.9044 GB Notification: Performance of FrontEnd: time 9.52e-07/0.3204, allocations: 4 kB / 1.155 GB, free: 0.8438 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.265e-05/0.3205, allocations: 0 / 1.155 GB, free: 0.8438 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.003078/0.3235, allocations: 2.224 MB / 1.157 GB, free: 14.55 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.3236, allocations: 8.031 kB / 1.157 GB, free: 14.55 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001566/0.3237, allocations: 147.9 kB / 1.157 GB, free: 14.39 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003737/0.3275, allocations: 0.6149 MB / 1.158 GB, free: 13.78 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.3293, allocations: 1.399 MB / 1.159 GB, free: 12.32 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.3295, allocations: 149.4 kB / 1.159 GB, free: 12.17 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.3296, allocations: 96 kB / 1.159 GB, free: 12.07 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002776/0.3324, allocations: 1.389 MB / 1.161 GB, free: 10.65 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.3324, allocations: 0 / 1.161 GB, free: 10.65 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.821e-05/0.3325, allocations: 36 kB / 1.161 GB, free: 10.61 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-05/0.3326, allocations: 31.94 kB / 1.161 GB, free: 10.58 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003674/0.3363, allocations: 1.429 MB / 1.162 GB, free: 9.152 MB / 0.92 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.006564/0.3428, allocations: 5.65 MB / 1.168 GB, free: 3.145 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002522/0.3454, allocations: 1.114 MB / 1.169 GB, free: 1.988 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.3469, allocations: 0.6232 MB / 1.169 GB, free: 1.359 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008824/0.3478, allocations: 1.236 MB / 1.171 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00171/0.3495, allocations: 0.6978 MB / 1.171 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 1.803e-06/0.3496, allocations: 4 kB / 1.171 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.004819/0.3544, allocations: 1.777 MB / 1.173 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.3544, allocations: 59.97 kB / 1.173 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.3559, allocations: 1.34 MB / 1.174 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.207e-05/0.356, allocations: 41.7 kB / 1.174 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005287/0.3565, allocations: 0.6817 MB / 1.175 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.3567, allocations: 244.4 kB / 1.175 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/0.357, allocations: 182.5 kB / 1.176 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3571, allocations: 330 kB / 1.176 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.3587, allocations: 0.559 MB / 1.176 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.3604, allocations: 0.7834 MB / 1.177 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003044/0.3635, allocations: 1.199 MB / 1.178 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.3635, allocations: 4 kB / 1.178 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003576/0.3671, allocations: 1.469 MB / 1.18 GB, free: 6.277 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.3671, allocations: 37.95 kB / 1.18 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3671, allocations: 11.94 kB / 1.18 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3672, allocations: 8 kB / 1.18 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.3683, allocations: 263.6 kB / 1.18 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.3684, allocations: 8 kB / 1.18 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.3696, allocations: 195 kB / 1.18 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.963e-05/0.3697, allocations: 43.97 kB / 1.18 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001848/0.3715, allocations: 0.8297 MB / 1.181 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001705/0.3732, allocations: 0.7723 MB / 1.182 GB, free: 4.027 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003029/0.3763, allocations: 1.191 MB / 1.183 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.074e-06/0.3763, allocations: 0 / 1.183 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003523/0.3798, allocations: 1.462 MB / 1.184 GB, free: 1.312 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.3799, allocations: 33.7 kB / 1.185 GB, free: 1.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3799, allocations: 7.938 kB / 1.185 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.374e-06/0.3799, allocations: 8 kB / 1.185 GB, free: 1.258 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.381, allocations: 267.9 kB / 1.185 GB, free: 0.9961 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.3811, allocations: 7.984 kB / 1.185 GB, free: 0.9883 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.3823, allocations: 179.4 kB / 1.185 GB, free: 0.8125 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.308e-05/0.3824, allocations: 43.97 kB / 1.185 GB, free: 0.7695 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.0002057/0.3826, allocations: 236 kB / 1.185 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.3828, allocations: 154.1 kB / 1.185 GB, free: 388 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003734/0.3865, allocations: 1.521 MB / 1.187 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.3866, allocations: 11.98 kB / 1.187 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3866, allocations: 0 / 1.187 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003191/0.3898, allocations: 1.288 MB / 1.188 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005796/0.3956, allocations: 3.286 MB / 1.191 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.3956, allocations: 12.06 kB / 1.191 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.3967, allocations: 235.7 kB / 1.192 GB, free: 9.82 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.3967, allocations: 8 kB / 1.192 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.1e-05/0.3968, allocations: 23.98 kB / 1.192 GB, free: 9.789 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.3968, allocations: 15.92 kB / 1.192 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.3968, allocations: 8 kB / 1.192 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005221/0.402, allocations: 2.318 MB / 1.194 GB, free: 7.371 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004521/0.4025, allocations: 358.8 kB / 1.194 GB, free: 7 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001786/0.4027, allocations: 20 kB / 1.194 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.4039, allocations: 139.8 kB / 1.194 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.404, allocations: 76.36 kB / 1.194 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.626e-05/0.4041, allocations: 39.97 kB / 1.195 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001101/0.4052, allocations: 0.9572 MB / 1.195 GB, free: 5.777 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4052, allocations: 3.938 kB / 1.195 GB, free: 5.773 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.00157/0.4068, allocations: 0.8188 MB / 1.196 GB, free: 4.953 MB / 0.9512 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.006335/0.4131, allocations: 3.285 MB / 1.199 GB, free: 1.598 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005233/0.4184, allocations: 2.148 MB / 1.202 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4184, allocations: 4 kB / 1.202 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001801/0.4202, allocations: 0.7109 MB / 1.202 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002839/0.4231, allocations: 0.7606 MB / 1.203 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02116/0.4442, allocations: 13.65 MB / 1.216 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007847/0.445, allocations: 1.257 MB / 1.218 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001342/0.4464, allocations: 383.5 kB / 1.218 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007634/0.4471, allocations: 0.6008 MB / 1.218 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.4471, allocations: 0 / 1.218 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.502/2.949, allocations: 44.66 MB / 1.262 GB, free: 177 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/14.77, allocations: 8.797 kB / 1.262 GB, free: 177 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)