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.303/2.303, allocations: 393.5 MB / 408.4 MB, free: 11.09 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.001428/0.001428, allocations: 183.9 kB / 0.4902 GB, free: 2.242 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.676/1.676, allocations: 223.2 MB / 0.7992 GB, free: 14.74 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.001053/0.001054, allocations: 92.28 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004209/0.0004209, allocations: 10.53 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3522, allocations: 143 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.324/1.677, allocations: 431.7 MB / 1.651 GB, free: 13.93 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/1.677, allocations: 94.52 kB / 1.651 GB, free: 13.88 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 2.159/3.836, allocations: 0.64 GB / 2.291 GB, free: 29.34 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.315e-06/3.836, allocations: 0 / 2.291 GB, free: 29.34 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002937/3.837, allocations: 47.92 kB / 2.291 GB, free: 29.29 MB / 1.167 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.00637/3.843, allocations: 2.105 MB / 2.293 GB, free: 27.12 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/3.843, allocations: 15.97 kB / 2.293 GB, free: 27.11 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003932/3.847, allocations: 0.5754 MB / 2.294 GB, free: 26.53 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004168/3.851, allocations: 1.692 MB / 2.295 GB, free: 24.79 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/3.851, allocations: 157.4 kB / 2.295 GB, free: 24.62 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/3.852, allocations: 100 kB / 2.295 GB, free: 24.52 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002866/3.855, allocations: 1.354 MB / 2.297 GB, free: 23.13 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/3.855, allocations: 0 / 2.297 GB, free: 23.13 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/3.855, allocations: 44 kB / 2.297 GB, free: 23.09 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.394e-05/3.855, allocations: 31.88 kB / 2.297 GB, free: 23.06 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00343/3.858, allocations: 1.417 MB / 2.298 GB, free: 21.64 MB / 1.167 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.006741/3.865, allocations: 5.568 MB / 2.304 GB, free: 15.72 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/3.867, allocations: 0.9708 MB / 2.305 GB, free: 14.74 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006904/3.868, allocations: 1.164 MB / 2.306 GB, free: 13.32 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001609/3.87, allocations: 0.7174 MB / 2.306 GB, free: 12.59 MB / 1.167 GB Notification: Performance of pre-optimization done (n=68): time 4.138e-06/3.87, allocations: 0 / 2.306 GB, free: 12.59 MB / 1.167 GB Notification: Performance of matching and sorting (n=68): time 0.02289/3.892, allocations: 4.039 MB / 2.31 GB, free: 8.516 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/3.893, allocations: 67.95 kB / 2.311 GB, free: 8.438 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/3.894, allocations: 1.208 MB / 2.312 GB, free: 7.223 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002317/3.895, allocations: 37.7 kB / 2.312 GB, free: 7.18 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005221/3.895, allocations: 0.6938 MB / 2.312 GB, free: 6.477 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/3.895, allocations: 236.6 kB / 2.313 GB, free: 6.242 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.547e-05/3.895, allocations: 12 kB / 2.313 GB, free: 6.23 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.298e-05/3.896, allocations: 334 kB / 2.313 GB, free: 5.898 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/3.897, allocations: 0.5641 MB / 2.314 GB, free: 5.336 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/3.899, allocations: 0.8219 MB / 2.314 GB, free: 4.414 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/3.9, allocations: 0.6002 MB / 2.315 GB, free: 3.809 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/3.9, allocations: 0 / 2.315 GB, free: 3.809 MB / 1.167 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.006969/3.907, allocations: 1.965 MB / 2.317 GB, free: 1.824 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003313/3.907, allocations: 1.198 MB / 2.318 GB, free: 0.5156 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/3.907, allocations: 4 kB / 2.318 GB, free: 0.5117 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7747/4.682, allocations: 0.7498 MB / 2.319 GB, free: 241.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/4.683, allocations: 189.5 kB / 2.319 GB, free: 241.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005131/4.688, allocations: 1.459 MB / 2.32 GB, free: 241.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/4.691, allocations: 234.1 kB / 2.321 GB, free: 241.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/4.691, allocations: 55.66 kB / 2.321 GB, free: 241.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/4.691, allocations: 3 kB / 2.321 GB, free: 241.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006774/4.698, allocations: 1.796 MB / 2.322 GB, free: 241.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/4.698, allocations: 9.812 kB / 2.322 GB, free: 241.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002292/4.7, allocations: 0.7587 MB / 2.323 GB, free: 241.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008983/4.701, allocations: 185.3 kB / 2.323 GB, free: 241.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004944/4.706, allocations: 1.463 MB / 2.325 GB, free: 240.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002202/4.708, allocations: 220.4 kB / 2.325 GB, free: 240.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/4.708, allocations: 50.73 kB / 2.325 GB, free: 240.6 MB / 1.167 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 (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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001079/4.709, allocations: 422.3 kB / 2.325 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000383/4.71, allocations: 150.9 kB / 2.326 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/4.722, allocations: 2.446 MB / 2.328 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.056e-05/4.722, allocations: 11.62 kB / 2.328 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/4.722, allocations: 3.188 kB / 2.328 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01183/4.734, allocations: 2.255 MB / 2.33 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009652/4.744, allocations: 3.725 MB / 2.334 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/4.744, allocations: 4.859 kB / 2.334 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007299/4.744, allocations: 156.2 kB / 2.334 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002197/4.747, allocations: 0.7552 MB / 2.335 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/4.747, allocations: 26.62 kB / 2.335 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005135/4.752, allocations: 1.466 MB / 2.336 GB, free: 239 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/4.752, allocations: 8.625 kB / 2.336 GB, free: 239 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007684/4.76, allocations: 2.97 MB / 2.339 GB, free: 238.2 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001546/4.761, allocations: 494 kB / 2.339 GB, free: 237.9 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003649/4.762, allocations: 18.94 kB / 2.34 GB, free: 237.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/4.763, allocations: 179.8 kB / 2.34 GB, free: 237.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/4.764, allocations: 75.97 kB / 2.34 GB, free: 237.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/4.764, allocations: 54.19 kB / 2.34 GB, free: 237.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.00186/4.766, allocations: 0.9762 MB / 2.341 GB, free: 237.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 4.71e-07/4.766, allocations: 0 / 2.341 GB, free: 237.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00369/4.769, allocations: 0.8803 MB / 2.342 GB, free: 237.7 MB / 1.167 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 (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.001857/4.771, allocations: 0.8283 MB / 2.342 GB, free: 237.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.009401/4.781, allocations: 2.56 MB / 2.345 GB, free: 237.5 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/4.781, allocations: 3.25 kB / 2.345 GB, free: 237.5 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003837/4.784, allocations: 0.9719 MB / 2.346 GB, free: 237.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/4.788, allocations: 0.7566 MB / 2.347 GB, free: 237.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006329/4.795, allocations: 3.454 MB / 2.35 GB, free: 236 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006493/4.795, allocations: 1.284 MB / 2.351 GB, free: 235.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001737/4.797, allocations: 342.8 kB / 2.352 GB, free: 235.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/4.797, allocations: 122 kB / 2.352 GB, free: 235.2 MB / 1.167 GB Notification: Performance of SimCode: time 1.793e-06/4.797, allocations: 0 / 2.352 GB, free: 235.2 MB / 1.167 GB Notification: Performance of Templates: time 0.06193/4.859, allocations: 37.71 MB / 2.389 GB, free: 234.1 MB / 1.167 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