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.007231/0.007231, allocations: 97.25 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002184/0.002184, allocations: 204.7 kB / 16.68 MB, free: 5.961 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.247/1.247, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.436/2.436, allocations: 469.8 MB / 0.7425 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 67.89 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2437, allocations: 159.1 MB / 1.22 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.4833/0.727, allocations: 60.61 MB / 1.279 GB, free: 14.12 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01657/0.7436, allocations: 13.25 MB / 1.292 GB, free: 6.848 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001945/0.7456, allocations: 67 kB / 1.292 GB, free: 6.824 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.00228/0.7479, allocations: 0.965 MB / 1.293 GB, free: 6.238 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.005361/0.7533, allocations: 2.322 MB / 1.296 GB, free: 4.852 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003545/0.7568, allocations: 1.594 MB / 1.297 GB, free: 4 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004843/0.7617, allocations: 4.325 MB / 1.301 GB, free: 1.918 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.7632, allocations: 1.346 MB / 1.303 GB, free: 1.285 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002654/0.7659, allocations: 1.58 MB / 1.304 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.7672, allocations: 1.2 MB / 1.305 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001946/0.7674, allocations: 142.7 kB / 1.306 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002837/0.7703, allocations: 1.505 MB / 1.307 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0003969/0.7707, allocations: 434 kB / 1.307 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0008491/0.7715, allocations: 0.9235 MB / 1.308 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003348/0.7749, allocations: 2.845 MB / 1.311 GB, free: 13.53 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.7749, allocations: 0 / 1.311 GB, free: 13.53 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7749, allocations: 0 / 1.311 GB, free: 13.53 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.605e-05/0.7749, allocations: 1.219 kB / 1.311 GB, free: 13.53 MB / 1.029 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.003346/0.7783, allocations: 2.284 MB / 1.313 GB, free: 12.01 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.7783, allocations: 9.531 kB / 1.313 GB, free: 12.01 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.7785, allocations: 146.3 kB / 1.313 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003751/0.7822, allocations: 0.6196 MB / 1.314 GB, free: 11.78 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/0.7844, allocations: 1.494 MB / 1.316 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.7845, allocations: 145.8 kB / 1.316 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.7847, allocations: 100.7 kB / 1.316 GB, free: 10.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002867/0.7876, allocations: 1.381 MB / 1.317 GB, free: 10.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.7876, allocations: 13.3 kB / 1.317 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.813e-05/0.7877, allocations: 36.25 kB / 1.317 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.7878, allocations: 25.92 kB / 1.317 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003735/0.7915, allocations: 1.436 MB / 1.319 GB, free: 9.781 MB / 1.029 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.006798/0.7983, allocations: 5.607 MB / 1.324 GB, free: 5.984 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.8008, allocations: 1.111 MB / 1.325 GB, free: 5.484 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.8024, allocations: 0.6277 MB / 1.326 GB, free: 5.301 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009044/0.8033, allocations: 1.235 MB / 1.327 GB, free: 3.871 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001745/0.8051, allocations: 0.6877 MB / 1.328 GB, free: 3.664 MB / 1.029 GB Notification: Performance of pre-optimization done (n=70): time 2.214e-06/0.8051, allocations: 0 / 1.328 GB, free: 3.664 MB / 1.029 GB Notification: Performance of matching and sorting (n=70): time 0.004842/0.8099, allocations: 1.792 MB / 1.329 GB, free: 3.133 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.81, allocations: 68.19 kB / 1.329 GB, free: 3.062 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.8114, allocations: 1.338 MB / 1.331 GB, free: 2.555 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.129e-05/0.8115, allocations: 40.7 kB / 1.331 GB, free: 2.516 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005386/0.812, allocations: 0.6862 MB / 1.331 GB, free: 1.973 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.000217/0.8123, allocations: 250.7 kB / 1.332 GB, free: 1.773 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.8126, allocations: 179.8 kB / 1.332 GB, free: 1.691 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.8127, allocations: 335.3 kB / 1.332 GB, free: 1.375 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.8142, allocations: 0.5637 MB / 1.333 GB, free: 1.215 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.8159, allocations: 0.7861 MB / 1.334 GB, free: 0.8164 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002975/0.8189, allocations: 1.203 MB / 1.335 GB, free: 332 kB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.8189, allocations: 1.188 kB / 1.335 GB, free: 332 kB / 1.029 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003498/0.8224, allocations: 1.474 MB / 1.336 GB, free: 15.82 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.8225, allocations: 36.27 kB / 1.336 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.8225, allocations: 3.156 kB / 1.336 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.8225, allocations: 10.94 kB / 1.336 GB, free: 15.78 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.8236, allocations: 266.3 kB / 1.336 GB, free: 15.76 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.8236, allocations: 8.297 kB / 1.336 GB, free: 15.76 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.825, allocations: 198.1 kB / 1.337 GB, free: 15.69 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-05/0.8251, allocations: 38.09 kB / 1.337 GB, free: 15.69 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001788/0.8268, allocations: 0.8255 MB / 1.337 GB, free: 15.36 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001648/0.8285, allocations: 0.7806 MB / 1.338 GB, free: 14.96 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002879/0.8314, allocations: 1.189 MB / 1.339 GB, free: 14.45 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.15e-06/0.8314, allocations: 5.547 kB / 1.339 GB, free: 14.44 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003468/0.8349, allocations: 1.472 MB / 1.341 GB, free: 13.73 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.8349, allocations: 32.89 kB / 1.341 GB, free: 13.7 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.8349, allocations: 3.406 kB / 1.341 GB, free: 13.7 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.8349, allocations: 10.03 kB / 1.341 GB, free: 13.7 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.8361, allocations: 268.7 kB / 1.341 GB, free: 13.62 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.8361, allocations: 10.58 kB / 1.341 GB, free: 13.61 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.8374, allocations: 186.3 kB / 1.341 GB, free: 13.52 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.671e-05/0.8375, allocations: 42.31 kB / 1.341 GB, free: 13.5 MB / 1.045 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.0002164/0.8377, allocations: 231.7 kB / 1.342 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.8379, allocations: 159.4 kB / 1.342 GB, free: 13.2 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.8416, allocations: 1.525 MB / 1.343 GB, free: 12.39 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/0.8417, allocations: 11.33 kB / 1.343 GB, free: 12.39 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.8417, allocations: 0.875 kB / 1.343 GB, free: 12.39 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003165/0.8449, allocations: 1.283 MB / 1.345 GB, free: 11.72 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005859/0.8507, allocations: 3.304 MB / 1.348 GB, free: 9.477 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.8507, allocations: 7.438 kB / 1.348 GB, free: 9.473 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.8518, allocations: 237.7 kB / 1.348 GB, free: 9.395 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.8518, allocations: 8.156 kB / 1.348 GB, free: 9.395 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.878e-05/0.8519, allocations: 27.86 kB / 1.348 GB, free: 9.379 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.336e-06/0.8519, allocations: 10.55 kB / 1.348 GB, free: 9.375 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.8519, allocations: 9.656 kB / 1.348 GB, free: 9.371 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005134/0.8571, allocations: 2.323 MB / 1.35 GB, free: 8.086 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004753/0.8576, allocations: 373.1 kB / 1.351 GB, free: 7.77 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.8577, allocations: 16.56 kB / 1.351 GB, free: 7.762 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.8589, allocations: 139 kB / 1.351 GB, free: 7.699 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.8591, allocations: 70.08 kB / 1.351 GB, free: 7.66 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.022e-05/0.8592, allocations: 37.97 kB / 1.351 GB, free: 7.648 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001101/0.8603, allocations: 0.9651 MB / 1.352 GB, free: 7.125 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8603, allocations: 0 / 1.352 GB, free: 7.125 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001736/0.862, allocations: 0.8248 MB / 1.353 GB, free: 6.941 MB / 1.045 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.006296/0.8683, allocations: 3.311 MB / 1.356 GB, free: 4.918 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.004974/0.8733, allocations: 2.099 MB / 1.358 GB, free: 3.934 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.8733, allocations: 0 / 1.358 GB, free: 3.934 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.8751, allocations: 0.711 MB / 1.359 GB, free: 3.625 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/0.8779, allocations: 0.7568 MB / 1.359 GB, free: 3.219 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/0.8982, allocations: 12.62 MB / 1.372 GB, free: 8.836 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008356/0.8991, allocations: 1.249 MB / 1.373 GB, free: 7.555 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001234/0.9003, allocations: 379.5 kB / 1.373 GB, free: 7.18 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008062/0.9011, allocations: 0.5969 MB / 1.374 GB, free: 6.582 MB / 1.061 GB Notification: Performance of SimCode: time 2.51e-07/0.9012, allocations: 4 kB / 1.374 GB, free: 6.578 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.012/1.913, allocations: 44.97 MB / 1.418 GB, free: 10.14 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/14.73, allocations: 12.67 kB / 1.418 GB, free: 10.14 MB / 1.107 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)