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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.287/2.287, allocations: 390.5 MB / 398 MB, free: 10.92 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.001131/0.001131, allocations: 188.3 kB / 491.2 MB, free: 1.547 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.606/1.606, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0009488/0.0009488, allocations: 87.58 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.778e-05/1.78e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3175, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.228/1.546, allocations: 431 MB / 1.633 GB, free: 92 kB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/1.546, allocations: 93.62 kB / 1.633 GB, free: 44 kB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 2.667/4.214, allocations: 0.6345 GB / 2.268 GB, free: 249.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.342e-06/4.214, allocations: 0 / 2.268 GB, free: 249.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001524/4.214, allocations: 46.14 kB / 2.268 GB, free: 249.7 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.003568/4.217, allocations: 1.78 MB / 2.27 GB, free: 249 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/4.217, allocations: 7.812 kB / 2.27 GB, free: 249 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003415/4.221, allocations: 0.576 MB / 2.27 GB, free: 248.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003176/4.224, allocations: 1.684 MB / 2.272 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/4.224, allocations: 107.2 kB / 2.272 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/4.224, allocations: 64.81 kB / 2.272 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001525/4.226, allocations: 0.9797 MB / 2.273 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/4.227, allocations: 1.024 MB / 2.274 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/4.227, allocations: 3.875 kB / 2.274 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.529e-05/4.228, allocations: 2.156 kB / 2.274 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.283e-05/4.228, allocations: 34.31 kB / 2.274 GB, free: 248.4 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.006569/4.234, allocations: 5.384 MB / 2.279 GB, free: 246 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/4.235, allocations: 0.698 MB / 2.28 GB, free: 246 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006121/4.236, allocations: 462.3 kB / 2.28 GB, free: 246 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007192/4.237, allocations: 1.161 MB / 2.281 GB, free: 244.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007588/4.237, allocations: 0.5542 MB / 2.282 GB, free: 244.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 3.046e-06/4.237, allocations: 3.188 kB / 2.282 GB, free: 244.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.009283/4.247, allocations: 1.744 MB / 2.284 GB, free: 244.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/4.247, allocations: 116.2 kB / 2.284 GB, free: 244.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/4.248, allocations: 1.047 MB / 2.285 GB, free: 244.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001679/4.248, allocations: 29.2 kB / 2.285 GB, free: 244.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005102/4.249, allocations: 0.6967 MB / 2.286 GB, free: 244 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/4.249, allocations: 224.9 kB / 2.286 GB, free: 243.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.517e-05/4.249, allocations: 0 / 2.286 GB, free: 243.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.13e-05/4.249, allocations: 334.9 kB / 2.286 GB, free: 243.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000482/4.25, allocations: 370.1 kB / 2.286 GB, free: 243.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006026/4.25, allocations: 0.6055 MB / 2.287 GB, free: 243.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/4.251, allocations: 445.6 kB / 2.287 GB, free: 243.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/4.251, allocations: 0 / 2.287 GB, free: 243.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.008431/4.26, allocations: 1.747 MB / 2.289 GB, free: 243.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003297/4.26, allocations: 1.193 MB / 2.29 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/4.26, allocations: 5.531 kB / 2.29 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009127/4.261, allocations: 0.5201 MB / 2.291 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008442/4.262, allocations: 195.4 kB / 2.291 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/4.264, allocations: 1.053 MB / 2.292 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/4.266, allocations: 196.4 kB / 2.292 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001819/4.267, allocations: 47.3 kB / 2.292 GB, free: 241.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/4.267, allocations: 4.438 kB / 2.292 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008277/4.275, allocations: 1.585 MB / 2.294 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/4.275, allocations: 2.938 kB / 2.294 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007648/4.276, allocations: 0.5239 MB / 2.294 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007307/4.276, allocations: 186.5 kB / 2.295 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002233/4.279, allocations: 1.054 MB / 2.296 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/4.281, allocations: 187.7 kB / 2.296 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/4.281, allocations: 54.48 kB / 2.296 GB, free: 240.8 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 (80): * Single equations (assignments): 78 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003074/4.281, allocations: 126.7 kB / 2.296 GB, free: 240.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003854/4.281, allocations: 147.8 kB / 2.296 GB, free: 240.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009429/4.291, allocations: 1.923 MB / 2.298 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/4.291, allocations: 9.312 kB / 2.298 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/4.291, allocations: 7.422 kB / 2.298 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008792/4.3, allocations: 1.756 MB / 2.3 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005654/4.305, allocations: 3.187 MB / 2.303 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/4.305, allocations: 6.469 kB / 2.303 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006213/4.306, allocations: 158.3 kB / 2.303 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007557/4.307, allocations: 0.526 MB / 2.303 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.532e-05/4.307, allocations: 21.94 kB / 2.303 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003227/4.31, allocations: 1.191 MB / 2.305 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/4.31, allocations: 6.656 kB / 2.305 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003163/4.313, allocations: 2.231 MB / 2.307 GB, free: 238.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009478/4.314, allocations: 488.9 kB / 2.307 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003465/4.315, allocations: 7.75 kB / 2.307 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/4.316, allocations: 156.6 kB / 2.307 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/4.316, allocations: 74.08 kB / 2.308 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/4.317, allocations: 54.73 kB / 2.308 GB, free: 237.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001128/4.318, allocations: 0.798 MB / 2.308 GB, free: 237.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.51e-07/4.318, allocations: 4.938 kB / 2.308 GB, free: 237.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002785/4.32, allocations: 0.8517 MB / 2.309 GB, free: 237.6 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 (66): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001564/4.322, allocations: 0.8194 MB / 2.31 GB, free: 237.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004745/4.327, allocations: 1.699 MB / 2.312 GB, free: 237.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/4.327, allocations: 3.938 kB / 2.312 GB, free: 237.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0029/4.33, allocations: 0.7539 MB / 2.312 GB, free: 237.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003272/4.333, allocations: 0.632 MB / 2.313 GB, free: 237.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004734/4.338, allocations: 2.216 MB / 2.315 GB, free: 236.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000724/4.339, allocations: 1.281 MB / 2.316 GB, free: 235.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001887/4.34, allocations: 434.7 kB / 2.317 GB, free: 235.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/4.341, allocations: 89.38 kB / 2.317 GB, free: 235.9 MB / 1.151 GB Notification: Performance of SimCode: time 9.12e-07/4.341, allocations: 0 / 2.317 GB, free: 235.9 MB / 1.151 GB Notification: Performance of Templates: time 0.04921/4.39, allocations: 34.24 MB / 2.35 GB, free: 234.4 MB / 1.151 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