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: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.424/1.424, allocations: 252 MB / 267.6 MB, free: 10.96 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.001028/0.001028, allocations: 186.2 kB / 327.3 MB, free: 2.199 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.943/1.943, allocations: 205.4 MB / 0.5783 GB, free: 20.25 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.0008668/0.0008668, allocations: 90.34 kB / 0.6829 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004525, allocations: 8.531 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.244, allocations: 106.3 MB / 0.9008 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.03658/0.2806, allocations: 55.77 MB / 0.9553 GB, free: 7.984 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01503/0.2957, allocations: 12.22 MB / 0.9672 GB, free: 11.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.2984, allocations: 55.62 kB / 0.9673 GB, free: 11.69 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.3008, allocations: 0.7104 MB / 0.968 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.3065, allocations: 1.821 MB / 0.9697 GB, free: 9.148 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.003494/0.31, allocations: 1.137 MB / 0.9709 GB, free: 8.023 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005677/0.3156, allocations: 4.738 MB / 0.9755 GB, free: 3.266 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001663/0.3173, allocations: 0.9772 MB / 0.9764 GB, free: 2.27 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002673/0.32, allocations: 1.291 MB / 0.9777 GB, free: 0.9727 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001756/0.3218, allocations: 1.085 MB / 0.9788 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001835/0.322, allocations: 56 kB / 0.9788 GB, free: 15.83 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002674/0.3247, allocations: 1.025 MB / 0.9798 GB, free: 14.8 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0003414/0.325, allocations: 318.6 kB / 0.9801 GB, free: 14.49 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0005836/0.3256, allocations: 360.8 kB / 0.9805 GB, free: 14.13 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002363/0.328, allocations: 1.953 MB / 0.9824 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.328, allocations: 3.938 kB / 0.9824 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.124e-06/0.328, allocations: 0 / 0.9824 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.377e-05/0.328, allocations: 0 / 0.9824 GB, free: 12.17 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.003131/0.3312, allocations: 1.918 MB / 0.9842 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3312, allocations: 8.031 kB / 0.9843 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003435/0.3347, allocations: 0.6495 MB / 0.9849 GB, free: 9.523 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00224/0.3369, allocations: 1.327 MB / 0.9862 GB, free: 8.145 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.3371, allocations: 141.4 kB / 0.9863 GB, free: 7.996 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.3372, allocations: 104 kB / 0.9864 GB, free: 7.895 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00291/0.3402, allocations: 1.334 MB / 0.9877 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.3402, allocations: 7.984 kB / 0.9877 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.3403, allocations: 36 kB / 0.9878 GB, free: 6.48 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-05/0.3404, allocations: 24 kB / 0.9878 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/0.344, allocations: 1.386 MB / 0.9891 GB, free: 5.07 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.007469/0.3515, allocations: 5.379 MB / 0.9944 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002416/0.354, allocations: 1.088 MB / 0.9955 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.3555, allocations: 0.6261 MB / 0.9961 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000865/0.3564, allocations: 1.236 MB / 0.9973 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001762/0.3582, allocations: 0.69 MB / 0.9979 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=69): time 3.526e-06/0.3582, allocations: 0 / 0.9979 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69): time 0.005012/0.3632, allocations: 1.785 MB / 0.9997 GB, free: 9.574 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.3633, allocations: 63.95 kB / 0.9997 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.3649, allocations: 1.304 MB / 1.001 GB, free: 8.188 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.542e-05/0.365, allocations: 45.7 kB / 1.001 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005368/0.3655, allocations: 0.6745 MB / 1.002 GB, free: 7.453 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.3657, allocations: 232.6 kB / 1.002 GB, free: 7.223 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.373e-05/0.3658, allocations: 16 kB / 1.002 GB, free: 7.207 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3659, allocations: 334 kB / 1.002 GB, free: 6.875 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/0.3674, allocations: 0.5562 MB / 1.003 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.369, allocations: 0.7704 MB / 1.004 GB, free: 5.465 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.3705, allocations: 0.6096 MB / 1.004 GB, free: 4.852 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.3706, allocations: 0 / 1.004 GB, free: 4.852 MB / 0.6511 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003687/0.3742, allocations: 1.465 MB / 1.006 GB, free: 3.371 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.3744, allocations: 203.5 kB / 1.006 GB, free: 3.125 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3744, allocations: 8 kB / 1.006 GB, free: 3.117 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.3745, allocations: 15.89 kB / 1.006 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.3757, allocations: 271.6 kB / 1.006 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.3757, allocations: 8 kB / 1.006 GB, free: 2.828 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.3776, allocations: 239 kB / 1.006 GB, free: 2.594 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.3777, allocations: 39.98 kB / 1.006 GB, free: 2.555 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.3778, allocations: 4 kB / 1.006 GB, free: 2.551 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003508/0.3813, allocations: 1.321 MB / 1.008 GB, free: 1.219 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3813, allocations: 4 kB / 1.008 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3813, allocations: 8 kB / 1.008 GB, free: 1.207 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.3825, allocations: 271.8 kB / 1.008 GB, free: 0.9414 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3825, allocations: 7.984 kB / 1.008 GB, free: 0.9336 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.3842, allocations: 231.2 kB / 1.008 GB, free: 0.707 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.419e-05/0.3843, allocations: 39.98 kB / 1.008 GB, free: 0.668 MB / 0.6511 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006946/0.385, allocations: 416.8 kB / 1.009 GB, free: 256 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.3852, allocations: 158.1 kB / 1.009 GB, free: 96 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003689/0.3889, allocations: 1.517 MB / 1.01 GB, free: 14.56 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/0.389, allocations: 12 kB / 1.01 GB, free: 14.55 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.389, allocations: 0 / 1.01 GB, free: 14.55 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003053/0.392, allocations: 1.3 MB / 1.011 GB, free: 13.22 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006218/0.3983, allocations: 3.266 MB / 1.015 GB, free: 9.789 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-06/0.3983, allocations: 8.094 kB / 1.015 GB, free: 9.781 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.3994, allocations: 235.7 kB / 1.015 GB, free: 9.551 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/0.3995, allocations: 12 kB / 1.015 GB, free: 9.539 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.085e-05/0.3995, allocations: 23.98 kB / 1.015 GB, free: 9.516 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.3996, allocations: 11.94 kB / 1.015 GB, free: 9.504 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3996, allocations: 4 kB / 1.015 GB, free: 9.5 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005323/0.4049, allocations: 2.333 MB / 1.017 GB, free: 7.094 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007913/0.4057, allocations: 370.7 kB / 1.018 GB, free: 6.711 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.4059, allocations: 20 kB / 1.018 GB, free: 6.691 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.4073, allocations: 187.1 kB / 1.018 GB, free: 6.512 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.4074, allocations: 68.38 kB / 1.018 GB, free: 6.441 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.901e-05/0.4075, allocations: 39.97 kB / 1.018 GB, free: 6.402 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001378/0.4089, allocations: 0.9293 MB / 1.019 GB, free: 5.477 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4089, allocations: 0 / 1.019 GB, free: 5.477 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001982/0.4109, allocations: 0.7798 MB / 1.02 GB, free: 4.695 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000993/0.4119, allocations: 0.4967 MB / 1.02 GB, free: 4.199 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.005258/0.4172, allocations: 2.093 MB / 1.022 GB, free: 2.078 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.4172, allocations: 4 kB / 1.022 GB, free: 2.074 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.4191, allocations: 0.6952 MB / 1.023 GB, free: 1.379 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004302/0.4234, allocations: 0.757 MB / 1.024 GB, free: 0.6289 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005341/0.4287, allocations: 3.262 MB / 1.027 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007448/0.4295, allocations: 1.242 MB / 1.028 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/0.43, allocations: 135.4 kB / 1.028 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of SimCode: time 1.122e-06/0.43, allocations: 0 / 1.028 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of Templates: time 0.04045/0.4705, allocations: 26.69 MB / 1.054 GB, free: 1.348 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)