Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.403/1.403, allocations: 252 MB / 267.3 MB, free: 10.85 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001016, allocations: 188.2 kB / 327 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.4 MB / 0.578 GB, free: 20.43 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008667/0.000867, allocations: 90.27 kB / 0.6826 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.00037, allocations: 11.23 kB / 0.7971 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1936, allocations: 106.3 MB / 0.9009 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.04287/0.2365, allocations: 58.99 MB / 0.9585 GB, free: 4.555 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0176/0.2542, allocations: 12.97 MB / 0.9712 GB, free: 7.555 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003069/0.2573, allocations: 55.62 kB / 0.9712 GB, free: 7.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002667/0.26, allocations: 0.8002 MB / 0.972 GB, free: 6.691 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.007095/0.2671, allocations: 2.136 MB / 0.9741 GB, free: 4.547 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Fluid/Chillers/BaseClasses/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function ‘Buildings.Fluid.Chillers.BaseClasses.warnIfPerformanceOutOfBounds‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.004215/0.2713, allocations: 1.39 MB / 0.9755 GB, free: 3.168 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.007621/0.279, allocations: 5.497 MB / 0.9808 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002711/0.2817, allocations: 1.103 MB / 0.9819 GB, free: 12.52 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003999/0.2857, allocations: 1.345 MB / 0.9832 GB, free: 11.17 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003218/0.289, allocations: 1.155 MB / 0.9844 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.000394/0.2894, allocations: 60 kB / 0.9844 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004167/0.2936, allocations: 1.372 MB / 0.9858 GB, free: 8.578 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0005148/0.2942, allocations: 334.5 kB / 0.9861 GB, free: 8.25 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.001466/0.2956, allocations: 0.8408 MB / 0.9869 GB, free: 7.398 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.00438/0.3, allocations: 2.644 MB / 0.9895 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3001, allocations: 4 kB / 0.9895 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3001, allocations: 0 / 0.9895 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.387e-05/0.3001, allocations: 0 / 0.9895 GB, free: 4.742 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00357/0.3037, allocations: 1.894 MB / 0.9913 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.3037, allocations: 8.031 kB / 0.9913 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001985/0.3039, allocations: 143.9 kB / 0.9915 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003451/0.3074, allocations: 0.65 MB / 0.9921 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002663/0.3101, allocations: 1.377 MB / 0.9935 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.3103, allocations: 149.4 kB / 0.9936 GB, free: 396 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.3104, allocations: 104 kB / 0.9937 GB, free: 292 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/0.3134, allocations: 1.334 MB / 0.995 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.953e-05/0.3134, allocations: 7.938 kB / 0.995 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.737e-05/0.3136, allocations: 39.94 kB / 0.995 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.879e-05/0.3136, allocations: 31.94 kB / 0.9951 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003669/0.3173, allocations: 1.386 MB / 0.9964 GB, free: 13.45 MB / 0.6511 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.00718/0.3245, allocations: 5.371 MB / 1.002 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.327, allocations: 1.099 MB / 1.003 GB, free: 6.582 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.3287, allocations: 0.631 MB / 1.003 GB, free: 5.949 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001011/0.3297, allocations: 1.244 MB / 1.005 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001819/0.3315, allocations: 0.6784 MB / 1.005 GB, free: 3.742 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=69): time 3.486e-06/0.3315, allocations: 4 kB / 1.005 GB, free: 3.738 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69): time 0.005224/0.3368, allocations: 1.801 MB / 1.007 GB, free: 1.93 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.3368, allocations: 59.97 kB / 1.007 GB, free: 1.855 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001907/0.3388, allocations: 1.312 MB / 1.008 GB, free: 0.5352 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001151/0.3389, allocations: 45.7 kB / 1.008 GB, free: 496 kB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000715/0.3396, allocations: 0.6699 MB / 1.009 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002562/0.3399, allocations: 236.6 kB / 1.009 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.497e-05/0.3399, allocations: 16 kB / 1.009 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3401, allocations: 337.9 kB / 1.01 GB, free: 15.22 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.3416, allocations: 0.5563 MB / 1.01 GB, free: 14.66 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.3434, allocations: 0.7859 MB / 1.011 GB, free: 13.79 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003221/0.3466, allocations: 1.214 MB / 1.012 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.3466, allocations: 0 / 1.012 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00423/0.3509, allocations: 1.477 MB / 1.014 GB, free: 11.04 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002212/0.3511, allocations: 211.4 kB / 1.014 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3512, allocations: 0 / 1.014 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.3512, allocations: 8 kB / 1.014 GB, free: 10.78 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.3526, allocations: 271.6 kB / 1.014 GB, free: 10.52 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.3526, allocations: 11.98 kB / 1.014 GB, free: 10.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.3544, allocations: 239 kB / 1.014 GB, free: 10.27 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.3546, allocations: 39.98 kB / 1.014 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.3546, allocations: 4 kB / 1.014 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003558/0.3581, allocations: 1.321 MB / 1.016 GB, free: 8.895 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3582, allocations: 4.062 kB / 1.016 GB, free: 8.891 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.558e-06/0.3582, allocations: 8 kB / 1.016 GB, free: 8.883 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.3594, allocations: 271.6 kB / 1.016 GB, free: 8.617 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.3594, allocations: 11.94 kB / 1.016 GB, free: 8.605 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.3613, allocations: 239.2 kB / 1.016 GB, free: 8.371 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.469e-05/0.3614, allocations: 35.98 kB / 1.016 GB, free: 8.336 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.000755/0.3621, allocations: 420.8 kB / 1.017 GB, free: 7.914 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.3624, allocations: 150.1 kB / 1.017 GB, free: 7.766 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003898/0.3663, allocations: 1.528 MB / 1.018 GB, free: 6.219 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2e-05/0.3663, allocations: 11.94 kB / 1.018 GB, free: 6.207 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3663, allocations: 0 / 1.018 GB, free: 6.207 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003305/0.3696, allocations: 1.304 MB / 1.019 GB, free: 4.871 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006971/0.3766, allocations: 3.265 MB / 1.023 GB, free: 1.449 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.168e-06/0.3767, allocations: 4.562 kB / 1.023 GB, free: 1.445 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.3779, allocations: 239.7 kB / 1.023 GB, free: 1.211 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.514e-05/0.3779, allocations: 11.98 kB / 1.023 GB, free: 1.199 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.368e-05/0.378, allocations: 27.92 kB / 1.023 GB, free: 1.172 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/0.378, allocations: 11.94 kB / 1.023 GB, free: 1.16 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.378, allocations: 8 kB / 1.023 GB, free: 1.152 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005714/0.3837, allocations: 2.337 MB / 1.025 GB, free: 14.74 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008137/0.3846, allocations: 366.9 kB / 1.026 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.3848, allocations: 27.92 kB / 1.026 GB, free: 14.33 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/0.3862, allocations: 183.7 kB / 1.026 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.3863, allocations: 68.34 kB / 1.026 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.599e-05/0.3864, allocations: 39.97 kB / 1.026 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001384/0.3878, allocations: 0.9409 MB / 1.027 GB, free: 13.11 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.21e-07/0.3878, allocations: 0 / 1.027 GB, free: 13.11 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002114/0.3899, allocations: 0.7953 MB / 1.028 GB, free: 12.31 MB / 0.6823 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 (73): * Single equations (assignments): 65 * 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.006811/0.3968, allocations: 3.28 MB / 1.031 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.005434/0.4022, allocations: 2.105 MB / 1.033 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.4023, allocations: 0 / 1.033 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001894/0.4042, allocations: 0.7108 MB / 1.034 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004706/0.4089, allocations: 0.7812 MB / 1.034 GB, free: 5.352 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02631/0.4352, allocations: 13.86 MB / 1.048 GB, free: 6.949 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008543/0.4361, allocations: 1.249 MB / 1.049 GB, free: 5.668 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001799/0.4379, allocations: 371.5 kB / 1.049 GB, free: 5.301 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00089/0.4388, allocations: 0.593 MB / 1.05 GB, free: 4.707 MB / 0.698 GB Notification: Performance of SimCode: time 9.22e-07/0.4388, allocations: 0 / 1.05 GB, free: 4.707 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4632/0.902, allocations: 43.46 MB / 1.092 GB, free: 128.7 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/0.9022, allocations: 252.8 kB / 1.093 GB, free: 128.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.529/4.431, allocations: 5.281 kB / 1.093 GB, free: 128.4 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)