Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",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.004599/0.004599, allocations: 95.77 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.001324/0.001324, allocations: 199.1 kB / 16.68 MB, free: 5.969 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.24/1.24, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.496/2.496, allocations: 482.6 MB / 0.755 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 71.81 kB / 1.083 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2558, allocations: 162.3 MB / 1.242 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.5045/0.7604, allocations: 60.7 MB / 1.301 GB, free: 7.926 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0171/0.7775, allocations: 13.21 MB / 1.314 GB, free: 14.45 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.7791, allocations: 66.59 kB / 1.314 GB, free: 14.42 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.7811, allocations: 0.9596 MB / 1.315 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.004501/0.7856, allocations: 2.31 MB / 1.317 GB, free: 12.45 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.003293/0.7889, allocations: 1.586 MB / 1.319 GB, free: 11.59 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.004299/0.7932, allocations: 4.32 MB / 1.323 GB, free: 9.5 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.7948, allocations: 1.348 MB / 1.324 GB, free: 8.867 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003096/0.7979, allocations: 1.768 MB / 1.326 GB, free: 8.023 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00129/0.7992, allocations: 1.19 MB / 1.327 GB, free: 7.465 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001938/0.7994, allocations: 143.2 kB / 1.327 GB, free: 7.465 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002684/0.8021, allocations: 1.466 MB / 1.329 GB, free: 6.93 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0003981/0.8025, allocations: 417.2 kB / 1.329 GB, free: 6.688 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0008542/0.8033, allocations: 0.9189 MB / 1.33 GB, free: 6.121 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.00327/0.8066, allocations: 2.803 MB / 1.333 GB, free: 5.051 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.8066, allocations: 7.938 kB / 1.333 GB, free: 5.043 MB / 1.045 GB Notification: Performance of FrontEnd: time 9.91e-07/0.8066, allocations: 1.469 kB / 1.333 GB, free: 5.043 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.549e-05/0.8067, allocations: 0 / 1.333 GB, free: 5.043 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.003282/0.81, allocations: 2.242 MB / 1.335 GB, free: 3.555 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.81, allocations: 9.531 kB / 1.335 GB, free: 3.555 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001666/0.8102, allocations: 145.9 kB / 1.335 GB, free: 3.457 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003787/0.814, allocations: 0.6287 MB / 1.336 GB, free: 3.316 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/0.816, allocations: 1.472 MB / 1.337 GB, free: 2.465 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.8162, allocations: 144.4 kB / 1.337 GB, free: 2.367 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.8164, allocations: 101.4 kB / 1.338 GB, free: 2.336 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002928/0.8193, allocations: 1.375 MB / 1.339 GB, free: 1.805 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.8193, allocations: 2.125 kB / 1.339 GB, free: 1.805 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.8195, allocations: 39.94 kB / 1.339 GB, free: 1.773 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.8195, allocations: 25.66 kB / 1.339 GB, free: 1.773 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003814/0.8233, allocations: 1.423 MB / 1.34 GB, free: 1.344 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.00671/0.83, allocations: 5.592 MB / 1.346 GB, free: 13.55 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005192/0.8352, allocations: 1.384 MB / 1.347 GB, free: 13.01 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.8369, allocations: 0.6347 MB / 1.348 GB, free: 12.71 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008958/0.8378, allocations: 1.233 MB / 1.349 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001754/0.8395, allocations: 0.6849 MB / 1.35 GB, free: 10.89 MB / 1.061 GB Notification: Performance of pre-optimization done (n=70): time 2.384e-06/0.8396, allocations: 0 / 1.35 GB, free: 10.89 MB / 1.061 GB Notification: Performance of matching and sorting (n=70): time 0.004945/0.8445, allocations: 1.77 MB / 1.351 GB, free: 10.08 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.8446, allocations: 58.47 kB / 1.351 GB, free: 10.01 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.846, allocations: 1.291 MB / 1.353 GB, free: 9.312 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.218e-05/0.8461, allocations: 39.77 kB / 1.353 GB, free: 9.273 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005362/0.8466, allocations: 0.6623 MB / 1.353 GB, free: 8.688 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/0.8469, allocations: 247.1 kB / 1.354 GB, free: 8.473 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/0.8472, allocations: 188.6 kB / 1.354 GB, free: 8.359 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.8473, allocations: 340.7 kB / 1.354 GB, free: 8.027 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.8489, allocations: 0.5488 MB / 1.355 GB, free: 7.773 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.8506, allocations: 0.7742 MB / 1.355 GB, free: 7.262 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003088/0.8537, allocations: 1.185 MB / 1.357 GB, free: 6.617 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.8538, allocations: 1.156 kB / 1.357 GB, free: 6.617 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003659/0.8574, allocations: 1.463 MB / 1.358 GB, free: 5.906 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.8575, allocations: 36.53 kB / 1.358 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.8575, allocations: 3.594 kB / 1.358 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.8575, allocations: 15.06 kB / 1.358 GB, free: 5.863 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.8587, allocations: 268.5 kB / 1.358 GB, free: 5.781 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.8587, allocations: 7.406 kB / 1.358 GB, free: 5.781 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.86, allocations: 197.9 kB / 1.358 GB, free: 5.676 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.595e-05/0.8601, allocations: 38.02 kB / 1.359 GB, free: 5.664 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00187/0.862, allocations: 0.8117 MB / 1.359 GB, free: 5.227 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001739/0.8638, allocations: 0.7715 MB / 1.36 GB, free: 4.715 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003065/0.8668, allocations: 1.183 MB / 1.361 GB, free: 4.062 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.705e-06/0.8668, allocations: 1.094 kB / 1.361 GB, free: 4.062 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003607/0.8705, allocations: 1.452 MB / 1.363 GB, free: 3.363 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.8705, allocations: 32.48 kB / 1.363 GB, free: 3.332 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.8705, allocations: 4.375 kB / 1.363 GB, free: 3.332 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.602e-06/0.8705, allocations: 6.375 kB / 1.363 GB, free: 3.332 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.8717, allocations: 267.2 kB / 1.363 GB, free: 3.254 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.8717, allocations: 15.47 kB / 1.363 GB, free: 3.246 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.873, allocations: 186.6 kB / 1.363 GB, free: 3.152 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-05/0.8731, allocations: 41.59 kB / 1.363 GB, free: 3.137 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.0002144/0.8733, allocations: 223.8 kB / 1.363 GB, free: 2.926 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/0.8735, allocations: 154 kB / 1.364 GB, free: 2.844 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/0.8773, allocations: 1.51 MB / 1.365 GB, free: 2.043 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.8774, allocations: 11.25 kB / 1.365 GB, free: 2.039 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.8774, allocations: 0 / 1.365 GB, free: 2.039 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003246/0.8806, allocations: 1.273 MB / 1.366 GB, free: 1.371 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005969/0.8866, allocations: 3.272 MB / 1.369 GB, free: 15.12 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.8866, allocations: 4.531 kB / 1.369 GB, free: 15.12 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.8877, allocations: 234.4 kB / 1.37 GB, free: 15.05 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.8878, allocations: 6.938 kB / 1.37 GB, free: 15.05 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.8878, allocations: 31.27 kB / 1.37 GB, free: 15.03 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/0.8878, allocations: 15.58 kB / 1.37 GB, free: 15.02 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.8879, allocations: 9.562 kB / 1.37 GB, free: 15.02 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005298/0.8932, allocations: 2.298 MB / 1.372 GB, free: 13.74 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004519/0.8936, allocations: 355.1 kB / 1.372 GB, free: 13.44 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.8938, allocations: 28.17 kB / 1.372 GB, free: 13.42 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.8951, allocations: 136.9 kB / 1.372 GB, free: 13.36 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.8952, allocations: 69.45 kB / 1.373 GB, free: 13.32 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.088e-05/0.8953, allocations: 38.38 kB / 1.373 GB, free: 13.31 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001057/0.8963, allocations: 0.9248 MB / 1.373 GB, free: 12.8 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8964, allocations: 1.344 kB / 1.373 GB, free: 12.8 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.001685/0.898, allocations: 0.8185 MB / 1.374 GB, free: 12.62 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.006276/0.9043, allocations: 3.254 MB / 1.377 GB, free: 10.63 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.005222/0.9096, allocations: 2.083 MB / 1.379 GB, free: 9.137 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.9096, allocations: 0 / 1.379 GB, free: 9.137 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.9115, allocations: 0.7108 MB / 1.38 GB, free: 8.426 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002987/0.9145, allocations: 0.7614 MB / 1.381 GB, free: 7.68 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0209/0.9354, allocations: 12.24 MB / 1.393 GB, free: 11.11 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007835/0.9362, allocations: 1.234 MB / 1.394 GB, free: 9.852 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001198/0.9374, allocations: 371.6 kB / 1.394 GB, free: 9.484 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007933/0.9382, allocations: 0.593 MB / 1.395 GB, free: 8.891 MB / 1.092 GB Notification: Performance of SimCode: time 2.5e-07/0.9382, allocations: 3.938 kB / 1.395 GB, free: 8.887 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.236/8.174, allocations: 44.26 MB / 1.438 GB, free: 13.13 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.63/25.8, allocations: 12.89 kB / 1.438 GB, free: 13.12 MB / 1.139 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)