Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.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: translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.515/1.515, allocations: 251.5 MB / 267.4 MB, free: 11.05 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.0009625/0.0009625, allocations: 182 kB / 326.5 MB, free: 2.703 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.687/1.687, allocations: 205 MB / 0.5766 GB, free: 21.04 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.0008475/0.0008474, allocations: 92.66 kB / 0.6804 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.000377, allocations: 15.38 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2242, allocations: 105.4 MB / 0.8967 GB, free: 68.21 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.04579/0.2701, allocations: 59.75 MB / 0.9551 GB, free: 8.242 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01674/0.2869, allocations: 13.08 MB / 0.9679 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002754/0.2897, allocations: 59.62 kB / 0.9679 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002876/0.2926, allocations: 0.808 MB / 0.9687 GB, free: 10.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.006729/0.2993, allocations: 2.132 MB / 0.9708 GB, free: 8.117 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.004331/0.3037, allocations: 1.359 MB / 0.9721 GB, free: 6.766 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.006867/0.3106, allocations: 5.518 MB / 0.9775 GB, free: 1.234 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002293/0.3129, allocations: 1.086 MB / 0.9786 GB, free: 120 kB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003531/0.3164, allocations: 1.349 MB / 0.9799 GB, free: 14.76 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.3186, allocations: 1.143 MB / 0.981 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0004882/0.3191, allocations: 67.94 kB / 0.9811 GB, free: 13.55 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003857/0.323, allocations: 1.333 MB / 0.9824 GB, free: 12.21 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0006055/0.3236, allocations: 330.4 kB / 0.9827 GB, free: 11.89 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.3249, allocations: 0.8003 MB / 0.9835 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002798/0.3277, allocations: 2.003 MB / 0.9854 GB, free: 9.074 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3277, allocations: 0 / 0.9854 GB, free: 9.074 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.625e-06/0.3277, allocations: 0 / 0.9854 GB, free: 9.074 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.93e-05/0.3277, allocations: 0 / 0.9854 GB, free: 9.074 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.003325/0.3311, allocations: 1.874 MB / 0.9873 GB, free: 7.137 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3311, allocations: 12.03 kB / 0.9873 GB, free: 7.125 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00344/0.3346, allocations: 0.6386 MB / 0.9879 GB, free: 6.484 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/0.3368, allocations: 1.368 MB / 0.9892 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.337, allocations: 141.4 kB / 0.9894 GB, free: 4.91 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.3372, allocations: 100 kB / 0.9895 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002787/0.34, allocations: 1.334 MB / 0.9908 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.34, allocations: 0 / 0.9908 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.3401, allocations: 36 kB / 0.9908 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.3402, allocations: 27.98 kB / 0.9908 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003486/0.3436, allocations: 1.382 MB / 0.9922 GB, free: 1.996 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.00692/0.3506, allocations: 5.342 MB / 0.9974 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005398/0.356, allocations: 1.499 MB / 0.9988 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.3576, allocations: 0.6249 MB / 0.9995 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009307/0.3586, allocations: 1.235 MB / 1.001 GB, free: 8.621 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001797/0.3604, allocations: 0.6784 MB / 1.001 GB, free: 7.934 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=69): time 3.617e-06/0.3604, allocations: 0 / 1.001 GB, free: 7.934 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69): time 0.005179/0.3656, allocations: 1.781 MB / 1.003 GB, free: 6.141 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.3657, allocations: 63.95 kB / 1.003 GB, free: 6.066 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/0.3674, allocations: 1.259 MB / 1.004 GB, free: 4.797 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.775e-05/0.3675, allocations: 45.64 kB / 1.004 GB, free: 4.746 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007037/0.3682, allocations: 0.6501 MB / 1.005 GB, free: 4.09 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/0.3685, allocations: 232.6 kB / 1.005 GB, free: 3.859 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.3686, allocations: 69.67 kB / 1.005 GB, free: 3.785 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3687, allocations: 338 kB / 1.006 GB, free: 3.449 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.3703, allocations: 0.5484 MB / 1.006 GB, free: 2.902 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.372, allocations: 0.7782 MB / 1.007 GB, free: 2.039 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003096/0.3751, allocations: 1.206 MB / 1.008 GB, free: 0.7891 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3751, allocations: 0 / 1.008 GB, free: 0.7891 MB / 0.6511 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003802/0.3789, allocations: 1.458 MB / 1.01 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.3791, allocations: 215.2 kB / 1.01 GB, free: 15.06 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3791, allocations: 4 kB / 1.01 GB, free: 15.06 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3791, allocations: 4 kB / 1.01 GB, free: 15.05 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.3804, allocations: 279.6 kB / 1.01 GB, free: 14.78 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.3804, allocations: 4 kB / 1.01 GB, free: 14.78 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.382, allocations: 239 kB / 1.01 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.79e-05/0.3821, allocations: 39.97 kB / 1.01 GB, free: 14.5 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/0.3821, allocations: 8 kB / 1.01 GB, free: 14.5 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003317/0.3855, allocations: 1.301 MB / 1.012 GB, free: 13.18 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3855, allocations: 4 kB / 1.012 GB, free: 13.18 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.3855, allocations: 11.98 kB / 1.012 GB, free: 13.17 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.3867, allocations: 268 kB / 1.012 GB, free: 12.91 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.3867, allocations: 11.94 kB / 1.012 GB, free: 12.89 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.3883, allocations: 235 kB / 1.012 GB, free: 12.66 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-05/0.3884, allocations: 43.97 kB / 1.012 GB, free: 12.62 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.0006874/0.3891, allocations: 408.8 kB / 1.013 GB, free: 12.21 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.3894, allocations: 146.2 kB / 1.013 GB, free: 12.07 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.3931, allocations: 1.528 MB / 1.014 GB, free: 10.52 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.3932, allocations: 8 kB / 1.014 GB, free: 10.51 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.3932, allocations: 3.938 kB / 1.014 GB, free: 10.51 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0031/0.3963, allocations: 1.285 MB / 1.015 GB, free: 9.191 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006519/0.4028, allocations: 3.233 MB / 1.019 GB, free: 5.801 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.4029, allocations: 4 kB / 1.019 GB, free: 5.797 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.404, allocations: 236.2 kB / 1.019 GB, free: 5.566 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.032e-05/0.4041, allocations: 8 kB / 1.019 GB, free: 5.559 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.661e-05/0.4042, allocations: 23.98 kB / 1.019 GB, free: 5.535 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.48e-05/0.4042, allocations: 15.88 kB / 1.019 GB, free: 5.52 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.4042, allocations: 4 kB / 1.019 GB, free: 5.516 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005809/0.41, allocations: 2.306 MB / 1.021 GB, free: 3.133 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007509/0.4108, allocations: 342.9 kB / 1.021 GB, free: 2.777 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003156/0.4111, allocations: 23.98 kB / 1.021 GB, free: 2.754 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.4127, allocations: 183.7 kB / 1.022 GB, free: 2.574 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.4129, allocations: 76.34 kB / 1.022 GB, free: 2.5 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.384e-05/0.413, allocations: 39.97 kB / 1.022 GB, free: 2.461 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001478/0.4145, allocations: 0.8968 MB / 1.023 GB, free: 1.566 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4145, allocations: 0 / 1.023 GB, free: 1.566 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002314/0.4168, allocations: 0.7798 MB / 1.023 GB, free: 0.7852 MB / 0.6667 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.001253/0.4181, allocations: 0.5027 MB / 1.024 GB, free: 292 kB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.005532/0.4236, allocations: 2.085 MB / 1.026 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4236, allocations: 0 / 1.026 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.4255, allocations: 0.6952 MB / 1.027 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004508/0.43, allocations: 0.7547 MB / 1.027 GB, free: 12.73 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005395/0.4354, allocations: 3.23 MB / 1.03 GB, free: 9.41 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009424/0.4364, allocations: 1.226 MB / 1.032 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005545/0.437, allocations: 139.3 kB / 1.032 GB, free: 8.02 MB / 0.6823 GB Notification: Performance of SimCode: time 6.51e-07/0.437, allocations: 3.938 kB / 1.032 GB, free: 8.016 MB / 0.6823 GB Notification: Performance of Templates: time 0.3873/0.8243, allocations: 26.31 MB / 1.057 GB, free: 147.7 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)