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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007424/0.007424, allocations: 98.58 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.002165/0.002165, allocations: 202.3 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.226/1.226, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.399/2.399, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 71.88 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2672, allocations: 162.3 MB / 1.242 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.5056/0.7728, allocations: 60.7 MB / 1.301 GB, free: 7.859 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01723/0.7901, allocations: 13.25 MB / 1.314 GB, free: 14.36 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.7918, allocations: 71.81 kB / 1.314 GB, free: 14.33 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001937/0.7937, allocations: 0.963 MB / 1.315 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.004541/0.7983, allocations: 2.31 MB / 1.317 GB, free: 12.36 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.003373/0.8017, allocations: 1.597 MB / 1.319 GB, free: 11.5 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.004426/0.8061, allocations: 4.322 MB / 1.323 GB, free: 9.402 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.8076, allocations: 1.34 MB / 1.324 GB, free: 8.777 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003087/0.8107, allocations: 1.761 MB / 1.326 GB, free: 7.938 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.812, allocations: 1.194 MB / 1.327 GB, free: 7.375 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001923/0.8122, allocations: 142.2 kB / 1.327 GB, free: 7.375 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.8151, allocations: 1.498 MB / 1.329 GB, free: 6.832 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0004052/0.8155, allocations: 433.7 kB / 1.329 GB, free: 6.582 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0008895/0.8164, allocations: 0.9238 MB / 1.33 GB, free: 6.012 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.003448/0.8198, allocations: 2.849 MB / 1.333 GB, free: 4.926 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.8198, allocations: 0 / 1.333 GB, free: 4.926 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.223e-06/0.8198, allocations: 4 kB / 1.333 GB, free: 4.922 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.8e-05/0.8199, allocations: 0.6094 kB / 1.333 GB, free: 4.922 MB / 1.045 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.003466/0.8233, allocations: 2.278 MB / 1.335 GB, free: 3.406 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.8234, allocations: 13.25 kB / 1.335 GB, free: 3.402 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001812/0.8236, allocations: 151.8 kB / 1.335 GB, free: 3.301 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003885/0.8275, allocations: 0.6218 MB / 1.336 GB, free: 3.164 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.8296, allocations: 1.487 MB / 1.337 GB, free: 2.309 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.8298, allocations: 149 kB / 1.338 GB, free: 2.207 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.83, allocations: 97.08 kB / 1.338 GB, free: 2.18 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002977/0.833, allocations: 1.384 MB / 1.339 GB, free: 1.645 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.833, allocations: 2.016 kB / 1.339 GB, free: 1.645 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.8331, allocations: 41.84 kB / 1.339 GB, free: 1.613 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.909e-05/0.8331, allocations: 29.12 kB / 1.339 GB, free: 1.609 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003876/0.837, allocations: 1.433 MB / 1.341 GB, free: 1.18 MB / 1.045 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.006982/0.844, allocations: 5.622 MB / 1.346 GB, free: 13.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002628/0.8467, allocations: 1.107 MB / 1.347 GB, free: 12.81 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.8483, allocations: 0.6209 MB / 1.348 GB, free: 12.53 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009499/0.8493, allocations: 1.237 MB / 1.349 GB, free: 11.07 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001837/0.8511, allocations: 0.6933 MB / 1.35 GB, free: 10.69 MB / 1.061 GB Notification: Performance of pre-optimization done (n=70): time 2.555e-06/0.8511, allocations: 0 / 1.35 GB, free: 10.69 MB / 1.061 GB Notification: Performance of matching and sorting (n=70): time 0.005146/0.8563, allocations: 1.788 MB / 1.351 GB, free: 9.883 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.8563, allocations: 58.94 kB / 1.351 GB, free: 9.816 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.8579, allocations: 1.342 MB / 1.353 GB, free: 9.098 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.855e-05/0.858, allocations: 48.08 kB / 1.353 GB, free: 9.051 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005704/0.8585, allocations: 0.6877 MB / 1.353 GB, free: 8.441 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.8588, allocations: 252.5 kB / 1.354 GB, free: 8.223 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.8591, allocations: 179.4 kB / 1.354 GB, free: 8.117 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.8592, allocations: 334.3 kB / 1.354 GB, free: 7.793 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.8608, allocations: 0.5573 MB / 1.355 GB, free: 7.535 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001769/0.8626, allocations: 0.7806 MB / 1.355 GB, free: 7.023 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003121/0.8658, allocations: 1.203 MB / 1.357 GB, free: 6.371 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.8658, allocations: 9.219 kB / 1.357 GB, free: 6.363 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003718/0.8695, allocations: 1.475 MB / 1.358 GB, free: 5.652 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.783e-05/0.8695, allocations: 44.22 kB / 1.358 GB, free: 5.613 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.8696, allocations: 6.375 kB / 1.358 GB, free: 5.609 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.8696, allocations: 6.281 kB / 1.358 GB, free: 5.609 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.8708, allocations: 265.1 kB / 1.358 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.8708, allocations: 7.75 kB / 1.358 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.8722, allocations: 188.3 kB / 1.359 GB, free: 5.434 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.003e-05/0.8723, allocations: 43.19 kB / 1.359 GB, free: 5.418 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00191/0.8742, allocations: 0.828 MB / 1.359 GB, free: 4.973 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001757/0.8759, allocations: 0.7798 MB / 1.36 GB, free: 4.457 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003074/0.879, allocations: 1.19 MB / 1.361 GB, free: 3.809 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.765e-06/0.879, allocations: 1.125 kB / 1.361 GB, free: 3.809 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003635/0.8827, allocations: 1.472 MB / 1.363 GB, free: 3.102 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.8827, allocations: 32.52 kB / 1.363 GB, free: 3.07 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.8827, allocations: 7.578 kB / 1.363 GB, free: 3.066 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.306e-06/0.8827, allocations: 10.34 kB / 1.363 GB, free: 3.062 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.8839, allocations: 268.1 kB / 1.363 GB, free: 2.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.8839, allocations: 6.812 kB / 1.363 GB, free: 2.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.8852, allocations: 182.3 kB / 1.363 GB, free: 2.891 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.481e-05/0.8853, allocations: 38.58 kB / 1.363 GB, free: 2.879 MB / 1.061 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.0002314/0.8856, allocations: 235.9 kB / 1.364 GB, free: 2.656 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002369/0.8858, allocations: 163.3 kB / 1.364 GB, free: 2.566 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003886/0.8897, allocations: 1.529 MB / 1.365 GB, free: 1.762 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.8897, allocations: 7.594 kB / 1.365 GB, free: 1.762 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.8897, allocations: 1.438 kB / 1.365 GB, free: 1.762 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003305/0.893, allocations: 1.29 MB / 1.366 GB, free: 1.086 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006128/0.8992, allocations: 3.307 MB / 1.37 GB, free: 14.83 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.8992, allocations: 8.125 kB / 1.37 GB, free: 14.82 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.9003, allocations: 238.1 kB / 1.37 GB, free: 14.75 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.9003, allocations: 7.469 kB / 1.37 GB, free: 14.75 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-05/0.9004, allocations: 31.84 kB / 1.37 GB, free: 14.73 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.9004, allocations: 10.94 kB / 1.37 GB, free: 14.72 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.9004, allocations: 4.812 kB / 1.37 GB, free: 14.72 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005499/0.9059, allocations: 2.323 MB / 1.372 GB, free: 13.44 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005048/0.9065, allocations: 368.9 kB / 1.373 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.9066, allocations: 20.19 kB / 1.373 GB, free: 13.11 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.908, allocations: 136 kB / 1.373 GB, free: 13.05 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.9081, allocations: 74.34 kB / 1.373 GB, free: 13.01 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.428e-05/0.9082, allocations: 42.97 kB / 1.373 GB, free: 13 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001196/0.9094, allocations: 0.9602 MB / 1.374 GB, free: 12.48 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9094, allocations: 0 / 1.374 GB, free: 12.48 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.001816/0.9112, allocations: 0.819 MB / 1.375 GB, free: 12.3 MB / 1.076 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.006701/0.918, allocations: 3.299 MB / 1.378 GB, free: 10.29 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.005513/0.9235, allocations: 2.103 MB / 1.38 GB, free: 8.664 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.9235, allocations: 0 / 1.38 GB, free: 8.664 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001994/0.9255, allocations: 0.7147 MB / 1.381 GB, free: 7.949 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/0.9286, allocations: 0.7582 MB / 1.381 GB, free: 7.203 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02267/0.9513, allocations: 12.61 MB / 1.394 GB, free: 10.27 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008853/0.9522, allocations: 1.257 MB / 1.395 GB, free: 8.98 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001343/0.9536, allocations: 375.5 kB / 1.395 GB, free: 8.609 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008768/0.9544, allocations: 0.6008 MB / 1.396 GB, free: 8.008 MB / 1.092 GB Notification: Performance of SimCode: time 6.41e-07/0.9545, allocations: 0 / 1.396 GB, free: 8.008 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09152/1.046, allocations: 44.99 MB / 1.44 GB, free: 11.55 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.98, allocations: 7.812 kB / 1.44 GB, free: 11.54 MB / 1.139 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=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)