Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.26/2.26, allocations: 387.4 MB / 394.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.001129, allocations: 172.9 kB / 487.4 MB, free: 5.051 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008976/0.0008975, allocations: 93.95 kB / 0.9219 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.342e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3097, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.311/1.621, allocations: 429 MB / 1.625 GB, free: 9.711 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003722/1.621, allocations: 92.38 kB / 1.625 GB, free: 9.664 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 2.967/4.589, allocations: 0.6341 GB / 2.259 GB, free: 249.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.453e-06/4.589, allocations: 3.25 kB / 2.259 GB, free: 249.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002824/4.589, allocations: 45.17 kB / 2.259 GB, free: 249.2 MB / 1.151 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.005375/4.594, allocations: 1.779 MB / 2.261 GB, free: 248.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/4.594, allocations: 11.78 kB / 2.261 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003929/4.598, allocations: 0.6328 MB / 2.261 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004777/4.603, allocations: 1.667 MB / 2.263 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002029/4.603, allocations: 104.5 kB / 2.263 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000406/4.604, allocations: 64.98 kB / 2.263 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002115/4.606, allocations: 0.9231 MB / 2.264 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/4.608, allocations: 0.9968 MB / 2.265 GB, free: 247.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/4.608, allocations: 10 kB / 2.265 GB, free: 247.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.83e-05/4.608, allocations: 0 / 2.265 GB, free: 247.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.354e-05/4.608, allocations: 23.44 kB / 2.265 GB, free: 247.9 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.006964/4.615, allocations: 5.252 MB / 2.27 GB, free: 245.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/4.616, allocations: 0.6764 MB / 2.271 GB, free: 245.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005585/4.616, allocations: 442.3 kB / 2.271 GB, free: 245.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007744/4.617, allocations: 1.243 MB / 2.273 GB, free: 244.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007094/4.618, allocations: 0.5273 MB / 2.273 GB, free: 244.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=67): time 4.047e-06/4.618, allocations: 0 / 2.273 GB, free: 244.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=67): time 0.001997/4.62, allocations: 0.9192 MB / 2.274 GB, free: 243.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/4.62, allocations: 110.8 kB / 2.274 GB, free: 243.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/4.622, allocations: 1.04 MB / 2.275 GB, free: 243.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001133/4.622, allocations: 32.92 kB / 2.275 GB, free: 243.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005533/4.622, allocations: 0.6977 MB / 2.276 GB, free: 243.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/4.623, allocations: 224.6 kB / 2.276 GB, free: 243.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/4.623, allocations: 0 / 2.276 GB, free: 243.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.756e-05/4.623, allocations: 331.2 kB / 2.276 GB, free: 243 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00045/4.623, allocations: 346.4 kB / 2.277 GB, free: 243 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006125/4.624, allocations: 0.5848 MB / 2.277 GB, free: 242.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009782/4.625, allocations: 429.7 kB / 2.278 GB, free: 242.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/4.625, allocations: 0.75 kB / 2.278 GB, free: 242.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001923/4.627, allocations: 1.027 MB / 2.279 GB, free: 242.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003002/4.627, allocations: 1.2 MB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/4.627, allocations: 7.625 kB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/4.627, allocations: 7.656 kB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/4.628, allocations: 272.7 kB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/4.628, allocations: 7.75 kB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/4.63, allocations: 199.1 kB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/4.63, allocations: 51.69 kB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/4.63, allocations: 4.625 kB / 2.28 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001581/4.632, allocations: 0.8595 MB / 2.281 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/4.632, allocations: 3.969 kB / 2.281 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/4.632, allocations: 3.969 kB / 2.281 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/4.633, allocations: 272.4 kB / 2.282 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/4.633, allocations: 7.906 kB / 2.282 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/4.635, allocations: 204 kB / 2.282 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/4.635, allocations: 54.42 kB / 2.282 GB, free: 241.4 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * 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.0002571/4.635, allocations: 127.1 kB / 2.282 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/4.635, allocations: 145.8 kB / 2.282 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002221/4.638, allocations: 1.097 MB / 2.283 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/4.638, allocations: 11.5 kB / 2.283 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/4.638, allocations: 3.344 kB / 2.283 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001374/4.639, allocations: 0.9285 MB / 2.284 GB, free: 240.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004564/4.644, allocations: 2.984 MB / 2.287 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/4.644, allocations: 6.562 kB / 2.287 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/4.645, allocations: 238.7 kB / 2.287 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.4e-05/4.645, allocations: 10.25 kB / 2.287 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.748e-05/4.645, allocations: 23.2 kB / 2.287 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/4.645, allocations: 11.72 kB / 2.287 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.388e-06/4.645, allocations: 14.2 kB / 2.287 GB, free: 240.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/4.647, allocations: 2.046 MB / 2.289 GB, free: 239.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000802/4.648, allocations: 479.1 kB / 2.29 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/4.648, allocations: 10.94 kB / 2.29 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/4.65, allocations: 158.3 kB / 2.29 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/4.65, allocations: 72.33 kB / 2.29 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/4.65, allocations: 52.92 kB / 2.29 GB, free: 239.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001101/4.651, allocations: 0.799 MB / 2.291 GB, free: 239 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.8e-07/4.651, allocations: 3.828 kB / 2.291 GB, free: 239 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002462/4.654, allocations: 0.8285 MB / 2.292 GB, free: 238.9 MB / 1.151 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) * 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.001437/4.655, allocations: 0.8138 MB / 2.292 GB, free: 238.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002037/4.657, allocations: 1.43 MB / 2.294 GB, free: 238.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/4.657, allocations: 0 / 2.294 GB, free: 238.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007777/4.658, allocations: 0.4932 MB / 2.294 GB, free: 238.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/4.661, allocations: 0.632 MB / 2.295 GB, free: 238.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/4.664, allocations: 2.004 MB / 2.297 GB, free: 237.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006811/4.665, allocations: 1.277 MB / 2.298 GB, free: 237.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002166/4.667, allocations: 471.8 kB / 2.298 GB, free: 237.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/4.668, allocations: 98.08 kB / 2.299 GB, free: 237.1 MB / 1.151 GB Notification: Performance of SimCode: time 2.194e-06/4.668, allocations: 0 / 2.299 GB, free: 237.1 MB / 1.151 GB Notification: Performance of Templates: time 0.04743/4.715, allocations: 29.66 MB / 2.328 GB, free: 236.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches