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.137/1.137, allocations: 251.5 MB / 266.7 MB, free: 11 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.0007724/0.0007724, allocations: 174.8 kB / 325.8 MB, free: 2.695 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.155/1.155, allocations: 205 MB / 0.576 GB, free: 20.99 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.000602/0.000602, allocations: 95.69 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002525, allocations: 11.72 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.125, allocations: 105.4 MB / 0.8962 GB, free: 68.08 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.03073/0.1558, allocations: 59.76 MB / 0.9546 GB, free: 8.102 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01144/0.1673, allocations: 13.13 MB / 0.9674 GB, free: 10.94 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008798/0.1682, allocations: 59.62 kB / 0.9674 GB, free: 10.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.1697, allocations: 0.8041 MB / 0.9682 GB, free: 10.07 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.003266/0.1729, allocations: 2.125 MB / 0.9703 GB, free: 7.938 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.00228/0.1752, allocations: 1.379 MB / 0.9716 GB, free: 6.57 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.003665/0.1789, allocations: 5.513 MB / 0.977 GB, free: 1.043 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009826/0.1799, allocations: 1.082 MB / 0.9781 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.1813, allocations: 1.349 MB / 0.9794 GB, free: 14.57 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008932/0.1822, allocations: 1.159 MB / 0.9805 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.1823, allocations: 60 kB / 0.9806 GB, free: 13.35 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.1841, allocations: 1.364 MB / 0.9819 GB, free: 11.98 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.1844, allocations: 346.5 kB / 0.9823 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0005521/0.1849, allocations: 0.8118 MB / 0.983 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.187, allocations: 2.651 MB / 0.9856 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.187, allocations: 0 / 0.9856 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.342e-06/0.187, allocations: 0 / 0.9856 GB, free: 8.168 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.573e-05/0.187, allocations: 0 / 0.9856 GB, free: 8.168 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.002378/0.1894, allocations: 1.894 MB / 0.9875 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.1894, allocations: 8.031 kB / 0.9875 GB, free: 6.203 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.1896, allocations: 143.9 kB / 0.9876 GB, free: 6.055 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002851/0.1924, allocations: 0.65 MB / 0.9883 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.194, allocations: 1.381 MB / 0.9896 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.1941, allocations: 149.4 kB / 0.9898 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.1943, allocations: 96 kB / 0.9898 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002234/0.1965, allocations: 1.342 MB / 0.9912 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1965, allocations: 3.938 kB / 0.9912 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.08e-05/0.1966, allocations: 36 kB / 0.9912 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.02e-05/0.1966, allocations: 31.94 kB / 0.9912 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002937/0.1996, allocations: 1.386 MB / 0.9926 GB, free: 0.8789 MB / 0.6355 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.004961/0.2046, allocations: 5.379 MB / 0.9978 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/0.2066, allocations: 1.097 MB / 0.9989 GB, free: 10.01 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.208, allocations: 0.631 MB / 0.9995 GB, free: 9.375 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006543/0.2086, allocations: 1.24 MB / 1.001 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001444/0.2101, allocations: 0.6784 MB / 1.001 GB, free: 7.172 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=69): time 1.804e-06/0.2101, allocations: 4 kB / 1.001 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69): time 0.00406/0.2142, allocations: 1.801 MB / 1.003 GB, free: 5.355 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.2142, allocations: 59.97 kB / 1.003 GB, free: 5.285 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.2154, allocations: 1.308 MB / 1.004 GB, free: 3.969 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.2155, allocations: 41.7 kB / 1.005 GB, free: 3.922 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004095/0.2159, allocations: 0.6777 MB / 1.005 GB, free: 3.234 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.216, allocations: 232.6 kB / 1.005 GB, free: 3.004 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-05/0.2161, allocations: 73.67 kB / 1.005 GB, free: 2.926 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.498e-05/0.2162, allocations: 337.9 kB / 1.006 GB, free: 2.59 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.2175, allocations: 0.5602 MB / 1.006 GB, free: 2.031 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.219, allocations: 0.782 MB / 1.007 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/0.2216, allocations: 1.221 MB / 1.008 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2216, allocations: 0 / 1.008 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003029/0.2246, allocations: 1.477 MB / 1.01 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.565e-05/0.2247, allocations: 207.3 kB / 1.01 GB, free: 14.16 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.2247, allocations: 7.984 kB / 1.01 GB, free: 14.15 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.2247, allocations: 4 kB / 1.01 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.2258, allocations: 275.6 kB / 1.01 GB, free: 13.88 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.2258, allocations: 4 kB / 1.01 GB, free: 13.87 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.227, allocations: 247 kB / 1.01 GB, free: 13.63 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.867e-05/0.2271, allocations: 35.97 kB / 1.01 GB, free: 13.59 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 5.08e-06/0.2271, allocations: 4 kB / 1.011 GB, free: 13.59 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002881/0.23, allocations: 1.321 MB / 1.012 GB, free: 12.26 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.23, allocations: 4.312 kB / 1.012 GB, free: 12.25 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.939e-06/0.23, allocations: 8 kB / 1.012 GB, free: 12.25 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.231, allocations: 271.6 kB / 1.012 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.231, allocations: 7.938 kB / 1.012 GB, free: 11.97 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.2321, allocations: 231.2 kB / 1.012 GB, free: 11.75 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-05/0.2322, allocations: 39.97 kB / 1.012 GB, free: 11.71 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 (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 (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.0003985/0.2326, allocations: 420.8 kB / 1.013 GB, free: 11.29 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.2328, allocations: 150.1 kB / 1.013 GB, free: 11.14 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003272/0.2361, allocations: 1.532 MB / 1.014 GB, free: 9.586 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.2361, allocations: 19.92 kB / 1.014 GB, free: 9.566 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2361, allocations: 0 / 1.014 GB, free: 9.566 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002682/0.2388, allocations: 1.3 MB / 1.016 GB, free: 8.234 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004914/0.2437, allocations: 3.269 MB / 1.019 GB, free: 4.809 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.2437, allocations: 4 kB / 1.019 GB, free: 4.805 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009649/0.2447, allocations: 232.2 kB / 1.019 GB, free: 4.578 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.2447, allocations: 8 kB / 1.019 GB, free: 4.57 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.394e-05/0.2448, allocations: 27.92 kB / 1.019 GB, free: 4.543 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.196e-06/0.2448, allocations: 19.86 kB / 1.019 GB, free: 4.523 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2448, allocations: 8 kB / 1.019 GB, free: 4.516 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004299/0.2491, allocations: 2.333 MB / 1.021 GB, free: 2.105 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000375/0.2495, allocations: 346.8 kB / 1.022 GB, free: 1.746 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.2497, allocations: 23.94 kB / 1.022 GB, free: 1.723 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.2508, allocations: 175.9 kB / 1.022 GB, free: 1.551 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.2509, allocations: 80.28 kB / 1.022 GB, free: 1.473 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.515e-05/0.251, allocations: 35.97 kB / 1.022 GB, free: 1.438 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0009029/0.2519, allocations: 0.9371 MB / 1.023 GB, free: 0.5039 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2519, allocations: 4 kB / 1.023 GB, free: 0.5 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001309/0.2532, allocations: 0.7876 MB / 1.024 GB, free: 15.71 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.005267/0.2585, allocations: 3.281 MB / 1.027 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004249/0.2628, allocations: 2.097 MB / 1.029 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.2628, allocations: 8.125 kB / 1.029 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.2644, allocations: 0.7146 MB / 1.03 GB, free: 9.516 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/0.2678, allocations: 0.7705 MB / 1.03 GB, free: 8.754 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01932/0.2872, allocations: 13.79 MB / 1.044 GB, free: 10.41 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000599/0.2878, allocations: 1.249 MB / 1.045 GB, free: 9.133 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001242/0.289, allocations: 363.5 kB / 1.045 GB, free: 8.773 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006768/0.2897, allocations: 0.5969 MB / 1.046 GB, free: 8.176 MB / 0.698 GB Notification: Performance of SimCode: time 2.61e-07/0.2897, allocations: 4 kB / 1.046 GB, free: 8.172 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7879/1.078, allocations: 43.47 MB / 1.089 GB, free: 134.4 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001313/1.078, allocations: 256.9 kB / 1.089 GB, free: 134.1 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.48/4.558, allocations: 0 / 1.089 GB, free: 134.1 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)