Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.662/2.662, allocations: 287.3 MB / 302.3 MB, free: 8.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001597/0.001597, allocations: 177.6 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.494/2.494, allocations: 205.4 MB / 0.6295 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001242/0.001243, allocations: 101.5 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005294/0.0005298, allocations: 11.95 kB / 0.8656 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2258, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.07508/0.3009, allocations: 50.59 MB / 1.028 GB, free: 9.672 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02565/0.3266, allocations: 11.27 MB / 1.039 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.3294, allocations: 59.62 kB / 1.039 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.004612/0.334, allocations: 0.9213 MB / 1.04 GB, free: 13.4 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.3447, allocations: 2.224 MB / 1.042 GB, free: 11.17 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.00834/0.353, allocations: 1.722 MB / 1.043 GB, free: 9.48 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.007219/0.3603, allocations: 2.544 MB / 1.046 GB, free: 6.934 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002539/0.3629, allocations: 0.9935 MB / 1.047 GB, free: 5.922 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004064/0.367, allocations: 1.172 MB / 1.048 GB, free: 4.746 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.3693, allocations: 0.7816 MB / 1.049 GB, free: 3.961 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0004674/0.3698, allocations: 60 kB / 1.049 GB, free: 3.902 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004433/0.3743, allocations: 0.9362 MB / 1.05 GB, free: 2.965 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.0008644/0.3752, allocations: 298.8 kB / 1.05 GB, free: 2.672 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.0009942/0.3762, allocations: 360.8 kB / 1.05 GB, free: 2.312 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.004932/0.3812, allocations: 1.882 MB / 1.052 GB, free: 436 kB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3813, allocations: 0 / 1.052 GB, free: 436 kB / 0.6667 GB Notification: Performance of FrontEnd: time 2.925e-06/0.3813, allocations: 0 / 1.052 GB, free: 436 kB / 0.6667 GB Notification: Performance of Transformations before backend: time 9.059e-05/0.3814, allocations: 0 / 1.052 GB, free: 436 kB / 0.6667 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.005911/0.3873, allocations: 1.898 MB / 1.054 GB, free: 14.46 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.3874, allocations: 8.031 kB / 1.054 GB, free: 14.45 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006338/0.3937, allocations: 0.6418 MB / 1.055 GB, free: 13.81 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003865/0.3976, allocations: 1.23 MB / 1.056 GB, free: 12.53 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002516/0.3979, allocations: 153.4 kB / 1.056 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002878/0.3982, allocations: 100 kB / 1.056 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005424/0.4037, allocations: 1.33 MB / 1.057 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.578e-05/0.4038, allocations: 4 kB / 1.057 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.4039, allocations: 36 kB / 1.057 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-05/0.404, allocations: 24 kB / 1.057 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006934/0.411, allocations: 1.386 MB / 1.059 GB, free: 9.457 MB / 0.6823 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.01291/0.4239, allocations: 5.386 MB / 1.064 GB, free: 3.719 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004899/0.4288, allocations: 1.117 MB / 1.065 GB, free: 2.555 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001338/0.4302, allocations: 1.232 MB / 1.066 GB, free: 1.047 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003361/0.4336, allocations: 0.6939 MB / 1.067 GB, free: 352 kB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 4.749e-06/0.4337, allocations: 0 / 1.067 GB, free: 352 kB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.6537/1.087, allocations: 1.79 MB / 1.069 GB, free: 89.94 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.611e-05/1.087, allocations: 61.28 kB / 1.069 GB, free: 89.88 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002717/1.09, allocations: 1.304 MB / 1.07 GB, free: 89.57 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002222/1.09, allocations: 41.78 kB / 1.07 GB, free: 89.53 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007512/1.091, allocations: 0.6702 MB / 1.071 GB, free: 89.08 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003594/1.092, allocations: 237.5 kB / 1.071 GB, free: 88.93 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/1.092, allocations: 15.19 kB / 1.071 GB, free: 88.91 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.527e-05/1.092, allocations: 335.4 kB / 1.071 GB, free: 88.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002928/1.095, allocations: 0.5559 MB / 1.072 GB, free: 88.47 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003166/1.098, allocations: 0.7711 MB / 1.073 GB, free: 88.1 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00299/1.101, allocations: 0.6028 MB / 1.073 GB, free: 87.91 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/1.101, allocations: 0.6875 kB / 1.073 GB, free: 87.91 MB / 0.6823 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.006897/1.108, allocations: 1.464 MB / 1.075 GB, free: 87.46 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003024/1.108, allocations: 1.201 MB / 1.076 GB, free: 86.17 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/1.108, allocations: 6.688 kB / 1.076 GB, free: 86.17 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.347e-05/1.108, allocations: 9.562 kB / 1.076 GB, free: 86.17 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002489/1.111, allocations: 281 kB / 1.076 GB, free: 86.15 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.554e-05/1.111, allocations: 7.484 kB / 1.076 GB, free: 86.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/1.114, allocations: 241.9 kB / 1.076 GB, free: 86.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001971/1.114, allocations: 43.3 kB / 1.076 GB, free: 86.09 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/1.114, allocations: 4.344 kB / 1.076 GB, free: 86.09 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006557/1.121, allocations: 1.317 MB / 1.078 GB, free: 85.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/1.121, allocations: 2.844 kB / 1.078 GB, free: 85.72 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/1.121, allocations: 7.406 kB / 1.078 GB, free: 85.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/1.123, allocations: 279.6 kB / 1.078 GB, free: 85.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.9e-05/1.123, allocations: 6.547 kB / 1.078 GB, free: 85.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00325/1.127, allocations: 231 kB / 1.078 GB, free: 85.65 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003076/1.127, allocations: 39.34 kB / 1.078 GB, free: 85.65 MB / 0.6823 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.001726/1.129, allocations: 423.9 kB / 1.079 GB, free: 85.33 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007746/1.129, allocations: 145.3 kB / 1.079 GB, free: 85.26 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/1.141, allocations: 1.526 MB / 1.08 GB, free: 84.78 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-05/1.142, allocations: 8.859 kB / 1.08 GB, free: 84.78 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.142, allocations: 5.469 kB / 1.08 GB, free: 84.77 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009427/1.151, allocations: 1.297 MB / 1.082 GB, free: 84.31 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/1.169, allocations: 3.281 MB / 1.085 GB, free: 82.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.118e-05/1.169, allocations: 3.969 kB / 1.085 GB, free: 82.77 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003422/1.172, allocations: 230.9 kB / 1.085 GB, free: 82.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.874e-05/1.172, allocations: 8.219 kB / 1.085 GB, free: 82.75 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002447/1.173, allocations: 31.44 kB / 1.085 GB, free: 82.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-05/1.173, allocations: 11.75 kB / 1.085 GB, free: 82.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/1.173, allocations: 8.609 kB / 1.085 GB, free: 82.73 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01581/1.189, allocations: 2.612 MB / 1.088 GB, free: 81.33 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001755/1.19, allocations: 376.7 kB / 1.088 GB, free: 81.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006862/1.191, allocations: 26.22 kB / 1.088 GB, free: 81.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004437/1.196, allocations: 175.9 kB / 1.088 GB, free: 81.03 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004533/1.196, allocations: 68.47 kB / 1.088 GB, free: 81.01 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002813/1.196, allocations: 42.78 kB / 1.088 GB, free: 81 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.003518/1.2, allocations: 0.933 MB / 1.089 GB, free: 80.63 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.613e-06/1.2, allocations: 3.828 kB / 1.089 GB, free: 80.63 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.005473/1.206, allocations: 0.798 MB / 1.09 GB, free: 80.49 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 (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.002361/1.208, allocations: 0.5078 MB / 1.09 GB, free: 80.32 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.01505/1.223, allocations: 2.088 MB / 1.093 GB, free: 79.69 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.536e-05/1.223, allocations: 1.031 kB / 1.093 GB, free: 79.69 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.005343/1.228, allocations: 0.7184 MB / 1.093 GB, free: 79.48 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01069/1.239, allocations: 0.7413 MB / 1.094 GB, free: 79.31 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009495/1.249, allocations: 3.213 MB / 1.097 GB, free: 77.45 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/1.25, allocations: 1.272 MB / 1.098 GB, free: 76.68 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003334/1.253, allocations: 352.8 kB / 1.099 GB, free: 76.58 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006873/1.254, allocations: 121.1 kB / 1.099 GB, free: 76.56 MB / 0.6823 GB Notification: Performance of SimCode: time 1.624e-06/1.254, allocations: 0 / 1.099 GB, free: 76.56 MB / 0.6823 GB Notification: Performance of Templates: time 0.08271/1.337, allocations: 29.44 MB / 1.128 GB, free: 57.71 MB / 0.6823 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)