Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 99.94 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.854/2.854, allocations: 436.5 MB / 0.7104 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003639/0.000364, allocations: 8 kB / 0.8707 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8125/0.8128, allocations: 153.7 MB / 1.021 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05263/0.8655, allocations: 50.75 MB / 1.07 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0187/0.8843, allocations: 11.41 MB / 1.082 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003133/0.8874, allocations: 63.56 kB / 1.082 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004389/0.8919, allocations: 0.9213 MB / 1.082 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.008694/0.9006, allocations: 2.281 MB / 1.085 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005911/0.9065, allocations: 1.745 MB / 1.086 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006871/0.9134, allocations: 2.565 MB / 1.089 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002437/0.9159, allocations: 1.001 MB / 1.09 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003574/0.9195, allocations: 1.175 MB / 1.091 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.9215, allocations: 0.7933 MB / 1.092 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005012/0.922, allocations: 60 kB / 1.092 GB, free: 8.211 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003586/0.9256, allocations: 0.9517 MB / 1.093 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0006627/0.9263, allocations: 302.8 kB / 1.093 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0008824/0.9272, allocations: 364.8 kB / 1.093 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003728/0.9309, allocations: 1.923 MB / 1.095 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.931, allocations: 0 / 1.095 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.024e-06/0.931, allocations: 0 / 1.095 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.588e-05/0.9311, allocations: 0 / 1.095 GB, free: 4.672 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.004679/0.9358, allocations: 1.903 MB / 1.097 GB, free: 2.703 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.9358, allocations: 15.97 kB / 1.097 GB, free: 2.688 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003817/0.9396, allocations: 0.5832 MB / 1.098 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003027/0.9427, allocations: 1.267 MB / 1.099 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.9429, allocations: 145.4 kB / 1.099 GB, free: 0.6289 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003033/0.9433, allocations: 103.9 kB / 1.099 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003492/0.9468, allocations: 1.35 MB / 1.101 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.9468, allocations: 7.938 kB / 1.101 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.9469, allocations: 39.98 kB / 1.101 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.23e-05/0.947, allocations: 31.92 kB / 1.101 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003957/0.951, allocations: 1.394 MB / 1.102 GB, free: 13.67 MB / 0.8575 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.009571/0.9605, allocations: 5.505 MB / 1.107 GB, free: 7.816 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002737/0.9633, allocations: 1.137 MB / 1.108 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00112/0.9645, allocations: 1.228 MB / 1.11 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001897/0.9664, allocations: 0.694 MB / 1.11 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=70): time 3.687e-06/0.9664, allocations: 0 / 1.11 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=70): time 0.005339/0.9718, allocations: 1.797 MB / 1.112 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.647e-05/0.9718, allocations: 63.91 kB / 1.112 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002385/0.9742, allocations: 1.325 MB / 1.113 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.9744, allocations: 49.64 kB / 1.113 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006479/0.9751, allocations: 0.67 MB / 1.114 GB, free: 496 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003143/0.9754, allocations: 240.6 kB / 1.114 GB, free: 252 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.348e-05/0.9755, allocations: 16 kB / 1.114 GB, free: 236 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.9756, allocations: 338 kB / 1.115 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.9773, allocations: 0.5524 MB / 1.115 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.9791, allocations: 0.779 MB / 1.116 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.9808, allocations: 0.6058 MB / 1.117 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.9808, allocations: 0 / 1.117 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004094/0.9849, allocations: 1.485 MB / 1.118 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006539/0.9856, allocations: 1.289 MB / 1.119 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.9856, allocations: 4 kB / 1.119 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.9856, allocations: 8 kB / 1.119 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.987, allocations: 283.6 kB / 1.12 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.296e-05/0.987, allocations: 4 kB / 1.12 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.9888, allocations: 254.9 kB / 1.12 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.989, allocations: 35.98 kB / 1.12 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.989, allocations: 4 kB / 1.12 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003561/0.9926, allocations: 1.329 MB / 1.121 GB, free: 9.043 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.9926, allocations: 7.984 kB / 1.121 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.9926, allocations: 4 kB / 1.121 GB, free: 9.031 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.994, allocations: 275.9 kB / 1.121 GB, free: 8.762 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.147e-05/0.994, allocations: 11.98 kB / 1.121 GB, free: 8.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/0.9961, allocations: 239 kB / 1.122 GB, free: 8.516 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/0.9963, allocations: 43.98 kB / 1.122 GB, free: 8.473 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (chi.tru.y,$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 (97): * Single equations (assignments): 96 * 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.001059/0.9974, allocations: 428.8 kB / 1.122 GB, free: 8.043 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000449/0.9979, allocations: 150.2 kB / 1.122 GB, free: 7.895 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004308/1.002, allocations: 1.544 MB / 1.124 GB, free: 6.328 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/1.002, allocations: 12 kB / 1.124 GB, free: 6.316 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/1.002, allocations: 0 / 1.124 GB, free: 6.316 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003277/1.006, allocations: 1.3 MB / 1.125 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007537/1.013, allocations: 3.301 MB / 1.128 GB, free: 1.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/1.013, allocations: 4 kB / 1.128 GB, free: 1.516 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/1.014, allocations: 236.1 kB / 1.129 GB, free: 1.285 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.031e-05/1.014, allocations: 8 kB / 1.129 GB, free: 1.277 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-05/1.014, allocations: 27.98 kB / 1.129 GB, free: 1.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.085e-05/1.014, allocations: 8 kB / 1.129 GB, free: 1.242 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/1.014, allocations: 11.92 kB / 1.129 GB, free: 1.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005898/1.02, allocations: 2.63 MB / 1.131 GB, free: 14.35 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/1.022, allocations: 374.7 kB / 1.132 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000429/1.022, allocations: 23.98 kB / 1.132 GB, free: 13.94 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.024, allocations: 179.7 kB / 1.132 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/1.024, allocations: 72.36 kB / 1.132 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/1.024, allocations: 43.97 kB / 1.132 GB, free: 13.65 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001774/1.026, allocations: 0.9337 MB / 1.133 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/1.026, allocations: 0 / 1.133 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002742/1.029, allocations: 0.8071 MB / 1.134 GB, free: 11.91 MB / 0.8887 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 (74): * Single equations (assignments): 66 * 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.001285/1.03, allocations: 0.5246 MB / 1.134 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.005869/1.036, allocations: 2.105 MB / 1.136 GB, free: 9.27 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/1.036, allocations: 4.188 kB / 1.136 GB, free: 9.266 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001965/1.038, allocations: 0.7185 MB / 1.137 GB, free: 8.551 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004449/1.042, allocations: 0.7354 MB / 1.138 GB, free: 7.824 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007771/1.05, allocations: 3.421 MB / 1.141 GB, free: 4.316 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/1.051, allocations: 1.28 MB / 1.142 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.002194/1.054, allocations: 370.4 kB / 1.142 GB, free: 2.645 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004959/1.054, allocations: 123.4 kB / 1.143 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of SimCode: time 1.382e-06/1.054, allocations: 0 / 1.143 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of Templates: time 0.05934/1.113, allocations: 29.47 MB / 1.171 GB, free: 5.43 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches