Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,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.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,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.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.315/2.315, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.00115/0.00115, allocations: 183.4 kB / 492.3 MB, free: 0.6055 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.578/1.578, allocations: 221.3 MB / 0.7871 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 101.9 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.397e-05/4.409e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3213, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.363/1.685, allocations: 429.6 MB / 1.632 GB, free: 1.051 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/1.685, allocations: 86.08 kB / 1.632 GB, free: 1.008 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 2.88/4.565, allocations: 0.6372 GB / 2.269 GB, free: 249.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.953e-06/4.565, allocations: 0 / 2.269 GB, free: 249.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001636/4.566, allocations: 39.44 kB / 2.269 GB, free: 249.8 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.003788/4.569, allocations: 1.761 MB / 2.271 GB, free: 249.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/4.569, allocations: 6.969 kB / 2.271 GB, free: 249.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003503/4.573, allocations: 0.6278 MB / 2.272 GB, free: 249 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003516/4.576, allocations: 1.657 MB / 2.273 GB, free: 248.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/4.577, allocations: 146.2 kB / 2.273 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/4.577, allocations: 100.3 kB / 2.273 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/4.579, allocations: 1.11 MB / 2.275 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/4.579, allocations: 1.5 kB / 2.275 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/4.579, allocations: 40.53 kB / 2.275 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.331e-05/4.579, allocations: 24.53 kB / 2.275 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/4.581, allocations: 0.9597 MB / 2.276 GB, free: 248.5 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.007742/4.588, allocations: 5.38 MB / 2.281 GB, free: 246.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004364/4.593, allocations: 1.102 MB / 2.282 GB, free: 246.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007447/4.594, allocations: 451.8 kB / 2.282 GB, free: 246.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008974/4.594, allocations: 1.237 MB / 2.284 GB, free: 244.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008644/4.595, allocations: 0.5417 MB / 2.284 GB, free: 244.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=67): time 3.307e-06/4.595, allocations: 3.969 kB / 2.284 GB, free: 244.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=67): time 0.002172/4.598, allocations: 0.871 MB / 2.285 GB, free: 244.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/4.598, allocations: 114.8 kB / 2.285 GB, free: 244.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/4.599, allocations: 1.133 MB / 2.286 GB, free: 244.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001378/4.599, allocations: 47.61 kB / 2.286 GB, free: 244.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006826/4.6, allocations: 0.6731 MB / 2.287 GB, free: 244 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/4.6, allocations: 228.2 kB / 2.287 GB, free: 243.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.714e-05/4.601, allocations: 13.09 kB / 2.287 GB, free: 243.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000106/4.601, allocations: 340.4 kB / 2.287 GB, free: 243.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005136/4.601, allocations: 343.9 kB / 2.288 GB, free: 243.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006958/4.602, allocations: 0.5957 MB / 2.288 GB, free: 243.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005764/4.602, allocations: 399.2 kB / 2.289 GB, free: 243.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/4.602, allocations: 0 / 2.289 GB, free: 243.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001781/4.604, allocations: 1.02 MB / 2.29 GB, free: 243.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000285/4.605, allocations: 1.202 MB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/4.605, allocations: 3.688 kB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/4.605, allocations: 4.312 kB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/4.606, allocations: 280.3 kB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/4.606, allocations: 7.594 kB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/4.608, allocations: 236.1 kB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/4.608, allocations: 48.78 kB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/4.608, allocations: 5.781 kB / 2.291 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001376/4.609, allocations: 0.8761 MB / 2.292 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/4.609, allocations: 2.938 kB / 2.292 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/4.609, allocations: 11.36 kB / 2.292 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/4.61, allocations: 275 kB / 2.293 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/4.61, allocations: 10.84 kB / 2.293 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/4.612, allocations: 227.4 kB / 2.293 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/4.612, allocations: 46.12 kB / 2.293 GB, free: 241.7 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.0002847/4.613, allocations: 161.5 kB / 2.293 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002768/4.613, allocations: 143.2 kB / 2.293 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/4.615, allocations: 1.094 MB / 2.294 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/4.615, allocations: 11.67 kB / 2.294 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/4.615, allocations: 0 / 2.294 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001122/4.616, allocations: 0.9077 MB / 2.295 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004739/4.621, allocations: 3.087 MB / 2.298 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/4.621, allocations: 11.22 kB / 2.298 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/4.622, allocations: 236.4 kB / 2.298 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.741e-05/4.622, allocations: 11.05 kB / 2.298 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.389e-05/4.622, allocations: 31.98 kB / 2.298 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.337e-05/4.622, allocations: 8.875 kB / 2.298 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/4.622, allocations: 10.62 kB / 2.298 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002798/4.625, allocations: 2.056 MB / 2.3 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/4.626, allocations: 482.3 kB / 2.301 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/4.626, allocations: 20.45 kB / 2.301 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/4.628, allocations: 183.5 kB / 2.301 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/4.628, allocations: 72.77 kB / 2.301 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-05/4.628, allocations: 48.75 kB / 2.301 GB, free: 239.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001368/4.629, allocations: 0.9113 MB / 2.302 GB, free: 239.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/4.629, allocations: 3.5 kB / 2.302 GB, free: 239.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002482/4.632, allocations: 0.8426 MB / 2.303 GB, free: 239 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.001556/4.633, allocations: 0.8014 MB / 2.304 GB, free: 238.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002221/4.636, allocations: 1.466 MB / 2.305 GB, free: 238.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/4.636, allocations: 0 / 2.305 GB, free: 238.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008073/4.636, allocations: 0.5145 MB / 2.306 GB, free: 238.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003804/4.64, allocations: 0.7477 MB / 2.306 GB, free: 238.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/4.644, allocations: 2.007 MB / 2.308 GB, free: 238 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006184/4.644, allocations: 1.263 MB / 2.309 GB, free: 237.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002292/4.646, allocations: 487.8 kB / 2.31 GB, free: 237.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/4.647, allocations: 100.9 kB / 2.31 GB, free: 237.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.264e-06/4.647, allocations: 0 / 2.31 GB, free: 237.3 MB / 1.151 GB Notification: Performance of Templates: time 0.05624/4.703, allocations: 36.48 MB / 2.346 GB, free: 235.9 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches